cURL
curl --request GET \ --url https://api.bctrl.ai/v1/openapi.json \ --header 'Authorization: Bearer <token>'
{ "openapi": "<string>", "info": { "title": "<string>", "version": "<string>" }, "paths": {} }
Get the full OpenAPI 3.0 specification for the bctrl API
const response = await fetch('https://api.bctrl.ai/v1/openapi.json', { headers: { Authorization: `Bearer ${apiKey}` }, }); const spec = await response.json(); console.log(Object.keys(spec.paths).length, 'endpoints');
3.0.3
Show info
{ "openapi": "3.0.3", "info": { "title": "bctrl API", "version": "2026-02-16" }, "paths": { "/v1/sessions": { "post": { "summary": "Create a new session" } }, "/v1/sessions/{id}/automation": { "post": { "summary": "Execute automation command" } } } }