Skip to main content
GET
/
v1
/
agents
/
{agentId}
/
tasks
List tasks for an agent
curl --request GET \
  --url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/agents/{agentId}/tasks \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "id": "<string>",
      "contextId": "<string>",
      "status": {
        "state": "working",
        "timestamp": "<string>",
        "message": {}
      },
      "history": [
        {}
      ],
      "artifacts": [
        {}
      ],
      "metadata": {},
      "createdAt": "2023-11-07T05:31:56Z"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.prisme.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

User session JWT or instance API key (iak_*). Send as Authorization: Bearer <token>.

Path Parameters

agentId
string
required
Maximum string length: 64

Query Parameters

context_id
string

Filter to one conversation.

Maximum string length: 64
status
enum<string>
Available options:
working,
completed,
canceled,
failed,
input-required
Maximum string length: 32
limit
string

Page size (default 20).

page
string

Response

Page of tasks.

items
object[]