Aex Brain
ReferenceAPI

Call a service from a host invocation

POST/v1/hosts/{host_id}/call

Authorization

hostToken
AuthorizationBearer <token>

The scoped token returned by POST /v1/hosts, sent as Authorization: Bearer . Identifies this registered host; do not substitute the server API token.

In: header

Path Parameters

host_id*string
Match^host_[A-Za-z0-9]{20,32}$

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/hosts/string/call" \  -H "Authorization: Bearer YOUR_TOKEN" \  -H "Content-Type: application/json" \  -d '{    "call": {      "input": true,      "method": "string"    },    "sequence": 1,    "session_id": "string"  }'
null