c1k.me Integrations API
Service accounts and their REST and MCP keys.
Service accounts and their REST and MCP 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/c1k-me:c1k-me-integrations-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: C1K REST Integrations API
version: 1.0.0
summary: Organization-scoped short links, analytics, import and export, members and a change feed for c1k.me.
description: 'Every path is relative to one organization: `https://c1k.me/api/v1/orgs/{org_id}`.
A key binds to one organization; anything outside it answers 404.
**Authentication.** `Authorization: Bearer c1k_rest_...` with a REST key from the
Integrations page. Keys in a URL, query or cookie are refused, and browser sessions
do not authenticate API calls. An operation outside the key''s scopes answers 403.
**Format.** UTF-8 JSON, bodies up to 65,536 bytes and 16 levels deep. Responses carry
`data` and `meta`; errors carry `error` with a stable `code`. Times are RFC 3339 UTC.
**Retries.** Creates, bulk changes and import apply accept `Idempotency-Key`;
edits and deletions need `If-Match`.
**Rate limits**: 60 requests a minute per key, 300 per organization and
10 mutations per key. A 429 carries Retry-After.
**AI assistants** use `https://c1k.me/mcp/{org_id}`; see https://c1k.me/developers/mcp.'
contact:
name: C1K developers
url: https://c1k.me/developers
license:
name: Proprietary. All rights reserved.
identifier: LicenseRef-C1K-Proprietary
servers:
- url: https://c1k.me/api/v1/orgs/{org_id}
variables:
org_id:
default: org_REPLACEWITHYOURID0
description: The organization ID shown on the Integrations page.
security:
- bearerKey: []
tags:
- name: Integrations
description: Service accounts and their REST and MCP keys.
paths:
/service-accounts:
get:
tags:
- Integrations
operationId: listServiceAccounts
summary: Service accounts of the organization
description: Requires integrations:manage.
responses:
'200':
description: Service accounts.
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Envelope'
- properties:
data:
type: array
items:
$ref: '#/components/schemas/ServiceAccount'
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/RateLimited'
post:
tags:
- Integrations
operationId: createServiceAccount
summary: Create a service account
description: Requires integrations:manage. At most two active service accounts per organization.
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- name
properties:
name:
type: string
minLength: 1
maxLength: 80
example:
name: website backend
responses:
'201':
description: Created.
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Envelope'
- properties:
data:
$ref: '#/components/schemas/ServiceAccount'
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/Error'
'409':
$ref: '#/components/responses/Error'
'413':
$ref: '#/components/responses/Error'
'415':
$ref: '#/components/responses/Error'
'422':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/RateLimited'
/service-accounts/{id}:
parameters:
- $ref: '#/components/parameters/ServiceAccountId'
delete:
tags:
- Integrations
operationId: revokeServiceAccount
summary: Revoke a service account and every key it holds
description: Requires integrations:manage. Its keys stop working on their next request.
responses:
'200':
description: Revoked.
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope'
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/RateLimited'
/credentials:
get:
tags:
- Integrations
operationId: listCredentials
summary: Keys of the organization without their secrets
description: Requires integrations:manage.
responses:
'200':
description: Keys with name, audience, scopes, last use, expiry and status.
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Envelope'
- properties:
data:
type: array
items:
$ref: '#/components/schemas/Credential'
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/RateLimited'
post:
tags:
- Integrations
operationId: createCredential
summary: Create a key; the secret is returned once
description: Requires integrations:manage. A key may create keys only with a subset of its own scopes. At most four live keys per organization. Audience rest makes a REST key, mcp an MCP token.
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- service_account_id
- name
- audience
- scopes
properties:
service_account_id:
type: string
pattern: ^sva_[0-9A-Za-z]{18}$
name:
type: string
minLength: 1
maxLength: 80
audience:
type: string
enum:
- rest
- mcp
scopes:
type: array
minItems: 1
items:
$ref: '#/components/schemas/Scope'
expires_in_days:
type:
- integer
- 'null'
minimum: 1
maximum: 3650
example:
service_account_id: sva_REPLACEWITHACCTID0
name: reporting job
audience: rest
scopes:
- links:read
- analytics:read
expires_in_days: 90
responses:
'201':
description: Created. `data.token` is shown only in this response.
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Envelope'
- properties:
data:
allOf:
- $ref: '#/components/schemas/Credential'
- properties:
token:
type: string
pattern: ^c1k_(rest|mcp)_[A-Za-z0-9_-]{43}$
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
'409':
$ref: '#/components/responses/Error'
'413':
$ref: '#/components/responses/Error'
'415':
$ref: '#/components/responses/Error'
'422':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/RateLimited'
/credentials/{id}:
parameters:
- $ref: '#/components/parameters/CredentialId'
delete:
tags:
- Integrations
operationId: revokeCredential
summary: Revoke a key immediately
description: Requires integrations:manage. The key stops working on its next request.
responses:
'200':
description: Revoked.
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope'
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/RateLimited'
components:
responses:
Error:
description: Error envelope with a stable code.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
error:
code: invalid_input
message: Some fields are not valid.
fields:
- field: colour
code: unknown_field
message: This field is not accepted here.
request_id: req_8Kd2PqWz5xRt1LmN3a
RateLimited:
description: Too many requests. Wait the number of seconds in Retry-After.
headers:
Retry-After:
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
Unauthenticated:
description: Missing, invalid, expired or revoked key.
headers:
WWW-Authenticate:
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
error:
code: unauthenticated
message: A valid API key is required in the Authorization header as Bearer.
request_id: req_8Kd2PqWz5xRt1LmN3a
parameters:
CredentialId:
name: id
in: path
required: true
schema:
type: string
pattern: ^crd_[0-9A-Za-z]{18}$
example: crd_REPLACEWITHKEYID00
ServiceAccountId:
name: id
in: path
required: true
schema:
type: string
pattern: ^sva_[0-9A-Za-z]{18}$
example: sva_REPLACEWITHACCTID0
schemas:
Credential:
type: object
properties:
id:
type: string
service_account_id:
type: string
audience:
type: string
enum:
- rest
- mcp
name:
type: string
token_hint:
type: string
scopes:
type: array
items:
$ref: '#/components/schemas/Scope'
created_at:
type: integer
expires_at:
type:
- integer
- 'null'
last_used_at:
type:
- integer
- 'null'
status:
type: string
enum:
- active
- expired
- revoked
Scope:
type: string
enum:
- links:read
- links:write
- links:delete
- analytics:read
- analytics:delete
- exports:read
- events:read
- members:manage
- integrations:manage
ErrorEnvelope:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
- request_id
properties:
code:
type: string
enum:
- invalid_input
- unauthenticated
- forbidden
- not_found
- conflict
- version_conflict
- quota_exceeded
- reserved_limit_reached
- active_limit_reached
- rate_limited
- storage_unavailable
- cursor_expired
- malformed_json
- payload_too_large
- unsupported_media_type
- method_not_allowed
- precondition_required
- misdirected_request
- internal_error
message:
type: string
fields:
type: array
items:
type: object
properties:
field:
type: string
code:
type: string
message:
type: string
request_id:
type: string
Envelope:
type: object
required:
- data
- meta
properties:
data: {}
meta:
type: object
required:
- request_id
properties:
request_id:
type: string
idempotent_replay:
type: boolean
ServiceAccount:
type: object
properties:
id:
type: string
name:
type: string
state:
type: string
enum:
- active
- revoked
created_at:
type: integer
revoked_at:
type:
- integer
- 'null'
securitySchemes:
bearerKey:
type: http
scheme: bearer
description: A REST key (c1k_rest_...) from the Integrations page.