c1k.me Members API
Invitation links, roles and removal of organization members.
Invitation links, roles and removal of organization members.
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-members-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 Members 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: Members
description: Invitation links, roles and removal of organization members.
paths:
/members:
get:
tags:
- Members
operationId: listMembers
summary: Active members, owners first, with pending invitations in meta
description: Requires members:manage. Invitation links are never listed again.
responses:
'200':
description: Members; meta.pending_invitations lists open invitations without their links.
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Envelope'
- properties:
data:
type: array
items:
$ref: '#/components/schemas/Member'
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/RateLimited'
post:
tags:
- Members
operationId: inviteMember
summary: Create a single-use invitation link for a new member
description: Requires members:manage. People join only by opening an invitation link; C1K sends no mail. The link is returned once and works for 72 hours. A key acts as an administrator, so it cannot invite an owner. An optional email binds the invitation to that account.
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- role
properties:
role:
type: string
enum:
- viewer
- editor
- admin
- owner
email:
type: string
format: email
example:
role: editor
email: new.colleague@venture.example
responses:
'201':
description: The invitation with its link, shown only now.
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Envelope'
- properties:
data:
type: object
properties:
invitation:
type: object
properties:
id:
type: string
url:
type: string
format: uri
role:
type: string
expires_at:
type: string
format: date-time
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/Error'
'413':
$ref: '#/components/responses/Error'
'415':
$ref: '#/components/responses/Error'
'422':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/RateLimited'
/members/{user_id}:
parameters:
- $ref: '#/components/parameters/UserId'
patch:
tags:
- Members
operationId: changeMemberRole
summary: Change a member's role within the caller's authority
description: Requires members:manage. Administrators and keys cannot change owners or assign the owner role.
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- role
properties:
role:
type: string
enum:
- viewer
- editor
- admin
- owner
example:
role: admin
responses:
'200':
description: The member after the change.
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Envelope'
- properties:
data:
$ref: '#/components/schemas/Member'
'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'
delete:
tags:
- Members
operationId: removeMember
summary: End a membership
description: Requires members:manage. The member's access ends on their next request. The last owner cannot be removed (409).
responses:
'200':
description: The membership is revoked.
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope'
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
'409':
$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:
UserId:
name: user_id
in: path
required: true
schema:
type: string
pattern: ^usr_[0-9A-Za-z]{18}$
example: usr_REPLACEWITHUSERID0
schemas:
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
Member:
type: object
properties:
user_id:
type: string
email:
type: string
role:
type: string
enum:
- viewer
- editor
- admin
- owner
joined_at:
type: string
format: date-time
securitySchemes:
bearerKey:
type: http
scheme: bearer
description: A REST key (c1k_rest_...) from the Integrations page.