API reference
Every request is scoped to one organization — whichever one your key belongs to. Read the machine-readable spec at https://stageb.learninclusive.co.uk/v1/openapi.json.
Create a key from Dashboard → API & webhooks, then send it as a bearer token on every request:
Authorization: Bearer ad_live_...
/repositoriesList repositories
Every repository the organization's GitHub App installation(s) can see, as a flat list. Returns { "repositories": [{ "id", "fullName", "defaultBranch", "accountLogin" }, ...] } — an empty array means no GitHub App installation is connected for this organization yet, not an error.
curl \ -H "Authorization: Bearer ad_live_..." \ https://stageb.learninclusive.co.uk/v1/repositories
/repositories/{id}Get a repository
curl \ -H "Authorization: Bearer ad_live_..." \ https://stageb.learninclusive.co.uk/v1/repositories/:id
/repositories/{id}/generateStart a generation run
Analyzes the repository's default branch (or the commit/branch you pass) and generates the requested artifacts.
curl \ -X POST \ -H "Authorization: Bearer ad_live_..." \ https://stageb.learninclusive.co.uk/v1/repositories/:id/generate
/repositories/{id}/runsList generation runs for a repository
curl \ -H "Authorization: Bearer ad_live_..." \ https://stageb.learninclusive.co.uk/v1/repositories/:id/runs
/runs/{runId}Get a generation run
curl \ -H "Authorization: Bearer ad_live_..." \ https://stageb.learninclusive.co.uk/v1/runs/:runId
/files/{fileId}Get a generated file's content
curl \ -H "Authorization: Bearer ad_live_..." \ https://stageb.learninclusive.co.uk/v1/files/:fileId
/repositories/{id}/deploy-targetGet a repository's deploy target
Configuring a deploy target is dashboard-only for now — this is read-only via the API.
curl \ -H "Authorization: Bearer ad_live_..." \ https://stageb.learninclusive.co.uk/v1/repositories/:id/deploy-target
/repositories/{id}/deployTrigger a deployment
Deploys the given commit to the repository's configured deploy target.
curl \ -X POST \ -H "Authorization: Bearer ad_live_..." \ https://stageb.learninclusive.co.uk/v1/repositories/:id/deploy
/repositories/{id}/deploymentsList deployment runs for a repository
curl \ -H "Authorization: Bearer ad_live_..." \ https://stageb.learninclusive.co.uk/v1/repositories/:id/deployments
/entitlementsGet the organization's plan and limits
curl \ -H "Authorization: Bearer ad_live_..." \ https://stageb.learninclusive.co.uk/v1/entitlements