Skip to content
brain.GitHub
Developer docs OPEN SOURCE
HTTP APIEndpoints

Connect a runtime executor

GET
/executors/{id}/commands

Requires the executor credential. Returns non-replayable SSE commands and a ready connection identity. A dropped connection never replays calls.

Authorization

bearer
headerAuthorizationBearer <token>

Path Parameters

id*string

Opaque executor ID.

Match^[a-fA-F0-9]{32}$

Response Body

Connect a runtime executor

response?stringtext/event-stream
curl -X GET 'http://127.0.0.1:8080/executors/string/commands' \  -H 'Authorization: Bearer <BRAIN_TOKEN>'
"data: {\"type\":\"ready\",\"connection\":\"CONNECTION_ID\"}\n\n"