Release Notes Index Authentication API
Self-serve user API keys.
Self-serve user API keys.
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/releases-sh:releases-sh-authentication-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: Releases Authentication API
description: 'REST API for the Releases changelog registry — orgs, products, sources, releases, and search.
**Links:** releases.sh · Narrative docs · Errors · MCP server'
version: 1.0.0
servers:
- url: https://api.releases.sh/v1
description: Production
tags:
- name: Authentication
description: Self-serve user API keys.
paths:
/tokens/me:
delete:
operationId: deleteTokensMe
tags:
- Authentication
summary: Revoke the presenting user API key
responses:
'200':
description: The key was revoked.
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
required:
- success
'400':
description: The credential is not a user API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'401':
description: Missing, invalid, or already revoked credential
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
x-releases-visibility: public
security:
- bearerAuth: []
/api-keys:
post:
operationId: postApiKeys
tags:
- Authentication
summary: Create a user API key
description: Optional idempotency key. Reuse the same key only for an identical request; successful responses are replayable for 24 hours.
parameters:
- in: header
name: Idempotency-Key
required: false
description: Optional idempotency key. Reuse the same key only for an identical request; successful responses are replayable for 24 hours.
schema:
type: string
minLength: 16
maxLength: 255
pattern: ^[\x21-\x7e]+$
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
minLength: 1
description: Display name, at most 200 bytes.
scope:
description: Defaults to `read`, the self-serve ceiling.
type: string
enum:
- read
- write
- admin
expiresInDays:
type: integer
minimum: 1
maximum: 365
required:
- name
responses:
'201':
description: Created user API key, including the one-time secret.
headers:
Idempotency-Replayed:
description: '`true` when this response is a replay of an earlier successful request.'
schema:
type: string
enum:
- 'true'
content:
application/json:
schema:
type: object
properties:
id:
type: string
name:
type:
- string
- 'null'
start:
type:
- string
- 'null'
scope:
anyOf:
- type: string
enum:
- read
- write
- admin
- type: 'null'
remaining:
anyOf:
- type: integer
minimum: -9007199254740991
maximum: 9007199254740991
- type: 'null'
createdAt:
type: string
expiresAt:
type:
- string
- 'null'
key:
type: string
required:
- id
- name
- start
- scope
- remaining
- createdAt
- expiresAt
- key
additionalProperties: false
'400':
description: Invalid JSON body, name, scope, or expiresInDays
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'401':
description: Sign-in required
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'409':
description: Active user API key limit reached
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'503':
description: Idempotency storage or response replay is temporarily unavailable.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
x-releases-visibility: public
security:
- bearerAuth: []
get:
operationId: getApiKeys
tags:
- Authentication
summary: List user API keys
description: The caller's own `relu_` keys. Secrets are never returned after creation.
responses:
'200':
description: The caller's API keys
content:
application/json:
schema:
type: object
properties:
apiKeys:
type: array
items:
type: object
properties:
id:
type: string
name:
type:
- string
- 'null'
start:
type:
- string
- 'null'
scope:
anyOf:
- type: string
enum:
- read
- write
- admin
- type: 'null'
enabled:
type:
- boolean
- 'null'
remaining:
anyOf:
- type: integer
minimum: -9007199254740991
maximum: 9007199254740991
- type: 'null'
lastRequest:
type:
- string
- 'null'
createdAt:
type: string
expiresAt:
type:
- string
- 'null'
required:
- id
- name
- start
- scope
- enabled
- remaining
- lastRequest
- createdAt
- expiresAt
additionalProperties: false
required:
- apiKeys
additionalProperties: false
'401':
description: Sign-in required
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
x-releases-visibility: public
security:
- bearerAuth: []
/api-keys/{id}:
delete:
operationId: deleteApiKeysById
tags:
- Authentication
summary: Revoke a user API key
responses:
'200':
description: Key revoked
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
const: true
required:
- success
additionalProperties: false
'401':
description: Sign-in required
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'404':
description: API key not found, or not owned by the caller
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
parameters:
- schema:
type: string
in: path
name: id
required: true
x-releases-visibility: public
security:
- bearerAuth: []
components:
schemas:
ErrorEnvelope:
type: object
properties:
error:
type: object
properties:
code:
type: string
description: Stable, specific machine code (e.g. `not_found`, `rate_limited`). Never reworded once shipped, but open-ended — branch defensively on codes you don't recognize.
type:
type: string
enum:
- validation
- unauthorized
- forbidden
- insufficient_scope
- not_found
- conflict
- too_large
- rate_limited
- upstream
- unavailable
- internal
description: Coarse category from a fixed set; determines the HTTP status. Safe to switch on.
message:
type: string
description: Human-readable explanation. May change; do not parse.
details:
description: Optional structured context carried by select codes (e.g. `database_not_initialized`).
required:
- code
- type
- message
required:
- error
description: Standardized error response — every non-2xx response uses this shape. Switch on `error.type` (fixed set → HTTP status) or match `error.code` (specific, stable). See https://releases.sh/docs/api/errors.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: relk_… | relu_… | OAuth JWT
description: Machine/operator tokens use the relk_ prefix; self-serve read-only user keys use relu_; Sign in with Releases supplies an OAuth access token. Required scope depends on the endpoint.