Skip to main content
GET
/
v1
/
tasks
List all tasks
curl --request GET \
  --url https://api.infinitecreator.com/v1/tasks \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "state": "PENDING",
      "failure_message": "<string>",
      "results": [
        {
          "agent_id": "<string>",
          "url": "<string>",
          "created_at": "2023-11-07T05:31:56Z",
          "preview_url": "<string>",
          "metadata": {}
        }
      ],
      "dropped_assets": [
        {
          "url": "<string>",
          "reason": "<string>"
        }
      ]
    }
  ],
  "has_more": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

state
enum<string>

The status of the task.

Available options:
PENDING,
STARTED,
RUNNING,
FAILED,
SUCCEEDED
starting_after
string

A cursor to use in pagination. starting_after is an object ID that defines your place in the list. For example, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include starting_after=obj_foo to fetch the next page of the list.

limit
integer
default:10

This specifies a limit on the number of objects to return, ranging between 1 and 100.

Required range: 1 <= x <= 100

Response

Successful Response

data
Task · object[]
required

An array containing the actual response elements, paginated by any request parameters.

has_more
boolean
required

Whether or not there are more elements available after this set. If false, this set comprises the end of the list.