smplkit API Keys API
The API Keys API from smplkit — 3 operation(s) for api keys.
The API Keys API from smplkit — 3 operation(s) for 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/smplkit-com:smplkit-com-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: smplkit API Keys API
description: API for the smplkit platform.
version: 0.1.0
tags:
- name: API Keys
paths:
/api/v1/api_keys:
post:
tags:
- API Keys
summary: Create API Key
description: Create a new API key. The id and key value are server-generated.
operationId: create_api_key
security:
- HTTPBearer: []
requestBody:
required: true
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ApiKeyRequest'
responses:
'201':
description: Successful Response
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ApiKeyResponse'
'400':
description: Validation error or malformed request
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid authentication
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
get:
tags:
- API Keys
summary: List API Keys
description: List all API keys for the authenticated account. `filter[search]` does a case-insensitive substring match against the API key `name`.
operationId: list_api_keys
security:
- HTTPBearer: []
parameters:
- name: filter[status]
in: query
required: false
schema:
type:
- string
- 'null'
title: Filter[Status]
- name: filter[search]
in: query
required: false
schema:
type:
- string
- 'null'
description: Case-insensitive substring match against the API key `name`.
title: Filter[Search]
description: Case-insensitive substring match against the API key `name`.
- name: sort
in: query
required: false
schema:
type: string
description: 'Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `created_at`, `-created_at`, `expires_at`, `-expires_at`, `last_used_at`, `-last_used_at`, `name`, `-name`, `status`, `-status`.'
enum:
- created_at
- -created_at
- expires_at
- -expires_at
- last_used_at
- -last_used_at
- name
- -name
- status
- -status
default: name
title: Sort
description: 'Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `created_at`, `-created_at`, `expires_at`, `-expires_at`, `last_used_at`, `-last_used_at`, `name`, `-name`, `status`, `-status`.'
- name: page[number]
in: query
required: false
schema:
type: integer
description: 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
default: 1
title: Page[Number]
description: 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
- name: page[size]
in: query
required: false
schema:
type: integer
description: Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
default: 1000
title: Page[Size]
description: Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
- name: meta[total]
in: query
required: false
schema:
type: boolean
description: When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
default: false
title: Meta[Total]
description: When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
responses:
'200':
description: Successful Response
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ApiKeyListResponse'
'400':
description: Validation error or malformed request
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid authentication
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/v1/api_keys/{id}:
get:
tags:
- API Keys
summary: Get API Key
description: Return an API key by id.
operationId: get_api_key
security:
- HTTPBearer: []
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
title: Id
responses:
'200':
description: Successful Response
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ApiKeyResponse'
'400':
description: Validation error or malformed request
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid authentication
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
put:
tags:
- API Keys
summary: Update API Key
description: Update an API key by id.
operationId: update_api_key
security:
- HTTPBearer: []
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
title: Id
requestBody:
required: true
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ApiKeyRequest'
responses:
'200':
description: Successful Response
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ApiKeyResponse'
'400':
description: Validation error or malformed request
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid authentication
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
delete:
tags:
- API Keys
summary: Delete API Key
description: Delete an API key by id.
operationId: delete_api_key
security:
- HTTPBearer: []
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
title: Id
responses:
'204':
description: Successful Response
'400':
description: Validation error or malformed request
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid authentication
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/v1/api_keys/{id}/actions/revoke:
post:
tags:
- API Keys
summary: Revoke API Key
description: Permanently revoke an API key.
operationId: revoke_api_key
security:
- HTTPBearer: []
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
title: Id
responses:
'200':
description: Successful Response
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ApiKeyResponse'
'400':
description: Validation error or malformed request
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing or invalid authentication
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
ListMeta:
properties:
pagination:
$ref: '#/components/schemas/PaginationMeta'
type: object
required:
- pagination
title: ListMeta
description: Top-level ``meta`` block included on every JSON:API list response.
ErrorResponse:
properties:
errors:
items:
$ref: '#/components/schemas/Error'
type: array
title: Errors
type: object
required:
- errors
title: ErrorResponse
description: JSON:API error response envelope.
ApiKeyRequest:
properties:
data:
$ref: '#/components/schemas/ApiKeyResource'
type: object
required:
- data
title: ApiKeyRequest
description: JSON:API request envelope for creating or updating an API key.
ApiKey:
properties:
name:
type: string
maxLength: 255
title: Name
description: Human-readable name for the key.
kind:
type: string
enum:
- PUBLIC
- PRIVATE
title: Kind
description: 'Credential class of the key, set at creation and immutable. `PRIVATE` (the default) keys carry full API access and must be kept secret — never expose one in a browser or client application. `PUBLIC` keys are browser-safe, read-only credentials for reading feature flags and configuration from client-side code; they must be scoped to exactly one environment with `permissions: ["read"]`. Accepted case-insensitively.'
default: PRIVATE
x-immutable: true
status:
type:
- string
- 'null'
title: Status
description: Lifecycle state of the key. `ACTIVE` keys may be used to authenticate; `REVOKED` keys are rejected.
readOnly: true
key:
type:
- string
- 'null'
title: Key
description: The bearer token value. Returned in plaintext on the create response so the caller can capture it; subsequent reads return the same value for round-tripping.
readOnly: true
scopes:
additionalProperties: true
type: object
title: Scopes
description: 'Scope restrictions applied to the key, as a JSON object mapping dimension names to arrays of allowed values. An empty object (the default) grants unrestricted access. The `environments` dimension lists the environment keys the key may operate in (for example `{"environments": ["production"]}`); a request''s environment must be one of them. A dimension that is absent or set to an empty array is unrestricted in that dimension.'
example:
environments:
- production
created_by:
type:
- string
- 'null'
title: Created By
description: UUID of the user who created the key.
readOnly: true
expires_at:
type:
- string
- 'null'
format: date-time
title: Expires At
description: Optional expiry timestamp. After this time, the key is rejected. Omit for keys that do not expire.
last_used_at:
type:
- string
- 'null'
format: date-time
title: Last Used At
description: When the key was most recently used to authenticate.
readOnly: true
created_at:
type:
- string
- 'null'
format: date-time
title: Created At
description: When the key was created.
readOnly: true
updated_at:
type:
- string
- 'null'
format: date-time
title: Updated At
description: When the key was last modified.
readOnly: true
type: object
required:
- name
title: ApiKey
description: 'An API key used by SDKs, scripts, and other programmatic clients to
authenticate with the smplkit API on behalf of the account.
The full key value is returned in plaintext on the create response and
is otherwise unavailable — record it somewhere safe immediately after
creation.'
example:
created_at: '2026-03-20T11:02:16.616Z'
created_by: d290f1ee-6c54-4b01-90e6-d701748f0851
expires_at: '2027-03-20T11:02:16.616Z'
key: sk_api_a1b2c3d4e5f6g7h8i9j0
kind: PRIVATE
last_used_at: '2026-03-19T08:45:00.000Z'
name: Production API Key
scopes: {}
status: ACTIVE
updated_at: '2026-03-20T11:02:16.616Z'
ApiKeyListResponse:
properties:
data:
items:
$ref: '#/components/schemas/ApiKeyResource'
type: array
title: Data
meta:
$ref: '#/components/schemas/ListMeta'
type: object
required:
- data
- meta
title: ApiKeyListResponse
description: JSON:API collection response for API keys.
ApiKeyResponse:
properties:
data:
$ref: '#/components/schemas/ApiKeyResource'
type: object
required:
- data
title: ApiKeyResponse
description: JSON:API single-resource response envelope for an API key.
Error:
properties:
status:
type: string
title: Status
title:
type: string
title: Title
detail:
type:
- string
- 'null'
title: Detail
source:
additionalProperties: true
type:
- object
- 'null'
title: Source
type: object
required:
- status
- title
title: Error
description: Single JSON:API error object.
ApiKeyResource:
properties:
id:
type:
- string
- 'null'
title: Id
type:
type: string
enum:
- api_key
title: Type
attributes:
$ref: '#/components/schemas/ApiKey'
type: object
required:
- type
- attributes
title: ApiKeyResource
description: 'JSON:API resource envelope for an API key.
`id` must not be specified for create requests (the server assigns it).'
example:
attributes:
created_at: '2026-03-20T11:02:16.616Z'
created_by: d290f1ee-6c54-4b01-90e6-d701748f0851
expires_at: '2027-03-20T11:02:16.616Z'
key: sk_api_a1b2c3d4e5f6g7h8i9j0
kind: PRIVATE
last_used_at: '2026-03-19T08:45:00.000Z'
name: Production API Key
scopes: {}
status: ACTIVE
updated_at: '2026-03-20T11:02:16.616Z'
id: b2c3d4e5-f6a7-8901-bcde-f12345678901
type: api_key
PaginationMeta:
properties:
page:
type: integer
title: Page
description: 1-based page number returned.
size:
type: integer
title: Size
description: Number of items per page.
total:
type:
- integer
- 'null'
title: Total
description: Total number of matching items across all pages. Present only when the request included `meta[total]=true`.
total_pages:
type:
- integer
- 'null'
title: Total Pages
description: Total number of pages at the requested page size. Present only when the request included `meta[total]=true`.
type: object
required:
- page
- size
title: PaginationMeta
description: 'Pagination block returned inside ``meta`` on every list response.
``page`` and ``size`` are always present and echo the parameters that
served the response (their defaults when the client omitted them).
``total`` and ``total_pages`` are present only when the request included
``meta[total]=true``.'
securitySchemes:
HTTPBearer:
type: http
description: JWT access token or API key (sk_api_*)
scheme: bearer