Aex Brain
ReferenceAPI

Call a granted execution service

Invoke a service granted to this execution using the invocation bearer token supplied by Brain. The method must be within the grant and the execution must still be open.

POST/v1/sessions/{session_id}/executions/{sequence}/call

Authorization

invocationToken
AuthorizationBearer <token>

The invocation-scoped services token Brain supplies to an Environment executing an agent loop, tool or controller. Send it as Authorization: Bearer ; valid only for the granted services while that execution is open.

In: header

Path Parameters

session_id*string
Match^ses_[A-Za-z0-9]{20,32}$
sequence*integer
Formatint64
Range0 <= value

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/sessions/string/executions/0/call" \  -H "Authorization: Bearer YOUR_TOKEN" \  -H "Content-Type: application/json" \  -d '{    "input": true,    "method": "string"  }'
null