Skip to content

API reference

Every endpoint below is a deployed Supabase Edge Function. The catalog is regenerated on every build from supabase/functions/*/index.ts — if it’s listed here, it’s live in production. If you ship a new edge function and want it documented, the build script picks it up automatically; if you want a richer summary than the auto-extracted JSDoc, edit the FEATURED map in docs-site/scripts/build-api-catalog.mjs.

Base URL

https://api.sprintloop.ai

All endpoints route through the workspace’s region (us-east-1 or eu-west-1). The base URL is region-agnostic — the workspace handle in the bearer token determines which region serves the request.

Authentication

All endpoints expect a bearer token in the Authorization header:

Authorization: Bearer sl_pat_...

Tokens are minted in Settings → API tokens in the workspace web app. Each token carries a scope set; calls outside scope return 403 SCOPE_DENIED with the missing scope name in the body.

Public endpoints (no token required) are tagged auth: public in the listing below. They include the badge renderer, the auth provider lookup (used by SSO bootstrap), and the federation verify endpoint.

Errors

All endpoints return JSON. Errors carry a code, a human-readable message, and an opaque request_id you can quote when filing a support ticket:

{
"error": {
"code": "POLICY_DENIED",
"message": "Dispatch blocked by policy rule 'no-direct-billing-edits'.",
"request_id": "req_8K3p..."
}
}

Common codes: UNAUTHORIZED, SCOPE_DENIED, POLICY_DENIED, LANE_SCOPE_DENIED, RATE_LIMITED, NOT_FOUND, VALIDATION_FAILED, INTERNAL. The full list is in the OpenAPI spec at https://api.sprintloop.ai/openapi.json.

Rate limits

Default rate limits per token:

Endpoint familyLimit
Read (*-list, *-get, audit-*)120 req/min
Write (agent-run, agent-cancel, *-publish)30 req/min
Bulk export (audit-export)6 req/min

Workspace-tier paid plans (Team / Enterprise) get 5× and 20× these limits respectively. Exceed your limit and you get 429 RATE_LIMITED with a Retry-After header.

The endpoints below are the ones you’ll reach for first.

POST /functions/v1/agent-run agent-run

Dispatch a new agent lane: pick a harness, hand it a brief, return a run id.

Auth: bearer Region: us-east-1, eu-west-1 SDK: sprintloop.agent_run
POST /functions/v1/agent-cancel agent-cancel

Stop a running lane and roll back its scope claim.

Auth: bearer Region: us-east-1, eu-west-1 SDK: sprintloop.agent_cancel
POST /functions/v1/agent-pause agent-pause

Pause a running lane while preserving its scope claim and tool log.

Auth: bearer Region: us-east-1, eu-west-1 SDK: sprintloop.agent_pause
POST /functions/v1/agent-interrupt agent-interrupt

Send an out-of-band signal (notes, redirection) into an active agent.

Auth: bearer Region: us-east-1, eu-west-1 SDK: sprintloop.agent_interrupt
POST /functions/v1/agent-tool-invoke agent-tool-invoke

Invoke a registered MCP / tool against the active lane.

Auth: bearer Region: us-east-1, eu-west-1 SDK: sprintloop.agent_tool_invoke
POST /functions/v1/bmad-query bmad-query

Query the Context Engine (BMAD): five-dimension product / system / style / policy / memory.

Auth: bearer Region: us-east-1, eu-west-1 SDK: sprintloop.bmad_query
POST /functions/v1/bmad-extract-from-repo bmad-extract-from-repo

Bootstrap the Context Engine from a connected repo.

Auth: bearer Region: us-east-1, eu-west-1 SDK: sprintloop.bmad_extract_from_repo
POST /functions/v1/api-token-issue api-token-issue

Mint a scoped API token for SSO / SCIM / webhook integrations.

Auth: bearer Region: us-east-1, eu-west-1 SDK: sprintloop.api_token_issue
POST /functions/v1/api-token-revoke api-token-revoke

Revoke a previously issued API token.

Auth: bearer Region: us-east-1, eu-west-1 SDK: sprintloop.api_token_revoke
POST /functions/v1/audit-export audit-export

Export a workspace audit log range (signed JSON or NDJSON).

Auth: bearer Region: us-east-1, eu-west-1 SDK: sprintloop.audit_export
POST /functions/v1/ci-event-ingest ci-event-ingest

Ingest a CI status event from GitHub / GitLab into a lane.

Auth: bearer Region: us-east-1, eu-west-1 SDK: sprintloop.ci_event_ingest
POST /functions/v1/changelog-publish changelog-publish

Publish a public changelog entry from a merged PR.

Auth: bearer Region: us-east-1, eu-west-1 SDK: sprintloop.changelog_publish

Full edge-function index

Every public-facing edge function in the deployment, sorted alphabetically. Click into any of them to see its current signature in the source.

NameMethodAuthDescription
ace-create-prPOSTbearerEdge function: ace-create-pr.
ace-mention-dispatchPOSTbearerEdge function: ace-mention-dispatch.
ace-mention-translatorPOSTbearerEdge function: ace-mention-translator.
adapter-ingestPOSTbearerEdge function: adapter-ingest.
admin-magic-linkPOSTbearerIssue an admin sign-in link (workspace owner only).
agent-cancelPOSTbearerStop a running lane and roll back its scope claim.
agent-interruptPOSTbearerSend an out-of-band signal (notes, redirection) into an active agent.
agent-pausePOSTbearerPause a running lane while preserving its scope claim and tool log.
agent-runPOSTbearerDispatch a new agent lane: pick a harness, hand it a brief, return a run id.
agent-tool-invokePOSTbearerInvoke a registered MCP / tool against the active lane.
ai-assistantPOSTbearerEdge function: ai-assistant.
ai-conflict-resolvePOSTbearerEdge function: ai-conflict-resolve.
ai-doc-generatePOSTbearerEdge function: ai-doc-generate.
ai-doc-submitPOSTbearerEdge function: ai-doc-submit.
ai-memory-embedPOSTbearerEdge function: ai-memory-embed.
ai-memory-recallPOSTbearerEdge function: ai-memory-recall.
ai-summarize-meetingPOSTbearerEdge function: ai-summarize-meeting.
ai-summarize-threadPOSTbearerEdge function: ai-summarize-thread.
ai-test-generatePOSTservice-roleEdge function: ai-test-generate.
annual-contract-createPOSTbearerEdge function: annual-contract-create.
api-token-issuePOSTbearerMint a scoped API token for SSO / SCIM / webhook integrations.
api-token-revokePOSTbearerRevoke a previously issued API token.
api-v1POSTbearerTop-level v1 router: catch-all REST surface for first-party clients.
apply-workspace-templatePOSTbearerEdge function: apply-workspace-template.
audit-exportPOSTbearerExport a workspace audit log range (signed JSON or NDJSON).
audit-log-exportPOSTbearerStream the federation audit log for a date range.
auth-providers-for-emailPOSTpublicList the SSO / OAuth providers configured for an email domain.
badgePOSTpublicRender a public badge (status, build, coverage) for a workspace.
billing-create-checkoutPOSTbearerEdge function: billing-create-checkout.
billing-portalPOSTbearerEdge function: billing-portal.
bitbucket-oauth-callbackPOSTbearerEdge function: bitbucket-oauth-callback.
bitbucket-oauth-startPOSTbearerEdge function: bitbucket-oauth-start.
bitbucket-syncPOSTbearerEdge function: bitbucket-sync.
bitbucket-webhookPOSTservice-roleEdge function: bitbucket-webhook.
bmad-confidence-decay-tickPOSTbearerEdge function: bmad-confidence-decay-tick.
bmad-extract-from-repoPOSTbearerBootstrap the Context Engine from a connected repo.
bmad-queryPOSTbearerQuery the Context Engine (BMAD): five-dimension product / system / style / policy / memory.
canvas-snapshotPOSTbearerEdge function: canvas-snapshot.
changelog-publishPOSTbearerPublish a public changelog entry from a merged PR.
ci-dispatchGETbearerEdge function: ci-dispatch.
ci-event-ingestPOSTbearerIngest a CI status event from GitHub / GitLab into a lane.
ci-runner-tickPOSTservice-roleEdge function: ci-runner-tick.
ci-runner-triggerPOSTservice-roleEdge function: ci-runner-trigger.
ci-statusPOSTbearerEdge function: ci-status.
cmdk-refreshPOSTbearerEdge function: cmdk-refresh.
cmdk-searchPOSTbearerEdge function: cmdk-search.
cockpit-dispatch-builderPOSTbearerEdge function: cockpit-dispatch-builder.
cockpit-interruptPOSTbearerEdge function: cockpit-interrupt.
cockpit-interrupt-tickPOSTservice-roleEdge function: cockpit-interrupt-tick.
cockpit-share-tokenPOSTbearerEdge function: cockpit-share-token.
collab-cleanupPOSTservice-roleEdge function: collab-cleanup.
community-metaPOSTpublicEdge function: community-meta.
compliance-snapshotPOSTbearerEdge function: compliance-snapshot.
conflict-detect-tickPOSTbearerEdge function: conflict-detect-tick.
cost-alert-tickPOSTservice-roleEdge function: cost-alert-tick.
cost-ceiling-tickPOSTservice-roleEdge function: cost-ceiling-tick.
cost-routing-resolvePOSTbearerEdge function: cost-routing-resolve.
cost-summaryPOSTbearerEdge function: cost-summary.
cs-health-snapshotPOSTbearerEdge function: cs-health-snapshot.
daily-digest-testPOSTbearerEdge function: daily-digest-test.
daily-digest-tickPOSTbearerEdge function: daily-digest-tick.
demo-content-refresh-tickPOSTservice-roleEdge function: demo-content-refresh-tick.
demo-replay-tickPOSTservice-roleEdge function: demo-replay-tick.
demo-workspace-tickPOSTbearerEdge function: demo-workspace-tick.
deploy-log-streamPOSTbearerEdge function: deploy-log-stream.
dispatch-status-tickPOSTservice-roleEdge function: dispatch-status-tick.
dm-ai-respondPOSTbearerEdge function: dm-ai-respond.
email-optoutPOSTservice-roleEdge function: email-optout.
enterprise-rollup-summaryPOSTbearerEdge function: enterprise-rollup-summary.
federation-accept-invitePOSTbearerEdge function: federation-accept-invite.
federation-cert-createPOSTbearerEdge function: federation-cert-create.
federation-cert-getPOSTservice-roleEdge function: federation-cert-get.
federation-cert-revokePOSTbearerEdge function: federation-cert-revoke.
federation-fetch-remote-headPOSTbearerEdge function: federation-fetch-remote-head.
federation-publishPOSTbearerEdge function: federation-publish.
federation-publish-headPOSTbearerEdge function: federation-publish-head.
federation-verifyPOSTpublicEdge function: federation-verify.
file-signed-urlPOSTbearerEdge function: file-signed-url.
first-run-dispatchPOSTbearerEdge function: first-run-dispatch.
first-run-merge-prPOSTbearerEdge function: first-run-merge-pr.
github-install-callbackPOSTbearerEdge function: github-install-callback.
github-install-urlPOSTbearerEdge function: github-install-url.
github-link-prPOSTbearerEdge function: github-link-pr.
github-outbound-workerPOSTbearerEdge function: github-outbound-worker.
github-post-commentPOSTbearerEdge function: github-post-comment.
github-pr-thread-spawnPOSTbearerEdge function: github-pr-thread-spawn.
github-sync-objectsPOSTbearerEdge function: github-sync-objects.
github-sync-projectsPOSTbearerEdge function: github-sync-projects.
github-webhookPOSTservice-roleEdge function: github-webhook.
gitlab-oauth-callbackPOSTbearerEdge function: gitlab-oauth-callback.
gitlab-oauth-startPOSTbearerEdge function: gitlab-oauth-start.
gitlab-syncPOSTbearerEdge function: gitlab-sync.
gitlab-webhookPOSTservice-roleEdge function: gitlab-webhook.
hangout-tokenPOSTbearerEdge function: hangout-token.
harness-dispatchPOSTbearerEdge function: harness-dispatch.
harness-eventPOSTservice-roleEdge function: harness-event.
harness-heartbeatPOSTbearerEdge function: harness-heartbeat.
harness-registerPOSTbearerEdge function: harness-register.
harness-revokePOSTbearerEdge function: harness-revoke.
healthPOSTservice-roleEdge function: health.
heartbeat-runnerPOSTbearerEdge function: heartbeat-runner.
import-slack-bundlePOSTbearerEdge function: import-slack-bundle.
import-startPOSTbearerEdge function: import-start.
import-statusPOSTbearerEdge function: import-status.
import-teams-bundlePOSTbearerEdge function: import-teams-bundle.
import-workerPOSTservice-roleEdge function: import-worker.
importer-tickPOSTbearerEdge function: importer-tick.
inbound-emailPOSTservice-roleEdge function: inbound-email.
investor-snapshot-pdfPOSTbearerEdge function: investor-snapshot-pdf.
investor-snapshot-tickPOSTbearerEdge function: investor-snapshot-tick.
jira-oauth-callbackPOSTservice-roleEdge function: jira-oauth-callback.
jira-oauth-startPOSTbearerEdge function: jira-oauth-start.
jira-syncPOSTservice-roleEdge function: jira-sync.
jira-webhookPOSTservice-roleEdge function: jira-webhook.
knowledge-exportPOSTbearerEdge function: knowledge-export.
knowledge-graph-snapshotPOSTbearerEdge function: knowledge-graph-snapshot.
lane-action-handoff-emitPOSTbearerEdge function: lane-action-handoff-emit.
lane-diff-tickPOSTbearerEdge function: lane-diff-tick.
lane-diff-timelinePOSTbearerEdge function: lane-diff-timeline.
lane-plain-english-summaryPOSTbearerEdge function: lane-plain-english-summary.
lane-replay-gifPOSTbearerEdge function: lane-replay-gif.
lanes-generate-keyPOSTbearerEdge function: lanes-generate-key.
linear-oauth-callbackPOSTservice-roleEdge function: linear-oauth-callback.
linear-oauth-startPOSTbearerEdge function: linear-oauth-start.
linear-syncPOSTservice-roleEdge function: linear-sync.
linear-webhookPOSTservice-roleEdge function: linear-webhook.
llm-callPOSTservice-roleEdge function: llm-call.
mcp-serverGETbearerEdge function: mcp-server.
meetings-create-roomPOSTbearerEdge function: meetings-create-room.
meetings-end-recordingPOSTbearerEdge function: meetings-end-recording.
meetings-send-invite-icsPOSTbearerEdge function: meetings-send-invite-ics.
meetings-tokenPOSTbearerEdge function: meetings-token.
mention-indexerPOSTbearerEdge function: mention-indexer.
migration-assistantPOSTbearerEdge function: migration-assistant.
mint-demo-jwtPOSTservice-roleEdge function: mint-demo-jwt.
mux-create-uploadPOSTbearerEdge function: mux-create-upload.
mux-webhookPOSTservice-roleEdge function: mux-webhook.
notification-dispatchPOSTbearerEdge function: notification-dispatch.
notification-group-tickPOSTbearerEdge function: notification-group-tick.
notification-prioritize-tickPOSTbearerEdge function: notification-prioritize-tick.
notification-snooze-tickPOSTbearerEdge function: notification-snooze-tick.
notifications-digestPOSTbearerEdge function: notifications-digest.
observability-snapshotPOSTbearerEdge function: observability-snapshot.
onboarding-email-schedulePOSTbearerEdge function: onboarding-email-schedule.
onboarding-email-tickPOSTbearerEdge function: onboarding-email-tick.
outbound-webhook-tickPOSTservice-roleEdge function: outbound-webhook-tick.
pack-installPOSTbearerEdge function: pack-install.
pack-uninstallPOSTbearerEdge function: pack-uninstall.
palette-cross-workspace-searchGETbearerEdge function: palette-cross-workspace-search.
parse-voice-eventPOSTbearerEdge function: parse-voice-event.
permission-grantPOSTbearerEdge function: permission-grant.
permission-revokePOSTbearerEdge function: permission-revoke.
pr-comment-syncPOSTbearerEdge function: pr-comment-sync.
pr-merge-with-admin-bypassPOSTbearerEdge function: pr-merge-with-admin-bypass.
pr-review-runnerPOSTservice-roleEdge function: pr-review-runner.
pr-review-sidebarPOSTbearerEdge function: pr-review-sidebar.
presence-cleanupPOSTservice-roleEdge function: presence-cleanup.
process-notification-outboxPOSTbearerEdge function: process-notification-outbox.
provenance-audit-tickPOSTservice-roleEdge function: provenance-audit-tick.
pulse-digestPOSTbearerEdge function: pulse-digest.
push-notification-actionPOSTbearerEdge function: push-notification-action.
push-notification-sendPOSTbearerEdge function: push-notification-send.
recurring-pipeline-tickPOSTbearerEdge function: recurring-pipeline-tick.
region-discoveryPOSTservice-roleEdge function: region-discovery.
repo-map-extractPOSTbearerEdge function: repo-map-extract.
review-committee-auto-firePOSTbearerEdge function: review-committee-auto-fire.
review-committee-tickPOSTservice-roleEdge function: review-committee-tick.
review-committee-triggerPOSTservice-roleEdge function: review-committee-trigger.
rls-smoke-testPOSTpublicEdge function: rls-smoke-test.
roadmap-votePOSTbearerEdge function: roadmap-vote.
sdlc-transitionPOSTbearerEdge function: sdlc-transition.
seed-public-demo-contentPOSTbearerEdge function: seed-public-demo-content.
seed-tickPOSTbearerEdge function: seed-tick.
seed-workspacePOSTbearerEdge function: seed-workspace.
semantic-embed-workerPOSTbearerEdge function: semantic-embed-worker.
semantic-repo-indexPOSTbearerEdge function: semantic-repo-index.
semantic-searchPOSTbearerEdge function: semantic-search.
send-invitePOSTbearerEdge function: send-invite.
send-pushPOSTservice-roleEdge function: send-push.
share-link-createPOSTbearerEdge function: share-link-create.
share-link-resolvePOSTbearerEdge function: share-link-resolve.
skill-installPOSTbearerEdge function: skill-install.
skill-publisher-submitPOSTbearerEdge function: skill-publisher-submit.
smart-resume-summaryPOSTbearerEdge function: smart-resume-summary.
spec-autocompletePOSTbearerEdge function: spec-autocomplete.
spec-draftPOSTbearerEdge function: spec-draft.
spec-next-action-suggestPOSTbearerEdge function: spec-next-action-suggest.
spec-pipeline-deployPOSTbearerEdge function: spec-pipeline-deploy.
spec-pipeline-deploy-tickPOSTbearerEdge function: spec-pipeline-deploy-tick.
spec-pipeline-startPOSTbearerEdge function: spec-pipeline-start.
spec-pipeline-tickPOSTbearerEdge function: spec-pipeline-tick.
sprint-planPOSTbearerEdge function: sprint-plan.
sso-callbackPOSTservice-roleEdge function: sso-callback.
sso-config-updatePOSTbearerEdge function: sso-config-update.
sso-initiatePOSTservice-roleEdge function: sso-initiate.
sso-metadataPOSTservice-roleEdge function: sso-metadata.
standup-tickPOSTbearerEdge function: standup-tick.
status-incident-publishPOSTbearerEdge function: status-incident-publish.
status-incident-writePOSTservice-roleEdge function: status-incident-write.
status-probe-tickPOSTbearerEdge function: status-probe-tick.
status-snapshotPOSTpublicEdge function: status-snapshot.
status-subscribePOSTbearerEdge function: status-subscribe.
status-subscribe-confirmPOSTservice-roleEdge function: status-subscribe-confirm.
stripe-checkout-sessionPOSTbearerEdge function: stripe-checkout-session.
stripe-create-checkoutPOSTbearerEdge function: stripe-create-checkout.
stripe-customer-portalPOSTbearerEdge function: stripe-customer-portal.
stripe-webhookPOSTservice-roleEdge function: stripe-webhook.
summary-tickPOSTservice-roleEdge function: summary-tick.
support-ticket-createPOSTbearerEdge function: support-ticket-create.
trace-to-fixPOSTbearerEdge function: trace-to-fix.
transcribe-audioPOSTbearerEdge function: transcribe-audio.
trial-onboarding-initPOSTbearerEdge function: trial-onboarding-init.
trial-seed-workspacePOSTbearerEdge function: trial-seed-workspace.
unfurl-linkPOSTbearerEdge function: unfurl-link.
verify-download-accessPOSTservice-roleEdge function: verify-download-access.
verify-lanePOSTservice-roleEdge function: verify-lane.
voice-channel-transcribePOSTbearerEdge function: voice-channel-transcribe.
voice-command-parsePOSTbearerEdge function: voice-command-parse.
voice-transcribePOSTbearerEdge function: voice-transcribe.
vscode-presencePOSTbearerEdge function: vscode-presence.
webhook-deliverPOSTservice-roleEdge function: webhook-deliver.
webhook-enqueuePOSTbearerEdge function: webhook-enqueue.
workspace-bootstrapPOSTbearerEdge function: workspace-bootstrap.
workspace-exportPOSTbearerEdge function: workspace-export.
workspace-export-tickPOSTservice-roleEdge function: workspace-export-tick.
workspace-previewsPOSTbearerEdge function: workspace-previews.
workspace-set-regionPOSTbearerEdge function: workspace-set-region.

OpenAPI spec

The full machine-readable schema for every endpoint above is at https://api.sprintloop.ai/openapi.json. It conforms to OpenAPI 3.1, includes JSON Schema for every input and output shape, and is what the SDK generators consume. If you’re integrating SprintLoop into an existing tool that supports OpenAPI directly (Postman, Insomnia, Bruno, your own codegen), point it at that URL.

A pinned snapshot of the spec is shipped with every release tag in the public repo at https://github.com/SamSnead85/SprintLoop-Communicator/tree/main/openapi.