Skip to main content
POST
/
ai
/
execution-contexts
/
{context_id}
/
execute
Execute agent in context
curl --request POST \
  --url https://api.wacht.dev/ai/execution-contexts/{context_id}/execute \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "new_message",
  "agent_name": "customer-support-agent",
  "message": "I need help with my account",
  "files": [
    {}
  ]
}
'
{
  "status": "queued"
}

Authorizations

Authorization
string
header
required

API key authentication (format: Bearer {api_key})

Path Parameters

context_id
string
required

Execution Context ID

Body

application/json
type
enum<string>
required
Available options:
new_message
agent_name
string
required

Name of the agent to execute

Example:

"customer-support-agent"

message
string
required

User message to send

Example:

"I need help with my account"

files
object[]

Optional file attachments

Response

Agent execution queued

status
string

Execution status

Example:

"queued"