Aixle Flow exposes a REST API under /api/v1, an MCP server, and webhook
receivers for Git hosts, Slack, and other sources. A live OpenAPI explorer
is served from the running app itself.
When the app is running locally, browse to:
http://localhost:4000/api-docs
This is the auto-generated, always-up-to-date schema for every endpoint. Use this as the canonical source — the tables below give you the shape, but the explorer has the full request/response specs and lets you try calls inline.
Auth required in non-dev environments. The
/api-docsendpoint is protected by HTTP Basic Auth in non-dev environments. SetDOCS_LOGINandDOCS_PASSWORDenv vars to configure credentials; with either unset it admits nobody.
The /api/v1 endpoints are the API the web app itself calls. They are
authenticated by the signed-in browser session (the _aixle_session
cookie): sign in via the web UI first, then your browser session is good
for the API too. Requests other than GET must also send the page's CSRF
token in X-CSRF-Token. There is no API token or login endpoint here —
programmatic access goes through the MCP server with a personal token.
Apart from signing in itself, the endpoints that answer without a browser session authenticate their caller themselves:
| Endpoint | Caller | Authenticated by |
|---|---|---|
POST /webhooks/github |
GitHub App | HMAC SHA-256 signature using GITHUB_WEBHOOK_SECRET. |
POST /webhooks/gitlab |
GitLab project hook | The repository's secret in the X-Gitlab-Token header. |
POST /webhooks/azure_devops/:endpoint_id |
Azure DevOps Service Hooks | HTTP Basic, with the credentials of that subscription. |
POST /webhooks/slack/events, /interactions, /commands |
Slack | The Slack app's signing secret. |
POST /webhooks/teams/activities |
Microsoft Teams, through the Bot Framework | A Bot Framework token in Authorization: Bearer, checked against Microsoft's signing keys. |
POST /webhooks/stripe |
Stripe | The Stripe-Signature header, checked with the webhook signing secret. With no secret configured, nothing is accepted. |
POST /webhooks/trackers/:endpoint_token |
Jira, Linear, YouTrack and GitLab tracker webhooks | The token routes to one tracker subscription; the provider checks that subscription's secret. |
POST /webhooks/trackers/app/jira |
The Aixle Jira app | A token signed with the Jira app's client secret, in Authorization: Bearer. |
POST /webhooks/trackers/app/linear |
The Aixle Linear app | A signature made with the Linear app's webhook secret. |
POST /webhooks/bitbucket/forge/* |
The Aixle Flow Forge app in Bitbucket | A Forge Invocation Token on every call. |
/integrations/youtrack/pairings, /pairings/:id, /pairings/:id/complete |
The Aixle Flow YouTrack app, during Connect | The first POST starts a pairing and returns its secret; the other two calls send that secret in Authorization: Bearer. |
/scim/Users, /scim/Users/:id |
A company's identity provider (SCIM 2.0) | A per-company SCIM bearer token, which also decides the company. |
POST /webhooks/in/:slug |
Any configured source | The endpoint's own verification strategy, checked on the raw body. |
GET /api/v1/internal/ws_auth |
Traefik ForwardAuth, before it proxies a container's terminal, IDE, or file view | A signed-in viewer: the session cookie on the app's host, or a short-lived container ticket on a sandbox host. The viewer must be allowed to reach the session, only the session's owner gets the writable terminal and the IDE, and the session must be ready. |
POST /api/v1/internal/usage_statistics |
The OTLP ingest relay, forwarding agent telemetry | Each batch names its session in the terminal_session_token resource attribute and proves it with terminal_session_key, a key the app derives from that session and recomputes on arrival. |
/mcp, /action_mcp |
Agent sessions; people's own agents | A session's MCP key, a personal MCP token (amcp_…), or an OAuth access token an app holds for a person (aoat_…), in X-Session-Key or Authorization: Bearer. Without one, the answer names the authorization server in WWW-Authenticate. |
/.well-known/oauth-*, POST /mcp-oauth/token, /register, /revoke |
MCP clients signing a person in to the personal MCP | None: public discovery documents, and token requests proved by PKCE or a refresh token. |
/mcp-oauth/authorize |
A person allowing an MCP client | The signed-in viewer's own session. |
POST /cloud/aws/credentials, /agents/credentials, /agents/credentials/refresh, /agents/git/credentials, /azure/git/credentials |
Helpers inside an agent container | X-Session-Id plus a key the app derives for that session; a session that is no longer active is refused. |
PUT, GET /agents/storage |
An agent container saving or fetching a suspended session's archive, where the storage cannot sign URLs (development) | A token query parameter the app minted for one object and one method, valid for the script's run. Where the storage signs URLs (S3), the endpoint answers 404. |
GET /api/v1/internal/runner_relay/holders/:route_token, POST /api/v1/internal/runner_relay/checks |
The runner-relay service |
RUNNERS_RELAY_INTERNAL_TOKEN in Authorization: Bearer. With no token set, every call is refused. |
/runner/v1/*, on the runner gateway's own port |
aixle-runner on a runner machine |
Authorization: Bearer: a registration token for register, a refresh token for token, an access token for the rest. releases/* is public. |
GET /share/:token, /share/:token/raw |
Anyone with an asset's share link | The share token in the path. |
/marketplace/aws/* |
A buyer arriving from AWS Marketplace | None: the POST exchanges the token AWS sends, and the pages after it read a signed ticket or an emailed link. |
POST /csp-violation-report-endpoint |
Browsers reporting a Content Security Policy violation | None. |
GET /api/v1/projects/:project_id/workflows/:id
PATCH /api/v1/projects/:project_id/workflows/:id
DELETE /api/v1/projects/:project_id/workflows/:id
GET /api/v1/projects/:project_id/workflows/:wf_id/steps
POST /api/v1/projects/:project_id/workflows/:wf_id/steps
PATCH /api/v1/projects/:project_id/workflows/:wf_id/steps/reorder
GET /api/v1/projects/:project_id/workflows/:wf_id/steps/:id
PATCH /api/v1/projects/:project_id/workflows/:wf_id/steps/:id
DELETE /api/v1/projects/:project_id/workflows/:wf_id/steps/:id
Triggers hang off the same path: GET/POST /api/v1/projects/:project_id/workflows/:wf_id/triggers and
PATCH/DELETE .../triggers/:id. An off-board
trigger runs as a person (run_as_user_id) or a project team
(run_as_team_id; null clears it) — set by the project owner or a company
admin — and each trigger returns its run_as_team.
A chat trigger names its one channel as
chat_channel_id, a channel connected to the project's company:
GET /api/v1/projects/:project_id/chat_channels # ?provider=slack|teams
DELETE /api/v1/projects/:project_id/chat_channels/:id # disconnect from the company
POST /api/v1/projects/:project_id/chat_connect_codes # {provider, trigger_id?} → code, invite, mention, command
GET /api/v1/projects/:project_id/chat_connect_codes/:id # pending | redeemed (with its channel) | expired
A code connects the channel it is posted in (@<bot> connect <code>) and is
returned only by the POST.
Run lifecycle actions live in the web namespace (they back the
Inertia-rendered UI). They're documented here because they're stable
and you can call them from a session-authenticated client.
:company_slug is the company's short name, the word after /company/ in
the app's address bar:
POST /company/:company_slug/projects/:project_id/workflow_runs (start a run)
POST /company/:company_slug/projects/:project_id/workflow_runs/:id/cancel
POST /company/:company_slug/projects/:project_id/workflow_runs/:id/approve_step
POST /company/:company_slug/projects/:project_id/workflow_runs/:id/retry_step
POST /company/:company_slug/projects/:project_id/workflow_runs/:id/skip_step
Asset endpoints for a workflow run are in /api/v1:
GET /api/v1/projects/:project_id/workflow_runs/:run_id/workflow_run_assets
POST /api/v1/projects/:project_id/workflow_runs/:run_id/workflow_run_assets/export_all
POST /api/v1/projects/:project_id/workflow_runs/:run_id/workflow_run_assets/:id/export
GET /api/v1/projects/:project_id/workflow_runs/:run_id/workflow_run_assets/:id/download
GET /api/v1/terminal_sessions/:id
POST /api/v1/terminal_sessions
DELETE /api/v1/terminal_sessions/:id
POST /api/v1/terminal_sessions/:id/finish
POST /api/v1/terminal_sessions/:id/suspend
POST /api/v1/terminal_sessions/:id/restore
POST /api/v1/projects/:project_id/board
PATCH /api/v1/projects/:project_id/board
DELETE /api/v1/projects/:project_id/board
GET /api/v1/projects/:project_id/board/columns
POST /api/v1/projects/:project_id/board/columns
PATCH /api/v1/projects/:project_id/board/columns/reorder
GET /api/v1/projects/:project_id/board/columns/:id
PATCH /api/v1/projects/:project_id/board/columns/:id
DELETE /api/v1/projects/:project_id/board/columns/:id
GET /api/v1/projects/:project_id/board/columns/:column_id/workflow_binding
POST /api/v1/projects/:project_id/board/columns/:column_id/workflow_binding
PATCH /api/v1/projects/:project_id/board/columns/:column_id/workflow_binding
DELETE /api/v1/projects/:project_id/board/columns/:column_id/workflow_binding
GET /api/v1/projects/:project_id/board/activities
GET /api/v1/projects/:project_id/board/tasks
POST /api/v1/projects/:project_id/board/tasks
GET /api/v1/projects/:project_id/board/tasks/:id
PATCH /api/v1/projects/:project_id/board/tasks/:id
DELETE /api/v1/projects/:project_id/board/tasks/:id
PATCH /api/v1/projects/:project_id/board/tasks/:id/move
POST /api/v1/projects/:project_id/board/tasks/:id/trigger_workflow
GET /api/v1/projects/:project_id/board/tasks/:id/workflow_runs
GET /api/v1/projects/:project_id/board/tasks/:task_id/comments
POST /api/v1/projects/:project_id/board/tasks/:task_id/comments
GET /api/v1/projects/:project_id/board/tasks/:task_id/assets
POST /api/v1/projects/:project_id/board/tasks/:task_id/assets
DELETE /api/v1/projects/:project_id/board/tasks/:task_id/assets/:id
DELETE /api/v1/projects/:project_id/board/tasks/:task_id/gates/:id
GET /api/v1/projects/:project_id/board/tasks/:task_id/transitions
GET /api/v1/projects/:project_id/board/tasks/:task_id/activities
GET /api/v1/projects/:project_id/board/tasks/:task_id/activities/:id
GET /api/v1/projects/:project_id/board/tasks/:task_id/statistics
GET .../board/tasks is the board's pagination endpoint — the board page
props carry only the first page of each column, and the column pulls the
rest from here as it is scrolled:
| Query param | Meaning |
|---|---|
board_column_id |
Restrict to one column. |
limit / offset |
Page window, ordered by position then id. |
q[title_i_cont], q[assignee_id_eq], q[assignee_team_id_eq], … |
Ransack predicates over BoardTask.ransackable_attributes. _cont, _start and _end match case; _i_cont, _i_start and _i_end ignore it. |
tags[] + tags_match=all |
Tag filter. Default matches any listed tag; all requires them all. |
archived |
archived for archived only, all for both; default active only. |
The response carries the unpaginated match count in the
X-Total-Count header, which is how a column header shows its real total
while holding a single page.
A task's assignee is a person (assignee_id) or a project team
(assignee_team_id), never both: POST and PATCH take either, and so does
the board's bulk assign and a view preset's filters.
GET /api/v1/assets/presign # -> { method: "PUT", url, key } for a direct upload
PUT /api/v1/assets/upload/*key # development/test only: stands in for S3
POST /api/v1/company/:company_slug/assets
DELETE /api/v1/company/:company_slug/assets/:id
GET /api/v1/company/:company_slug/assets/:id/download
POST /api/v1/projects/:project_id/assets
DELETE /api/v1/projects/:project_id/assets/:id
GET /api/v1/projects/:project_id/assets/:id/download
| Endpoint | What it carries |
|---|---|
Action Cable at /cable |
Inertia Cable signed streams: refresh signals for boards, runs, and sessions, and id-only row updates for the session and run lists. Never record data — the page fetches what changed through its own authorized request. |
/t/:route_token/... |
A session's terminal, IDE, and file views, proxied by Traefik to the container once ws_auth admits the viewer. |
/mcp and /action_mcp (the path agent containers are configured with,
MCP_SERVER_URL) serve the same Model Context Protocol endpoint. An agent
session reaches it with its session key and gets the session's tools; a
person reaches it with a personal MCP token and gets the tools of their own
account.
For the personal server Aixle is also the OAuth 2.1 authorization server
(protected resource metadata at /.well-known/oauth-protected-resource/mcp,
authorization server metadata at /.well-known/oauth-authorization-server),
so a client that supports MCP sign-in connects with the URL alone. Clients
identify themselves with a Client ID Metadata Document URL or register at
/mcp-oauth/register; PKCE S256 is required.
| Endpoint | Purpose |
|---|---|
POST /webhooks/github |
GitHub App events: CI (check_suite, workflow_run), the App's installation and github_app_authorization, tracker items (projects_v2_item, issues, issue_comment), and pull request reviews and comments (pull_request_review, pull_request_review_comment, issue_comment). |
POST /webhooks/gitlab |
GitLab project hooks: pipelines, merge requests and notes. |
POST /webhooks/azure_devops/:endpoint_id |
Azure DevOps Service Hook deliveries. |
POST /webhooks/slack/events |
Slack Events API, routed to the workspace's installation. |
POST /webhooks/slack/interactions, /commands |
The Slack Run workflow shortcut, its modal, and the slash command. |
POST /webhooks/teams/activities |
Microsoft Teams activities for the deployment's bot. |
POST /webhooks/stripe |
Stripe checkout, subscription and invoice events for hosted billing. |
POST /webhooks/trackers/:endpoint_token, /app/jira, /app/linear |
Tracker events from Jira, Linear, YouTrack and GitLab issues. |
POST /webhooks/bitbucket/forge/* |
The Bitbucket Forge app: install lifecycle, events, heartbeat, and its page in Bitbucket workspace settings. |
POST /webhooks/in/:slug |
Generic inbound webhooks that fire workflow triggers. |
See Integrations for how to wire these up.
The API is versioned at the path level (/api/v1/...). Breaking
changes within v1 are avoided. New major versions will be additive
(v2 mounted alongside v1). See ROADMAP.md for
API stability status.