Skip to main content
POST
/
agent
/
v2
/
execute
Execute ad-hoc agent
curl --request POST \
  --url https://api.case.dev/agent/v2/execute \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "<string>",
  "instructions": "<string>",
  "model": "<string>",
  "agentRuntime": true,
  "vaultIds": [
    "<string>"
  ],
  "objectIds": [
    "<string>"
  ],
  "guidance": "<string>",
  "enabledTools": [
    "<string>"
  ],
  "disabledTools": [
    "<string>"
  ],
  "sandbox": {
    "cpu": 123,
    "memoryMiB": 123
  }
}
'
{
  "runId": "<string>",
  "agentId": "<string>",
  "status": "running",
  "provider": "daytona",
  "runtimeId": "<string>",
  "runtimeState": "running",
  "output": "<string>",
  "error": "<string>",
  "logs": {
    "runner": "<string>",
    "linc": "<string>"
  },
  "usage": {},
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json
prompt
string
required
instructions
string
model
string
agentRuntime
boolean | null

Set to true to opt into the legacy Daytona-backed agent runtime.

vaultIds
string[] | null
objectIds
string[] | null
guidance
string | null
enabledTools
string[] | null
disabledTools
string[] | null
sandbox
object

Response

Run completed or started

runId
string
agentId
string
status
enum<string>
Available options:
running,
completed,
failed
provider
enum<string>
Available options:
daytona,
vercel
runtimeId
string | null
runtimeState
enum<string>
Available options:
running,
ended,
error
output
string | null
error
string | null
logs
object
usage
object
message
string | null