Typeship API Keys API
List and revoke keys. Creation is console-only.
List and revoke keys. Creation is console-only.
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/typeship-dev:typeship-dev-api-keys-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: Typeship API Keys API
version: 1.0.0
description: 'Resolve an OpenAPI or GraphQL Spec, diagnose it, and keep every
selected CLI, MCP, and SDK Target current.
Every operation but one requires a bearer credential: an organization
API key from the console, or an OAuth access token carrying the operation''s
read, generate, or write capability and the organization selected during
consent. OAuth grants cannot switch organizations after consent. A browser
session is not a credential for this API. The exception is POST /generate,
which works anonymously with the free plan''s limits.
Examples use Parcel, a fictional delivery service. Replace its domains,
repository names, and resource identifiers with your own. The hosted
petstore Spec is a runnable sample.'
servers:
- url: https://typeship.dev/api/v1
tags:
- name: API Keys
description: List and revoke keys. Creation is console-only.
paths:
/api-keys:
get:
operationId: listApiKeys
tags:
- API Keys
summary: List API keys
description: Lists key metadata and the last four characters of each key. Full keys are not returned. Create keys in the Console.
security:
- apiKey: []
x-typeship-agent:
readOnlyHint: true
destructiveHint: false
idempotentHint: true
openWorldHint: false
parameters:
- $ref: '#/components/parameters/PageLimit'
- $ref: '#/components/parameters/PageCursor'
- name: status
in: query
schema:
type: string
enum:
- active
- revoked
description: Only keys with this status.
responses:
'200':
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
description: A page of API keys.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKeyList'
examples:
ApiKeyList:
$ref: '#/components/examples/ApiKeyList'
'400':
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
description: A list query parameter is unknown, repeated, empty, or invalid, or the cursor is not for this list.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
/api-keys/{api_key_id}:
get:
operationId: getApiKey
tags:
- API Keys
summary: Get an API key
description: Returns the key summary and its ETag for conditional revocation.
security:
- apiKey: []
x-typeship-agent:
readOnlyHint: true
destructiveHint: false
idempotentHint: true
openWorldHint: false
parameters:
- $ref: '#/components/parameters/ApiKeyId'
responses:
'200':
description: The API key.
headers:
ETag:
$ref: '#/components/headers/ETag'
Request-Id:
$ref: '#/components/headers/RequestId'
RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKeyResponse'
examples:
ApiKey:
$ref: '#/components/examples/ApiKey'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
/api-keys/{api_key_id}/revoke:
post:
operationId: revokeApiKey
tags:
- API Keys
summary: Revoke an API key
description: 'Revokes a key immediately. The key stays listed with `status: revoked`. Repeating the request returns the same result.
With OAuth, members can revoke their own keys; organization admins can revoke any key. Organization API keys can revoke any key in their organization.
See conditional writes for ETag and If-Match.'
security:
- apiKey: []
x-typeship-agent:
readOnlyHint: false
destructiveHint: true
idempotentHint: true
openWorldHint: false
confirmationRecommended: true
parameters:
- $ref: '#/components/parameters/ApiKeyId'
- $ref: '#/components/parameters/IfMatch'
responses:
'200':
headers:
ETag:
$ref: '#/components/headers/ETag'
Request-Id:
$ref: '#/components/headers/RequestId'
RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
description: The revoked key.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKeyResponse'
examples:
RevokedApiKey:
$ref: '#/components/examples/RevokedApiKey'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'412':
$ref: '#/components/responses/PreconditionFailed'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
components:
schemas:
ErrorCode:
type: string
enum:
- input_invalid
- input_missing
- input_type_invalid
- input_format_invalid
- input_too_long
- input_too_short
- input_duplicate
- input_unknown
- query_param_invalid
- cursor_invalid
- method_not_allowed
- resource_not_found
- idempotency_key_invalid
- idempotency_key_reused
- idempotency_key_in_use
- auth_required
- api_key_invalid
- token_invalid
- organization_required
- insufficient_scope
- role_insufficient
- rate_limit_exceeded
- feature_not_available
- quota_exceeded
- spec_invalid
- spec_too_large
- spec_unreachable
- repository_provider_unsupported
- repository_disconnected
- repository_unavailable
- target_busy
- targets_inactive
- no_draft
- draft_merged
- resource_changed
- precondition_failed
- version_invalid
- version_occupied
- version_too_low
- target_already_released
- adoption_unverified
- publication_disabled
- publication_not_retryable
- publication_recovery_unavailable
- publication_failed
- delivery_conflict
- delivery_exists
- resource_has_dependencies
- customization_conflict
- checks_failed
- draft_title_invalid
- history_recovery_required
- checks_unavailable
- regeneration_failed
- follow_up_failed
- api_error
description: Stable programmatic identifier. Do not branch on message.
TargetId:
type: string
pattern: ^tgt_[a-z0-9]{16}$
examples:
- tgt_5m8q2v7k1p9d4h6c
description: Stable identifier for one configured generated product.
ListObject:
type: string
const: list
description: Identifies a cursor-paginated collection.
ApiKeyResponse:
allOf:
- $ref: '#/components/schemas/ApiKey'
- $ref: '#/components/schemas/ResponseMetadata'
Error:
type: object
required:
- errors
- request_id
properties:
errors:
type: array
minItems: 1
items:
$ref: '#/components/schemas/ErrorDetail'
request_id:
$ref: '#/components/schemas/RequestId'
ApiKey:
type: object
required:
- id
- object
- name
- last4
- status
- last_used_at
- created_at
- updated_at
properties:
id:
type: string
object:
type: string
const: api_key
name:
type: string
last4:
type: string
description: Last four characters of the secret; the secret itself is never stored.
status:
type: string
enum:
- active
- revoked
description: 'active: the key authenticates requests. revoked: it no longer does and cannot be restored; create a new key in the Console or with typeship login.'
last_used_at:
type:
- string
- 'null'
format: date-time
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
description: When the key last changed, such as its revocation.
request_id:
$ref: '#/components/schemas/RequestId'
ResponseMetadata:
type: object
required:
- request_id
properties:
request_id:
$ref: '#/components/schemas/RequestId'
description: Request-level metadata present at the top level of every JSON response.
ApiKeyList:
type: object
required:
- object
- data
- has_more
- next_cursor
- request_id
properties:
object:
$ref: '#/components/schemas/ListObject'
data:
type: array
items:
$ref: '#/components/schemas/ApiKey'
has_more:
type: boolean
description: Whether another page is available after this one.
next_cursor:
type:
- string
- 'null'
description: Pass this value as cursor to retrieve the next page; null on the last page.
request_id:
$ref: '#/components/schemas/RequestId'
ErrorDetail:
type: object
required:
- type
- code
- message
- retryable
- suggested_action
- docs_url
properties:
type:
$ref: '#/components/schemas/ErrorType'
code:
$ref: '#/components/schemas/ErrorCode'
phase:
$ref: '#/components/schemas/FailurePhase'
target_id:
$ref: '#/components/schemas/TargetId'
description: The affected Target when an operation reports failures for multiple Targets.
field:
type: string
description: JSON Pointer to the invalid field within the request part named by in. When in is omitted, the pointer refers to the request body. Header pointers use lowercase header names, such as /idempotency-key.
in:
type: string
enum:
- body
- query
- header
description: Request part containing field. Query-parameter errors use query; header errors use header. Body errors use body or omit in.
message:
type: string
description: Human-readable explanation. Its wording may change.
retryable:
type: boolean
description: Whether another attempt can succeed without correcting the inputs. For a recorded failure, start generation or publishing again; retrieving the resource or replaying an idempotency key does not start another attempt.
suggested_action:
type: string
description: Stable, concise recovery instruction suitable for a person or agent.
docs_url:
type: string
format: uri
description: Documentation for this class of error.
RequestId:
type: string
pattern: ^req_[a-z0-9]{16}$
examples:
- req_3k8m1v6q9p2d7h4c
description: Server-generated identifier used to correlate this response with Typeship logs.
FailurePhase:
type: string
enum:
- spec
- generation
- delivery
- publication
description: The stage that failed. A delivery failure does not change a completed Generation's status.
ErrorType:
type: string
enum:
- request
- auth
- idempotency
- rate_limit
- organization
- source
- api
description: 'Who can resolve the error. request: change the request. auth: fix the credential or its grant. idempotency: change or wait on the Idempotency-Key. rate_limit: wait before retrying. organization: the organization''s plan must change. source: a system you own failed, such as the Spec URL, repository, or package registry. api: Typeship failed.'
responses:
PreconditionFailed:
description: The resource changed since the ETag supplied in If-Match. No write was applied.
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
PreconditionFailed:
$ref: '#/components/examples/PreconditionFailed'
RateLimited:
description: Too many requests, or an identical write is still in progress. Wait for Retry-After before retrying.
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
Idempotency-Replayed:
$ref: '#/components/headers/IdempotencyReplayed'
Retry-After:
$ref: '#/components/headers/RetryAfter'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
RateLimitError:
$ref: '#/components/examples/RateLimitError'
Unauthorized:
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
description: Missing, invalid, expired, or revoked credentials.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
NotFound:
description: No such resource in this organization.
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
Idempotency-Replayed:
$ref: '#/components/headers/IdempotencyReplayed'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
ServerError:
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
description: An unexpected error prevented the request from completing.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadRequest:
description: Invalid request.
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
Idempotency-Replayed:
$ref: '#/components/headers/IdempotencyReplayed'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Forbidden:
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
description: The credentials are valid but cannot act on the requested organization.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
headers:
IdempotencyReplayed:
description: Whether this is a replay of the original response for the supplied Idempotency-Key.
schema:
type: boolean
RateLimitLimit:
description: Maximum requests in the evaluated rate-limit window. Omitted when no budget was evaluated, including idempotency replays.
schema:
type: integer
minimum: 1
RateLimitReset:
description: Seconds until the evaluated rate-limit window resets, measured when the response is sent. Zero means that window has ended. Omitted when no budget was evaluated.
schema:
type: integer
minimum: 0
ETag:
description: Opaque version of the resource. Send it in If-Match to update only that version.
schema:
type: string
RequestId:
description: Server-generated identifier used to correlate this response with Typeship logs.
schema:
$ref: '#/components/schemas/RequestId'
RateLimitRemaining:
description: Requests remaining immediately after this request evaluated its budget. Concurrent requests can consume this allowance. Omitted when no budget was evaluated.
schema:
type: integer
minimum: 0
RetryAfter:
description: Seconds to wait before retrying the request.
schema:
type: integer
minimum: 1
parameters:
PageCursor:
name: cursor
in: query
description: Opaque cursor from the preceding page's next_cursor. Valid only for the same organization, operation, filters, and ordering that issued it. Omit to start at the first page. Empty or malformed cursors, and cursors issued for different filters, return 400 cursor_invalid; start again from the first page. Repeated cursors return 400 query_param_invalid. The page limit may change between requests.
schema:
type: string
minLength: 1
maxLength: 2048
pattern: ^[A-Za-z0-9_-]+$
PageLimit:
name: limit
in: query
description: Maximum number of resources to return. Omit for 20; otherwise supply base-10 digits representing an integer from 1 to 100. Empty, malformed, or out-of-range values return 400 input_invalid. List query parameters must appear only once; repeated or unrecognized parameters return 400 query_param_invalid.
schema:
type: integer
minimum: 1
maximum: 100
default: 20
ApiKeyId:
name: api_key_id
in: path
required: true
schema:
type: string
description: Identifier returned by the API key list.
example: apikey_2nY8mR6pQ4vK9cH3
IfMatch:
name: If-Match
in: header
required: false
description: ETag from a preceding response. The write applies only if the resource still has that version; otherwise it returns 412 precondition_failed without changes. Omit to write the current version. See https://typeship.dev/docs/typeship-api#conditional-writes.
schema:
type: string
minLength: 1
maxLength: 1024
examples:
RevokedApiKey:
summary: Revoked API key
value:
id: apikey_2nY8mR6pQ4vK9cH3
object: api_key
name: Parcel deployment
last4: c0de
status: revoked
last_used_at: '2026-09-23T08:00:00Z'
created_at: '2026-09-23T08:00:00Z'
updated_at: '2026-09-23T08:00:00Z'
request_id: req_3k8m1v6q9p2d7h4c
RateLimitError:
summary: Too many requests.
value:
errors:
- type: rate_limit
code: rate_limit_exceeded
message: Too many requests.
retryable: true
suggested_action: Wait for the Retry-After interval before retrying.
docs_url: https://typeship.dev/docs/typeship-api/errors#rate_limit_exceeded
request_id: req_3k8m1v6q9p2d7h4c
ApiKey:
summary: Active API key
value:
id: apikey_2nY8mR6pQ4vK9cH3
object: api_key
name: Parcel deployment
last4: c0de
status: active
last_used_at: '2026-09-23T08:00:00Z'
created_at: '2026-09-23T08:00:00Z'
updated_at: '2026-09-23T08:00:00Z'
request_id: req_3k8m1v6q9p2d7h4c
PreconditionFailed:
summary: The Draft changed since you last read it.
value:
errors:
- type: request
code: precondition_failed
field: /if-match
in: header
message: The Draft changed since you last read it. Get it again, reconcile your change, and retry with its current ETag.
retryable: false
suggested_action: Get the resource again, reconcile your change with its current state, then repeat the request with its new ETag in If-Match.
docs_url: https://typeship.dev/docs/typeship-api/errors#precondition_failed
request_id: req_3k8m1v6q9p2d7h4c
ApiKeyList:
summary: Last page of API keys
value:
object: list
data:
- id: apikey_2nY8mR6pQ4vK9cH3
object: api_key
name: Parcel deployment
last4: c0de
status: active
last_used_at: '2026-09-23T08:00:00Z'
created_at: '2026-09-23T08:00:00Z'
updated_at: '2026-09-23T08:00:00Z'
has_more: false
next_cursor: null
request_id: req_3k8m1v6q9p2d7h4c
securitySchemes:
apiKey:
type: http
scheme: bearer
description: Organization API key from the console (`ak_...`), or an OAuth access token with `user:org:read`, the organization selected during consent, and the capability required by the operation.