Stable Baseline Signup API
Anonymous-callable: device-code signup flow entry points.
Anonymous-callable: device-code signup flow entry points.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/stablebaseline-io:stablebaseline-io-signup-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Stable Baseline REST Signup API
version: 0.4.0
description: 'REST adapter over the Stable Baseline MCP tool catalogue. Every operation maps 1:1 to an MCP tool; the same handlers serve both surfaces. Auth: OAuth 2.1 (Bearer) or API key with prefix `sta_*` (also Bearer). The full tool catalogue and per-category guides live at https://stablebaseline.io/docs/mcp.'
contact:
name: Stable Baseline
url: https://stablebaseline.io/contact
license:
name: Proprietary SaaS, see Terms
url: https://stablebaseline.io/terms
servers:
- url: https://api.stablebaseline.io/functions/v1/cloud-serve/api/v1
description: Production
security:
- bearerAuth: []
tags:
- name: Signup
description: 'Anonymous-callable: device-code signup flow entry points.'
paths:
/tools/startSignup:
post:
summary: startSignup
description: Begin an agent-driven sign-up to Stable Baseline. Anonymous-callable. Returns a `verification_url` and a 6-character `user_code` that the agent must show to the user. The user opens the URL in their browser, signs in or signs up if necessary, enters the code, and clicks Authorise. The agent meanwhile polls `pollSignupStatus({device_code})` every `poll_interval_seconds` until the status changes to `authorized`, at which point it receives an `api_key` it can use for subsequent MCP calls. The whole flow has a 10-minute TTL.
operationId: startSignup
tags:
- Signup
parameters:
- name: Idempotency-Key
in: header
required: false
description: 'Optional. Any 1 to 255 visible characters, new for each request you mean to make once (a UUID works). Kept 24 hours for your API key and organisation: the same key with the same request again returns the first answer (with the header Idempotent-Replayed: true) and does nothing twice; while the first call is still running, 409 with code idempotency_key_in_use and Retry-After; the same key with a different request, 422 with code idempotency_key_reused. A call that answered with an error frees its key, so the retry runs again.'
schema:
type: string
minLength: 1
maxLength: 255
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
agent_label:
type: string
maxLength: 60
description: Self-identification of the calling agent (e.g. 'Claude Desktop', 'Cursor', 'Custom CLI'). Shown to the user on the confirmation page so they know what they're authorising.
intent:
type: string
enum:
- mcp_setup
description: Reason for the signup. Currently only 'mcp_setup' is supported.
desired_org_name:
type: string
maxLength: 80
description: Optional hint for the org name to suggest if the user has no organisation yet. Ignored for users who already have an org.
responses:
'200':
description: 'Tool result (shape varies per tool: refer to the tool''s docs for the exact return value).'
headers:
Idempotent-Replayed:
description: 'true when this is the first answer for the same Idempotency-Key, replayed: nothing was done again.'
schema:
type: string
enum:
- 'true'
content:
application/json:
schema:
type: object
additionalProperties: true
'400':
description: Validation error.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid credentials.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Authenticated but lacking the required permission or feature flag.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: 'Conflict: the record changed since you read it, or one with that name already exists. Read it again, then retry. With the code `idempotency_key_in_use`, a call with the same Idempotency-Key is still running: nothing new was started; send the same request again after the Retry-After header''s seconds.'
headers:
Retry-After:
description: Whole seconds to wait before sending the same request again. Sent with the code `idempotency_key_in_use`.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: 'Body did not match the tool''s input schema. With the code `idempotency_key_reused`, the Idempotency-Key was already used for a different request: send a new key.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'423':
description: 'The credential is valid but its organisation''s own database is locked (code `org_locked`, details.action `contact_admin`). Not a sign-in problem: signing in again does not help.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: 'Too many requests. With the code `rate_limited`, the organisation is past its request limit: wait the number of seconds in the Retry-After header, then try again. Any other code is a limit of the tool itself.'
headers:
Retry-After:
description: Whole seconds to wait before trying again. Sent with the code `rate_limited`.
schema:
type: integer
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/RateLimitedResponse'
- $ref: '#/components/schemas/ErrorResponse'
'500':
description: Server error.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: 'Not available for a moment. Either the credential is valid but its organisation''s own database cannot be reached right now (code `org_unavailable`), or the credential could not be checked right now for a reason of ours (code `service_unavailable`: it was not judged, so keep it and do not sign in again). Either way details.action is `retry_later`: try again after the Retry-After header''s seconds.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/tools/pollSignupStatus:
post:
summary: pollSignupStatus
description: 'Poll the status of a signup begun via `startSignup`. Anonymous-callable. Possible status values: `pending` (the user has not authorised yet: keep polling), `authorized` (success: the response includes `api_key`, `organization_id`, `user_id`, `user_email`; the api_key is returned ONCE), `consumed` (already returned the api_key on a previous poll: stop polling), `denied` (the user clicked Deny), `expired` (10-minute TTL exceeded: call startSignup again), `not_found` (invalid device_code), `slow_down` (you''re polling faster than the interval: back off).'
operationId: pollSignupStatus
tags:
- Signup
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
device_code:
type: string
description: The device_code returned from startSignup.
required:
- device_code
responses:
'200':
description: 'Tool result (shape varies per tool: refer to the tool''s docs for the exact return value).'
content:
application/json:
schema:
type: object
additionalProperties: true
'400':
description: Validation error.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid credentials.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Authenticated but lacking the required permission or feature flag.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: 'Conflict: the record changed since you read it, or one with that name already exists. Read it again, then retry.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Body did not match the tool's input schema.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'423':
description: 'The credential is valid but its organisation''s own database is locked (code `org_locked`, details.action `contact_admin`). Not a sign-in problem: signing in again does not help.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: 'Too many requests. With the code `rate_limited`, the organisation is past its request limit: wait the number of seconds in the Retry-After header, then try again. Any other code is a limit of the tool itself.'
headers:
Retry-After:
description: Whole seconds to wait before trying again. Sent with the code `rate_limited`.
schema:
type: integer
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/RateLimitedResponse'
- $ref: '#/components/schemas/ErrorResponse'
'500':
description: Server error.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: 'Not available for a moment. Either the credential is valid but its organisation''s own database cannot be reached right now (code `org_unavailable`), or the credential could not be checked right now for a reason of ours (code `service_unavailable`: it was not judged, so keep it and do not sign in again). Either way details.action is `retry_later`: try again after the Retry-After header''s seconds.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
ErrorResponse:
type: object
properties:
error:
type: object
properties:
code:
type: string
description: Stable error code (e.g. `permission_denied`, `not_found`, `validation_failed`).
message:
type: string
description: Human-readable explanation.
details:
type: object
additionalProperties: true
description: Optional context.
required:
- code
- message
required:
- error
RateLimitedResponse:
type: object
properties:
error:
type: object
properties:
code:
type: string
description: Always `rate_limited`.
message:
type: string
description: One sentence saying the organisation is past its limit and how long to wait.
retry_after:
type: integer
description: Whole seconds to wait before trying again. The same value as the Retry-After header.
rate:
type: number
description: How many requests a second the organisation may send, across all its API keys and connections.
burst:
type: number
description: How many requests it may send at once after a quiet spell.
required:
- code
- message
- retry_after
- rate
- burst
required:
- error
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Either an MCP API key (prefix `sta_`, mint at https://app.stablebaseline.io/settings/developers) or an OAuth 2.1 access token. Every OAuth endpoint lives under this function, and the authoritative list is at https://api.stablebaseline.io/functions/v1/cloud-serve/.well-known/oauth-authorization-server: authorise at https://api.stablebaseline.io/functions/v1/cloud-serve/oauth/authorize, exchange at https://api.stablebaseline.io/functions/v1/cloud-serve/oauth/token.'