Skip to main content
POST
/
agent
/
v1
/
execute
curl -X POST "https://api.case.dev/agent/v1/execute" \ -H "Authorization: Bearer $CASEDEV_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "prompt": "<string>" }'
{
  "runId": "<string>",
  "agentId": "<string>",
  "message": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.case.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json
prompt
string
required

Task prompt for the agent

instructions
string

System instructions. Defaults to a general-purpose legal assistant prompt if not provided.

model
string

LLM model identifier. Defaults to anthropic/claude-sonnet-4.6

vaultIds
string[] | null

Restrict agent to specific vault IDs

objectIds
string[] | null

Scope this run to specific vault object IDs. The agent will only access these objects.

guidance
string | null

Additional context or constraints for this run

enabledTools
string[] | null

Allowlist of tools the agent can use. Mutually exclusive with disabledTools — set one or the other, not both.

disabledTools
string[] | null

Denylist of tools the agent cannot use. Mutually exclusive with enabledTools — set one or the other, not both.

sandbox
object

Custom sandbox resources (cpu, memoryMiB)

Response

Run started

runId
string

Run ID — poll /agent/v1/run/:id/status

agentId
string

Ephemeral agent ID (auto-created). This agent is soft-deleted when the run completes and should not be stored for reuse.

status
enum<string>
Available options:
running
message
string