Skip to main content
POST
/
agents
/
{agentId}
/
call
Execute an agent directly
curl --request POST \
  --url https://api.artosai.com/agents/{agentId}/call \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "documentUrls": [
    "<string>"
  ],
  "instructions": "<string>"
}
'
{
  "result": {
    "output": "<string>",
    "format": "<string>",
    "processing_time_seconds": 123,
    "documents_processed": 123,
    "connectors_used": [
      "<string>"
    ]
  },
  "agent_id": "<string>",
  "execution_id": "<string>",
  "timestamp": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

agentId
string
required

Body

application/json
documentUrls
string[]
required

List of S3 URLs for input documents.

instructions
string

Optional instructions for this execution.

Response

200 - application/json

Agent execution result

result
object
agent_id
string
execution_id
string
timestamp
string<date-time>