{"openapi":"3.0.3","info":{"title":"Shipline CI/CD API","version":"v1","description":"Commercial CI/CD control-plane API for repositories, pipelines, runs, environments, deployments, exports, support diagnostics, and webhooks."},"servers":[{"url":"/","description":"Current Shipline deployment"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"API token created from /api-tokens. Tokens are scoped; use the least-privilege scope required for each endpoint."},"cookieAuth":{"type":"apiKey","in":"cookie","name":"055_cicd_auth","description":"Signed-in browser session cookie. API bearer tokens are rejected for account profile and browser session endpoints."}},"schemas":{"problem":{"type":"object","properties":{"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"requestId":{"type":"string"}}},"run":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string"},"branch":{"type":"string"},"commitSha":{"type":"string"}}},"repository":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"provider":{"type":"string"},"name":{"type":"string"},"defaultBranch":{"type":"string"}}}}},"security":[{"bearerAuth":[]}],"paths":{"/api":{"get":{"summary":"API metadata","description":"Returns service metadata, documentation URL, OpenAPI URL, endpoint list, and supported token scopes.","security":[],"responses":{"200":{"description":"Success"},"400":{"description":"Bad request"}}}},"/api/dashboard":{"get":{"summary":"Dashboard summary","description":"Requires API token scope dashboard:read.","security":[{"bearerAuth":["dashboard:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/repositories":{"get":{"summary":"List repositories","description":"Requires API token scope repositories:read.","security":[{"bearerAuth":["repositories:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}},"post":{"summary":"Create or update repository","description":"Requires API token scope repositories:write.","security":[{"bearerAuth":["repositories:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/repositories/imports":{"get":{"summary":"List repository import history","description":"Requires API token scope repositories:read.","security":[{"bearerAuth":["repositories:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/repositories/{repositoryId}/import-to-shipline":{"post":{"summary":"Import an external repository into Shipline Git","description":"Requires API token scope repositories:write.","security":[{"bearerAuth":["repositories:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/agent-tasks":{"get":{"summary":"List OpenCode Agent Tasks","description":"Requires API token scope agent-tasks:read.","security":[{"bearerAuth":["agent-tasks:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}},"post":{"summary":"Create OpenCode Agent Task","description":"Requires API token scope agent-tasks:write.","security":[{"bearerAuth":["agent-tasks:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/agent-tasks/{taskId}":{"get":{"summary":"Get OpenCode Agent Task","description":"Requires API token scope agent-tasks:read.","security":[{"bearerAuth":["agent-tasks:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/agent-tasks/{taskId}/claim":{"post":{"summary":"Claim a specific OpenCode Agent Task; requires agent-tasks:write and agent-tasks:worker","description":"Requires API token scope agent-tasks:write.","security":[{"bearerAuth":["agent-tasks:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/agent-tasks/{taskId}/attempts":{"get":{"summary":"List OpenCode Agent Task worker attempts","description":"Requires API token scope agent-tasks:read.","security":[{"bearerAuth":["agent-tasks:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/agent-tasks/{taskId}/logs":{"get":{"summary":"List OpenCode Agent Task logs","description":"Requires API token scope agent-tasks:read.","security":[{"bearerAuth":["agent-tasks:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}},"post":{"summary":"Append OpenCode Agent Task worker log; requires agent-tasks:write and agent-tasks:worker","description":"Requires API token scope agent-tasks:write.","security":[{"bearerAuth":["agent-tasks:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/agent-tasks/{taskId}/validations":{"get":{"summary":"List OpenCode Agent Task validation results","description":"Requires API token scope agent-tasks:read.","security":[{"bearerAuth":["agent-tasks:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}},"post":{"summary":"Record OpenCode Agent Task validation result; requires agent-tasks:write and agent-tasks:worker","description":"Requires API token scope agent-tasks:write.","security":[{"bearerAuth":["agent-tasks:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/agent-tasks/claim":{"post":{"summary":"Claim next queued OpenCode Agent Task; requires agent-tasks:write and agent-tasks:worker","description":"Requires API token scope agent-tasks:write.","security":[{"bearerAuth":["agent-tasks:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/agent-tasks/{taskId}/complete":{"post":{"summary":"Record OpenCode Agent Task execution evidence; requires agent-tasks:write and agent-tasks:worker","description":"Requires API token scope agent-tasks:write.","security":[{"bearerAuth":["agent-tasks:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/agent-tasks/{taskId}/renew":{"post":{"summary":"Renew OpenCode Agent Task claim lease; requires agent-tasks:write and agent-tasks:worker","description":"Requires API token scope agent-tasks:write.","security":[{"bearerAuth":["agent-tasks:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/agent-tasks/{taskId}/approve":{"post":{"summary":"Approve risky OpenCode Agent Task for worker claim","description":"Requires API token scope agent-tasks:approve.","security":[{"bearerAuth":["agent-tasks:approve"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/agent-tasks/{taskId}/cancel":{"post":{"summary":"Cancel OpenCode Agent Task","description":"Requires API token scope agent-tasks:write.","security":[{"bearerAuth":["agent-tasks:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/source-connections":{"get":{"summary":"List source provider connections","description":"Requires API token scope repositories:read.","security":[{"bearerAuth":["repositories:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/source-connections/{connectionId}/disconnect":{"post":{"summary":"Disconnect source provider connection","description":"Requires API token scope repositories:write.","security":[{"bearerAuth":["repositories:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/source-connections/{connectionId}/reconnect":{"post":{"summary":"Reconnect source provider connection","description":"Requires API token scope repositories:write.","security":[{"bearerAuth":["repositories:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/pipelines":{"get":{"summary":"List pipelines","description":"Requires API token scope pipelines:read.","security":[{"bearerAuth":["pipelines:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}},"post":{"summary":"Create or update pipeline","description":"Requires API token scope pipelines:write.","security":[{"bearerAuth":["pipelines:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/pipelines/validate":{"post":{"summary":"Validate pipeline YAML","description":"Requires API token scope pipelines:write.","security":[{"bearerAuth":["pipelines:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/pipelines/{pipelineId}/enable":{"post":{"summary":"Enable pipeline","description":"Requires API token scope pipelines:write.","security":[{"bearerAuth":["pipelines:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/pipelines/{pipelineId}/disable":{"post":{"summary":"Disable pipeline","description":"Requires API token scope pipelines:write.","security":[{"bearerAuth":["pipelines:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/pipelines/{pipelineId}/runs":{"post":{"summary":"Create and queue manual run for a pipeline","description":"Requires API token scope runs:write.","security":[{"bearerAuth":["runs:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/runs":{"get":{"summary":"List pipeline runs","description":"Requires API token scope runs:read.","security":[{"bearerAuth":["runs:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}},"post":{"summary":"Create and queue manual run","description":"Requires API token scope runs:write.","security":[{"bearerAuth":["runs:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/runs/{runId}/timeline":{"get":{"summary":"Run timeline","description":"Requires API token scope runs:read.","security":[{"bearerAuth":["runs:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/runs/{runId}/logs":{"get":{"summary":"Run logs","description":"Requires API token scope runs:read.","security":[{"bearerAuth":["runs:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/runs/{runId}/logs/stream":{"get":{"summary":"Stream run logs as server-sent events","description":"Requires API token scope runs:read.","security":[{"bearerAuth":["runs:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/runs/{runId}/source-checks":{"get":{"summary":"Run source checks","description":"Requires API token scope runs:read.","security":[{"bearerAuth":["runs:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/runs/{runId}/test-reports":{"get":{"summary":"Run test reports","description":"Requires API token scope runs:read.","security":[{"bearerAuth":["runs:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/runs/{runId}/artifacts":{"get":{"summary":"Run artifact metadata","description":"Requires API token scope runs:read.","security":[{"bearerAuth":["runs:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/runs/{runId}/coverage":{"get":{"summary":"Run coverage metadata","description":"Requires API token scope runs:read.","security":[{"bearerAuth":["runs:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/runs/{runId}/caches":{"get":{"summary":"Run cache metadata","description":"Requires API token scope runs:read.","security":[{"bearerAuth":["runs:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/runs/{runId}/cancel":{"post":{"summary":"Cancel a run","description":"Requires API token scope runs:write.","security":[{"bearerAuth":["runs:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/approvals":{"get":{"summary":"List pending approvals","description":"Requires API token scope approvals:read.","security":[{"bearerAuth":["approvals:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/approvals/{approvalId}/approve":{"post":{"summary":"Approve a pending deployment approval","description":"Requires API token scope approvals:write.","security":[{"bearerAuth":["approvals:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/approvals/{approvalId}/reject":{"post":{"summary":"Reject a pending deployment approval","description":"Requires API token scope approvals:write.","security":[{"bearerAuth":["approvals:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/runners/pools":{"get":{"summary":"List runner pools","description":"Requires API token scope runners:read.","security":[{"bearerAuth":["runners:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}},"post":{"summary":"Create runner pool","description":"Requires API token scope runners:write.","security":[{"bearerAuth":["runners:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/runners/registrations":{"get":{"summary":"List runner registrations","description":"Requires API token scope runners:read.","security":[{"bearerAuth":["runners:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/runners/register":{"post":{"summary":"Issue runner registration token","description":"Requires API token scope runners:write.","security":[{"bearerAuth":["runners:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/environments":{"get":{"summary":"List environments","description":"Requires API token scope environments:read.","security":[{"bearerAuth":["environments:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}},"post":{"summary":"Create or update environment","description":"Requires API token scope environments:write.","security":[{"bearerAuth":["environments:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/deployment-targets":{"get":{"summary":"List deployment targets","description":"Requires API token scope deployment-targets:read.","security":[{"bearerAuth":["deployment-targets:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}},"post":{"summary":"Create or update deployment target","description":"Requires API token scope deployment-targets:write.","security":[{"bearerAuth":["deployment-targets:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/deployment-targets/{targetId}/preflight":{"get":{"summary":"Deployment target preflight","description":"Requires API token scope deployment-targets:read.","security":[{"bearerAuth":["deployment-targets:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/deployment-targets/{targetId}/enable":{"post":{"summary":"Enable deployment target","description":"Requires API token scope deployment-targets:write.","security":[{"bearerAuth":["deployment-targets:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/deployment-targets/{targetId}/disable":{"post":{"summary":"Disable deployment target","description":"Requires API token scope deployment-targets:write.","security":[{"bearerAuth":["deployment-targets:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/deployments":{"get":{"summary":"List deployment records","description":"Requires API token scope deployments:read.","security":[{"bearerAuth":["deployments:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/deployments/{deploymentId}/rollback":{"post":{"summary":"Create rollback deployment","description":"Requires API token scope deployments:write.","security":[{"bearerAuth":["deployments:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/deployments/{deploymentId}/target-results":{"get":{"summary":"Deployment target results","description":"Requires API token scope deployments:read.","security":[{"bearerAuth":["deployments:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/billing/usage":{"get":{"summary":"Read billing usage and hosted runner limits","description":"Requires API token scope billing:read.","security":[{"bearerAuth":["billing:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/billing/hosted-controls":{"post":{"summary":"Update hosted runner hard-cap and overage controls","description":"Requires API token scope billing:write.","security":[{"bearerAuth":["billing:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/billing/hosted-access/request":{"post":{"summary":"Request hosted runner access for the workspace","description":"Requires API token scope billing:write.","security":[{"bearerAuth":["billing:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/registry/repositories":{"get":{"summary":"List Shipline Registry repositories","description":"Requires API token scope registry:read.","security":[{"bearerAuth":["registry:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/registry/tags/{repositoryName}":{"get":{"summary":"List Shipline Registry tags","description":"Requires API token scope registry:read.","security":[{"bearerAuth":["registry:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/registry/delete":{"post":{"summary":"Delete Shipline Registry tag or manifest","description":"Requires API token scope registry:write.","security":[{"bearerAuth":["registry:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/exports/workspace":{"post":{"summary":"Create workspace export","description":"Requires API token scope exports:write.","security":[{"bearerAuth":["exports:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/support/diagnostics":{"get":{"summary":"Support diagnostics","description":"Requires API token scope support:read.","security":[{"bearerAuth":["support:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/support/metrics":{"get":{"summary":"Prometheus support metrics","description":"Requires API token scope support:read.","security":[{"bearerAuth":["support:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/support/cleanup":{"post":{"summary":"Run retention cleanup","description":"Requires API token scope support:write.","security":[{"bearerAuth":["support:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/support/hosted-canary":{"post":{"summary":"Queue hosted worker canary","description":"Requires API token scope support:write.","security":[{"bearerAuth":["support:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/support/jobs/{jobRunId}/requeue":{"post":{"summary":"Requeue a hosted/self-hosted job","description":"Requires API token scope support:write.","security":[{"bearerAuth":["support:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/support/runners/{runnerId}/revoke":{"post":{"summary":"Revoke a runner registration token","description":"Requires API token scope support:write.","security":[{"bearerAuth":["support:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/support/runners/{runnerId}/rotate":{"post":{"summary":"Rotate a runner registration token","description":"Requires API token scope support:write.","security":[{"bearerAuth":["support:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/support/hosted-workers/{workerId}/drain":{"post":{"summary":"Drain a hosted worker","description":"Requires API token scope support:write.","security":[{"bearerAuth":["support:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/support/hosted-workers/{workerId}/undrain":{"post":{"summary":"Undrain a hosted worker","description":"Requires API token scope support:write.","security":[{"bearerAuth":["support:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/support/hosted-workers/{workerId}/disable":{"post":{"summary":"Disable a hosted worker","description":"Requires API token scope support:write.","security":[{"bearerAuth":["support:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/support/hosted-workers/{workerId}/enable":{"post":{"summary":"Enable a hosted worker","description":"Requires API token scope support:write.","security":[{"bearerAuth":["support:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/support/hosted-jobs/{assignmentId}/cancel":{"post":{"summary":"Cancel a hosted job assignment","description":"Requires API token scope support:write.","security":[{"bearerAuth":["support:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/support/hosted-runners/suspend":{"post":{"summary":"Suspend hosted runners for the organization","description":"Requires API token scope support:write.","security":[{"bearerAuth":["support:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/support/hosted-runners/resume":{"post":{"summary":"Resume hosted runners for the organization","description":"Requires API token scope support:write.","security":[{"bearerAuth":["support:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/support/hosted-runners/access/{status}":{"post":{"summary":"Update hosted runner manual access status","description":"Requires API token scope support:write.","security":[{"bearerAuth":["support:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/support/webhooks/{deliveryId}/replay":{"post":{"summary":"Replay a verified webhook delivery","description":"Requires API token scope support:write.","security":[{"bearerAuth":["support:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/settings/organization":{"get":{"summary":"Read organization profile and billing contact","description":"Requires API token scope settings:read.","security":[{"bearerAuth":["settings:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}},"post":{"summary":"Update organization profile and billing contact","description":"Requires API token scope settings:write.","security":[{"bearerAuth":["settings:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/secrets":{"get":{"summary":"List secret metadata","description":"Requires API token scope secrets:read.","security":[{"bearerAuth":["secrets:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}},"post":{"summary":"Create or rotate secret","description":"Requires API token scope secrets:write.","security":[{"bearerAuth":["secrets:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/account/profile":{"get":{"summary":"Read current account profile","description":"Requires a signed-in browser session. API bearer tokens are rejected for account profile and browser session endpoints.","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Browser session required"}}},"post":{"summary":"Update current account profile","description":"Requires a signed-in browser session. API bearer tokens are rejected for account profile and browser session endpoints.","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Browser session required"}}}},"/api/account/sessions":{"get":{"summary":"List current account browser sessions","description":"Requires a signed-in browser session. API bearer tokens are rejected for account profile and browser session endpoints.","security":[{"cookieAuth":[]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Browser session required"}}}},"/api/team/users":{"get":{"summary":"List team users","description":"Requires API token scope team:read.","security":[{"bearerAuth":["team:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/team/invitations":{"get":{"summary":"List team invitations","description":"Requires API token scope team:read.","security":[{"bearerAuth":["team:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/team/users/{userId}/role":{"post":{"summary":"Update team member role","description":"Requires API token scope team:write.","security":[{"bearerAuth":["team:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/team/users/{userId}/activate":{"post":{"summary":"Activate team member","description":"Requires API token scope team:write.","security":[{"bearerAuth":["team:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/team/users/{userId}/deactivate":{"post":{"summary":"Deactivate team member","description":"Requires API token scope team:write.","security":[{"bearerAuth":["team:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/team/invitations/{invitationId}/resend":{"post":{"summary":"Resend pending invitation","description":"Requires API token scope team:write.","security":[{"bearerAuth":["team:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/team/invitations/{invitationId}/cancel":{"post":{"summary":"Cancel pending invitation","description":"Requires API token scope team:write.","security":[{"bearerAuth":["team:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/outbound-webhooks":{"get":{"summary":"List outbound webhook subscriptions","description":"Requires API token scope outbound-webhooks:read.","security":[{"bearerAuth":["outbound-webhooks:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}},"post":{"summary":"Create outbound webhook subscription","description":"Requires API token scope outbound-webhooks:write.","security":[{"bearerAuth":["outbound-webhooks:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/outbound-webhooks/deliveries":{"get":{"summary":"List outbound webhook delivery metadata","description":"Requires API token scope outbound-webhooks:read.","security":[{"bearerAuth":["outbound-webhooks:read"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/outbound-webhooks/{subscriptionId}/enable":{"post":{"summary":"Enable outbound webhook subscription","description":"Requires API token scope outbound-webhooks:write.","security":[{"bearerAuth":["outbound-webhooks:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/outbound-webhooks/{subscriptionId}/disable":{"post":{"summary":"Disable outbound webhook subscription","description":"Requires API token scope outbound-webhooks:write.","security":[{"bearerAuth":["outbound-webhooks:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/api/outbound-webhooks/deliveries/{deliveryId}/retry":{"post":{"summary":"Retry failed outbound webhook delivery","description":"Requires API token scope outbound-webhooks:write.","security":[{"bearerAuth":["outbound-webhooks:write"]}],"responses":{"200":{"description":"Success"},"401":{"description":"Authentication required"},"403":{"description":"Insufficient scope"}}}},"/webhooks/github/{organizationId}":{"post":{"summary":"GitHub webhook","description":"Signed GitHub organization webhook endpoint.","security":[],"responses":{"200":{"description":"Success"},"400":{"description":"Bad request"}}}},"/webhooks/source/{provider}/{organizationId}":{"post":{"summary":"GitLab/Bitbucket/Azure Repos webhook","description":"Shared-token provider webhook endpoint.","security":[],"responses":{"200":{"description":"Success"},"400":{"description":"Bad request"}}}},"/stripe/webhook":{"post":{"summary":"Stripe billing webhook","description":"Signed Stripe webhook endpoint.","security":[],"responses":{"200":{"description":"Success"},"400":{"description":"Bad request"}}}}}}