Skip to main content
POST
/
agent
/
v2
/
run
Create v2 run
curl --request POST \
  --url https://api.case.dev/agent/v2/run \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agentId": "<string>",
  "prompt": "<string>",
  "guidance": "<string>",
  "model": "<string>",
  "objectIds": [
    "<string>"
  ],
  "callbackUrl": "<string>"
}
'
{
  "id": "<string>",
  "agentId": "<string>",
  "status": "queued",
  "objectIds": [
    "<string>"
  ],
  "createdAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json
agentId
string
required
prompt
string
required
guidance
string | null
model
string | null
objectIds
string[] | null
callbackUrl
string<uri> | null

Response

Run created in queued state

id
string
agentId
string
status
enum<string>
Available options:
queued
objectIds
string[] | null
createdAt
string<date-time>