GET
/
tasks
curl --request GET \
  --url https://api.opkit.co/v1/tasks \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "script_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "summary": "<string>",
      "customer_feedback": "<string>",
      "reviewed": true,
      "flagged": true,
      "flagged_reason": "script_deviation",
      "outcome": "success",
      "created_at": "2023-11-07T05:31:56Z",
      "finished_at": "2023-11-07T05:31:56Z",
      "target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "status": "pending",
      "context": [
        {
          "name": "<string>",
          "description": "<string>",
          "items": [
            {
              "name": "<string>",
              "description": "<string>",
              "items": [
                {
                  "name": "<string>",
                  "description": "<string>",
                  "items": [
                    {
                      "name": "<string>",
                      "description": "<string>",
                      "items": [
                        {
                          "name": "<string>",
                          "description": "<string>",
                          "items": [
                            {
                              "name": "<string>",
                              "description": "<string>",
                              "items": [
                                "<any>"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "objectives": [
        {
          "name": "<string>",
          "description": "<string>",
          "type": "string",
          "enum": [
            "<string>"
          ]
        }
      ],
      "results": [
        {
          "name": "<string>",
          "value": "<string>",
          "type": "string",
          "enum": [
            "<string>"
          ]
        }
      ],
      "duration_seconds": 123
    }
  ],
  "count": 123
}

Authorizations

Authorization
string
headerrequired

The Opkit API uses the HTTP Bearer Token scheme for authentication. You should provide your API key in the Authorization header like so: "Authorization: Bearer [api-key]".

Query Parameters

after
string
target_id
string
batch_id
string
status
enum<string>
Available options:
pending,
in_progress,
complete,
canceled,
paused
outcome
enum<string>
Available options:
success,
failure

Response

200 - application/json
items
object[]
required
count
integer
required