Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Starcovery Keys API
version: '1'
description: 'Starcovery machine surface. Send API-Version: 1; every response carries API-Version: 1, the version served, whatever version the request sent. A JSON request body over 5657944 bytes, or one with no Content-Length or with a Content-Length that is not a declared length the server will read, answers 413 `body_too_large` without being read whole, a JSON request body with a key its operation does not declare answers 400 `invalid_body` naming the key, and an operation that lists no request body or a JSON `null` one takes none: send no body.'
servers:
- description: Production. Unsigned GET /api/search is the live test call. There is no separate sandbox host.
url: https://www.starcovery.com
security: []
tags:
- name: Keys
description: API keys of the organization. Needs a browser session or an API key; an OAuth access token receives 403. Only an admin creates keys. An admin lists and revokes every key of the organization, and a member lists and revokes only the keys that member minted. The role belongs to the user behind the credential, which for an API key is the user who minted it, and a key stops working once that user leaves the organization.
paths:
/api/keys:
get:
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
keys:
type: array
items:
type: object
properties:
createdAt:
anyOf:
- type: string
format: date-time
pattern: ^\d{4}-\d{2}-\d{2}[Tt](?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:[Zz]|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
- type: string
format: date-time
pattern: ^\d{4}-\d{2}-\d{2}[Tt](?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:[Zz]|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
id:
type: string
minLength: 1
lastRequest:
anyOf:
- type: string
format: date-time
pattern: ^\d{4}-\d{2}-\d{2}[Tt](?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:[Zz]|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
- type: string
format: date-time
pattern: ^\d{4}-\d{2}-\d{2}[Tt](?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:[Zz]|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
- type: 'null'
name:
anyOf:
- type: string
- type: 'null'
start:
anyOf:
- type: string
- type: 'null'
description: Always null. Clerk does not return a key prefix on list.
required:
- createdAt
- id
- lastRequest
- name
- start
additionalProperties: false
required:
- keys
additionalProperties: false
headers:
ratelimit:
description: The quota name, the remaining uses, and the seconds until the window resets, in the form "name"; r=remaining; t=reset.
required: false
schema:
type: string
ratelimit-limit:
description: The uses the quota allows in one window.
required: false
schema:
type: integer
ratelimit-policy:
description: The quota and its window, in the form limit;w=seconds.
required: false
schema:
type: string
ratelimit-remaining:
description: The uses left in the current window.
required: false
schema:
type: integer
ratelimit-reset:
description: The seconds until the window resets.
required: false
schema:
type: integer
'401':
description: The request carries no credential where the operation needs an identified caller, or carries an API key, access token, or session that does not verify, resolves to no organization, or is a kind the operation does not accept.
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedEncoded'
'403':
description: The caller authenticates with an OAuth access token, which cannot list, create, or revoke API keys; a browser session or a Settings API key can.
content:
application/json:
schema:
$ref: '#/components/schemas/AgentKeyManagementForbiddenEncoded'
headers:
ratelimit:
description: The quota name, the remaining uses, and the seconds until the window resets, in the form "name"; r=remaining; t=reset.
required: false
schema:
type: string
ratelimit-limit:
description: The uses the quota allows in one window.
required: false
schema:
type: integer
ratelimit-policy:
description: The quota and its window, in the form limit;w=seconds.
required: false
schema:
type: string
ratelimit-remaining:
description: The uses left in the current window.
required: false
schema:
type: integer
ratelimit-reset:
description: The seconds until the window resets.
required: false
schema:
type: integer
'413':
description: A JSON request body is larger than the api accepts, and `message` names the limit in bytes. The api answers before it reads the whole body.
content:
application/json:
schema:
$ref: '#/components/schemas/BodyTooLargeEncoded'
headers:
ratelimit:
description: The quota name, the remaining uses, and the seconds until the window resets, in the form "name"; r=remaining; t=reset.
required: false
schema:
type: string
ratelimit-limit:
description: The uses the quota allows in one window.
required: false
schema:
type: integer
ratelimit-policy:
description: The quota and its window, in the form limit;w=seconds.
required: false
schema:
type: string
ratelimit-remaining:
description: The uses left in the current window.
required: false
schema:
type: integer
ratelimit-reset:
description: The seconds until the window resets.
required: false
schema:
type: integer
'429':
headers:
ratelimit:
description: The quota name, the remaining uses, and the seconds until the window resets, in the form "name"; r=remaining; t=reset.
required: false
schema:
type: string
ratelimit-limit:
description: The uses the quota allows in one window.
required: false
schema:
type: integer
ratelimit-policy:
description: The quota and its window, in the form limit;w=seconds.
required: false
schema:
type: string
ratelimit-remaining:
description: The uses left in the current window.
required: false
schema:
type: integer
ratelimit-reset:
description: The seconds until the window resets.
required: false
schema:
type: integer
retry-after:
schema:
type: string
pattern: ^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:[Ee][+-]?\d+)?$
required: true
description: The caller has passed a rate limit, and the `retry-after` header gives the number of seconds to wait before the next attempt.
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitedEncoded'
security:
- bearer: []
- apiKey: []
- session: []
tags:
- Keys
operationId: keys.listKeys
parameters: []
description: 'Lists the API keys of the organization that the caller may revoke: id, name, and timestamps. Never returns a plaintext key. start is always null: Clerk does not return a key prefix on list.'
summary: List API keys
post:
responses:
'201':
description: Success
content:
application/json:
schema:
type: object
properties:
key:
type: object
properties:
id:
type: string
minLength: 1
key:
type: string
minLength: 1
description: Plaintext secret; returned only on create
name:
anyOf:
- type: string
- type: 'null'
required:
- id
- key
- name
additionalProperties: false
required:
- key
additionalProperties: false
headers:
ratelimit:
description: The quota name, the remaining uses, and the seconds until the window resets, in the form "name"; r=remaining; t=reset.
required: false
schema:
type: string
ratelimit-limit:
description: The uses the quota allows in one window.
required: false
schema:
type: integer
ratelimit-policy:
description: The quota and its window, in the form limit;w=seconds.
required: false
schema:
type: string
ratelimit-remaining:
description: The uses left in the current window.
required: false
schema:
type: integer
ratelimit-reset:
description: The seconds until the window resets.
required: false
schema:
type: integer
'400':
description: The request body or a header does not decode against the operation's schema, the `content-type` of a JSON request body is not `application/json`, the upload body is empty, a signed Stripe webhook body is not JSON or lacks a field that settlement reads, or a signed Zernio webhook body is not a JSON event, and `message` names the failure. For a decode failure, `message` states the rule the value fails and, for a field, adds the path of the field on its own line, such as `at ["contract"]["deliverable"]`. A request body without a `content-type` reads as JSON.
content:
application/json:
schema:
$ref: '#/components/schemas/InvalidBodyEncoded'
headers:
ratelimit:
description: The quota name, the remaining uses, and the seconds until the window resets, in the form "name"; r=remaining; t=reset.
required: false
schema:
type: string
ratelimit-limit:
description: The uses the quota allows in one window.
required: false
schema:
type: integer
ratelimit-policy:
description: The quota and its window, in the form limit;w=seconds.
required: false
schema:
type: string
ratelimit-remaining:
description: The uses left in the current window.
required: false
schema:
type: integer
ratelimit-reset:
description: The seconds until the window resets.
required: false
schema:
type: integer
'401':
description: The request carries no credential where the operation needs an identified caller, or carries an API key, access token, or session that does not verify, resolves to no organization, or is a kind the operation does not accept.
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedEncoded'
'403':
description: The caller does not hold the owner role in the organization, and only an organization owner creates API keys. | The caller authenticates with an OAuth access token, which cannot list, create, or revoke API keys; a browser session or a Settings API key can.
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/ApiKeyOwnerOnlyEncoded'
- $ref: '#/components/schemas/AgentKeyManagementForbiddenEncoded'
headers:
ratelimit:
description: The quota name, the remaining uses, and the seconds until the window resets, in the form "name"; r=remaining; t=reset.
required: false
schema:
type: string
ratelimit-limit:
description: The uses the quota allows in one window.
required: false
schema:
type: integer
ratelimit-policy:
description: The quota and its window, in the form limit;w=seconds.
required: false
schema:
type: string
ratelimit-remaining:
description: The uses left in the current window.
required: false
schema:
type: integer
ratelimit-reset:
description: The seconds until the window resets.
required: false
schema:
type: integer
'409':
description: A key of the organization already has this name, a revoked key included, so no key is created.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKeyNameTakenEncoded'
headers:
ratelimit:
description: The quota name, the remaining uses, and the seconds until the window resets, in the form "name"; r=remaining; t=reset.
required: false
schema:
type: string
ratelimit-limit:
description: The uses the quota allows in one window.
required: false
schema:
type: integer
ratelimit-policy:
description: The quota and its window, in the form limit;w=seconds.
required: false
schema:
type: string
ratelimit-remaining:
description: The uses left in the current window.
required: false
schema:
type: integer
ratelimit-reset:
description: The seconds until the window resets.
required: false
schema:
type: integer
'413':
description: A JSON request body is larger than the api accepts, and `message` names the limit in bytes. The api answers before it reads the whole body.
content:
application/json:
schema:
$ref: '#/components/schemas/BodyTooLargeEncoded'
headers:
ratelimit:
description: The quota name, the remaining uses, and the seconds until the window resets, in the form "name"; r=remaining; t=reset.
required: false
schema:
type: string
ratelimit-limit:
description: The uses the quota allows in one window.
required: false
schema:
type: integer
ratelimit-policy:
description: The quota and its window, in the form limit;w=seconds.
required: false
schema:
type: string
ratelimit-remaining:
description: The uses left in the current window.
required: false
schema:
type: integer
ratelimit-reset:
description: The seconds until the window resets.
required: false
schema:
type: integer
'429':
headers:
ratelimit:
description: The quota name, the remaining uses, and the seconds until the window resets, in the form "name"; r=remaining; t=reset.
required: false
schema:
type: string
ratelimit-limit:
description: The uses the quota allows in one window.
required: false
schema:
type: integer
ratelimit-policy:
description: The quota and its window, in the form limit;w=seconds.
required: false
schema:
type: string
ratelimit-remaining:
description: The uses left in the current window.
required: false
schema:
type: integer
ratelimit-reset:
description: The seconds until the window resets.
required: false
schema:
type: integer
retry-after:
schema:
type: string
pattern: ^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:[Ee][+-]?\d+)?$
required: true
description: The caller has passed a rate limit, and the `retry-after` header gives the number of seconds to wait before the next attempt.
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitedEncoded'
security:
- bearer: []
- apiKey: []
- session: []
tags:
- Keys
operationId: keys.createKey
parameters: []
description: 'Mints an API key for the organization and returns the plaintext key once. Store it on receipt. Only an organization admin mints keys; a member receives 403. A name another key of the organization holds, a revoked key included, receives 409. A key minted with an API key is an ordinary key of the same member, not a child of the minting key: it is listed and revoked on its own, and revoking the key that minted it leaves it working.'
summary: Create API key
requestBody:
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: Key label of 3 to 64 characters
maxLength: 64
pattern: ^[^\u0000]*[^\u0000-\u0020\u007F-\u00A0\u00AD\u0300-\u036F\u034F\u061C\u115F\u1160\u1680\u17B4\u17B5\u180B-\u180F\u2000-\u200F\u2028-\u202F\u205F-\u206F\u20D0-\u20F0\u2800\u3000\u3164\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFA0\uFFF0-\uFFF8][^\u0000]*$
required:
- name
additionalProperties: false
required: true
/api/keys/{keyId}:
delete:
responses:
'204':
description: <No Content>
headers:
ratelimit:
description: The quota name, the remaining uses, and the seconds until the window resets, in the form "name"; r=remaining; t=reset.
required: false
schema:
type: string
ratelimit-limit:
description: The uses the quota allows in one window.
required: false
schema:
type: integer
ratelimit-policy:
description: The quota and its window, in the form limit;w=seconds.
required: false
schema:
type: string
ratelimit-remaining:
description: The uses left in the current window.
required: false
schema:
type: integer
ratelimit-reset:
description: The seconds until the window resets.
required: false
schema:
type: integer
'401':
description: The request carries no credential where the operation needs an identified caller, or carries an API key, access token, or session that does not verify, resolves to no organization, or is a kind the operation does not accept.
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedEncoded'
'403':
description: The caller authenticates with an OAuth access token, which cannot list, create, or revoke API keys; a browser session or a Settings API key can.
content:
application/json:
schema:
$ref: '#/components/schemas/AgentKeyManagementForbiddenEncoded'
headers:
ratelimit:
description: The quota name, the remaining uses, and the seconds until the window resets, in the form "name"; r=remaining; t=reset.
required: false
schema:
type: string
ratelimit-limit:
description: The uses the quota allows in one window.
required: false
schema:
type: integer
ratelimit-policy:
description: The quota and its window, in the form limit;w=seconds.
required: false
schema:
type: string
ratelimit-remaining:
description: The uses left in the current window.
required: false
schema:
type: integer
ratelimit-reset:
description: The seconds until the window resets.
required: false
schema:
type: integer
'404':
description: A resource the request names does not exist or is not visible to the caller.
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundEncoded'
headers:
ratelimit:
description: The quota name, the remaining uses, and the seconds until the window resets, in the form "name"; r=remaining; t=reset.
required: false
schema:
type: string
ratelimit-limit:
description: The uses the quota allows in one window.
required: false
schema:
type: integer
ratelimit-policy:
description: The quota and its window, in the form limit;w=seconds.
required: false
schema:
type: string
ratelimit-remaining:
description: The uses left in the current window.
required: false
schema:
type: integer
ratelimit-reset:
description: The seconds until the window resets.
required: false
schema:
type: integer
'413':
description: A JSON request body is larger than the api accepts, and `message` names the limit in bytes. The api answers before it reads the whole body.
content:
application/json:
schema:
$ref: '#/components/schemas/BodyTooLargeEncoded'
headers:
ratelimit:
description: The quota name, the remaining uses, and the seconds until the window resets, in the form "name"; r=remaining; t=reset.
required: false
schema:
type: string
ratelimit-limit:
description: The uses the quota allows in one window.
required: false
schema:
type: integer
ratelimit-policy:
description: The quota and its window, in the form limit;w=seconds.
required: false
schema:
type: string
ratelimit-remaining:
description: The uses left in the current window.
required: false
schema:
type: integer
ratelimit-reset:
description: The seconds until the window resets.
required: false
schema:
type: integer
'429':
headers:
ratelimit:
description: The quota name, the remaining uses, and the seconds until the window resets, in the form "name"; r=remaining; t=reset.
required: false
schema:
type: string
ratelimit-limit:
description: The uses the quota allows in one window.
required: false
schema:
type: integer
ratelimit-policy:
description: The quota and its window, in the form limit;w=seconds.
required: false
schema:
type: string
ratelimit-remaining:
description: The uses left in the current window.
required: false
schema:
type: integer
ratelimit-reset:
description: The seconds until the window resets.
required: false
schema:
type: integer
retry-after:
schema:
type: string
pattern: ^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:[Ee][+-]?\d+)?$
required: true
description: The caller has passed a rate limit, and the `retry-after` header gives the number of seconds to wait before the next attempt.
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitedEncoded'
security:
- bearer: []
- apiKey: []
- session: []
tags:
- Keys
operationId: keys.revokeKey
parameters:
- name: keyId
in: path
schema:
type: string
minLength: 1
required: true
description: 'Revokes an API key by id. A key the caller may not revoke receives 404, like a missing key. Revocation is irreversible and touches only that key: keys minted with it stay enabled until they are revoked by id.'
summary: Revoke API key
components:
schemas:
InvalidBodyEncoded:
type: object
properties:
_tag:
type: string
enum:
- InvalidBody
error:
type: string
enum:
- invalid_body
message:
type: string
required:
- error
- message
additionalProperties: false
ApiKeyOwnerOnlyEncoded:
type: object
properties:
_tag:
type: string
enum:
- ApiKeyOwnerOnly
error:
type: string
enum:
- api_key_owner_only
message:
type: string
enum:
- Only an admin of this organization can create API keys.
required:
- error
- message
additionalProperties: false
ApiKeyNameTakenEncoded:
type: object
properties:
_tag:
type: string
enum:
- ApiKeyNameTaken
error:
type: string
enum:
- api_key_name_taken
message:
type: string
enum:
- A key of this organization already has this name, a revoked key included. Choose another name.
required:
- error
- message
additionalProperties: false
UnauthorizedEncoded:
type: object
properties:
_tag:
type: string
enum:
- Unauthorized
error:
type: string
enum:
- unauthorized
required:
- error
additionalProperties: false
BodyTooLargeEncoded:
type: object
properties:
_tag:
type: string
enum:
- BodyTooLarge
error:
type: string
enum:
- body_too_large
message:
type: string
required:
- error
- message
additionalProperties: false
AgentKeyManagementForbiddenEncoded:
type: object
properties:
_tag:
type: string
enum:
- AgentKeyManagementForbidden
error:
type: string
enum:
- 'forbidden: only a browser session or a Settings API key can manage API keys'
required:
- error
additionalProperties: false
NotFoundEncoded:
type: object
properties:
_tag:
type: string
enum:
- NotFound
error:
type: string
enum:
- not_found
required:
- error
additionalProperties: false
RateLimitedEncoded:
type: object
properties:
_tag:
type: string
enum:
- RateLimited
error:
type: string
enum:
- rate_limited
required:
- error
additionalProperties: false
securitySchemes:
bearer:
type: http
scheme: Bearer
apiKey:
description: 'API key for a host that cannot set the Authorization header. Read only when Authorization carries no Bearer credential: a request that sends both headers is answered by the Authorization credential alone, so a key here never overrides it.'
type: apiKey
name: x-api-key
in: header
session:
description: Clerk session token cookie of a signed-in browser on the Starcovery site. REST only; MCP rejects a session.
type: apiKey
name: __session
in: cookie