Creates a run in queued state. Call POST /agent/v1/run/:id/exec to start execution.
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"
}API key starting with sk_case_
Was this page helpful?
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"
}