ReferenceAPI
Prepare reusable code on the built-in Environment workers
Waits until the declared artifacts are loaded on eligible workers. Preparation is retained for this server process, restored after worker replacement, and independent of session lifetime. Repeating the request checks current resources again. It grants no session authority.
POST
/v1/brain-env/prepareAuthorization
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/json
TypeScript Definitions
Use the request body type in TypeScript.
Reusable artifacts to load on the built-in Environment's execution workers.
Response Body
application/json
curl -X POST "https://example.com/v1/brain-env/prepare" \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{}'Empty