Aex Brain
ReferenceAPI

Store UTF-8 program source for a compatible runtime

POST/v1/programs

Authorization

serverToken
AuthorizationBearer <token>

The server's BRAIN_API_TOKEN, sent as Authorization: Bearer . Required for application API calls when configured; optional only on a loopback server started without a token.

In: header

Request Body

application/octet-stream

TypeScript Definitions

Use the request body type in TypeScript.

body*file
Formatbinary

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/programs" \  -H "Authorization: Bearer YOUR_TOKEN" \  -H "Content-Type: application/octet-stream" \  -d 'string'
{  "id": "string",  "status": "admitted"}