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

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json
agentId
string
required

ID of the agent to run

prompt
string
required

Task prompt for the agent

guidance
string | null

Additional guidance for this run

model
string | null

Override the agent default model for this run

Response

Run created in queued state

id
string
agentId
string
status
enum<string>
Available options:
queued
createdAt
string<date-time>