c1k.me Links API

Create, read, edit, pause, archive and delete short links, one at a time or up to 25 per request.

GitHub OpenAPI

Operations 8

GET /links/{id}/qr SVG QR code of the short URL #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/c1k-me:c1k-me-links-api"
All apis
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.

Get an API 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 Specification

c1k-me-links-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: C1K REST Links 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: Links
  description: Create, read, edit, pause, archive and delete short links, one at a time or up to 25 per request.
paths:
  /links:
    get:
      tags:
      - Links
      operationId: listLinks
      summary: List links with filters and a cursor
      description: Requires links:read. Pass `meta.next_cursor` back as `cursor` for the next page.
      parameters:
      - name: q
        in: query
        schema:
          type: string
          maxLength: 200
        description: Search in slug, title and destination.
        example: launch
      - name: state
        in: query
        schema:
          type: string
          enum:
          - active
          - paused
          - archived
      - name: tag
        in: query
        schema:
          type: string
          maxLength: 24
        example: launch
      - name: campaign
        in: query
        schema:
          type: string
          maxLength: 64
      - name: created_from
        in: query
        schema:
          type: string
        description: RFC 3339 time or YYYY-MM-DD, inclusive.
      - name: created_to
        in: query
        schema:
          type: string
        description: RFC 3339 time or YYYY-MM-DD, exclusive.
      - name: sort
        in: query
        schema:
          type: string
          enum:
          - created_at
          - -created_at
          - updated_at
          - -updated_at
          default: -created_at
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: One page of links.
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Envelope'
                - properties:
                    data:
                      type: array
                      items:
                        $ref: '#/components/schemas/Link'
                    meta:
                      $ref: '#/components/schemas/PageMeta'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
    post:
      tags:
      - Links
      operationId: createLink
      summary: Create one link
      description: Requires links:write. Only destination_url is required; omitted fields take their defaults, including a random seven-character slug.
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LinkCreate'
            example:
              destination_url: https://venture.example/launch
              slug: launch26
              title: Launch page
              tags:
              - launch
              utm:
                source: newsletter
                medium: email
                campaign: launch26
      responses:
        '201':
          description: Created. Location names the new link and ETag carries its version.
          headers:
            Location:
              schema:
                type: string
            ETag:
              schema:
                type: string
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Envelope'
                - properties:
                    data:
                      $ref: '#/components/schemas/Link'
        '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'
        '507':
          $ref: '#/components/responses/Error'
  /links/bulk:
    post:
      tags:
      - Links
      operationId: bulkLinks
      summary: Create or change up to 25 links with a result per item
      description: Each item is applied on its own, never partially, with the scope of its operation. `create` takes the fields of Create one link; `pause`, `activate` and `archive` take `id` and `expected_version`; `tag` also takes `tags` and `mode`.
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkRequest'
            example:
              operation: pause
              items:
              - id: lnk_4fQ2mVxT9kLpR7sA1b
                expected_version: 3
              - id: lnk_9Hn3cZq8Wb2Ld5Rk7T
                expected_version: 1
      responses:
        '200':
          description: Per-item results with stable indexes.
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Envelope'
                - properties:
                    data:
                      $ref: '#/components/schemas/BulkResult'
        '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'
  /links/swap:
    post:
      tags:
      - Links
      operationId: swapLinks
      summary: Pause one link and enable another, atomically
      description: Pauses one link and activates another in one step, so a full limit needs no new capacity. Both apply or neither does. Requires links:write and the current version of both links.
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SwapRequest'
            example:
              pause_id: lnk_4fQ2mVxT9kLpR7sA1b
              pause_expected_version: 3
              enable_id: lnk_9Hn3cZq8Wb2Ld5Rk7T
              enable_expected_version: 1
      responses:
        '200':
          description: The paused link and the enabled link, each with its new version.
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Envelope'
                - properties:
                    data:
                      $ref: '#/components/schemas/SwapResult'
        '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'
        '412':
          $ref: '#/components/responses/Error'
        '413':
          $ref: '#/components/responses/Error'
        '415':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
        '507':
          $ref: '#/components/responses/Error'
  /links/{id}:
    parameters:
    - $ref: '#/components/parameters/LinkId'
    get:
      tags:
      - Links
      operationId: getLink
      summary: Read one link
      description: Requires links:read. Never includes the password or its hash; `password_protected` says whether one is set.
      responses:
        '200':
          description: The link. ETag carries its version for If-Match.
          headers:
            ETag:
              schema:
                type: string
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Envelope'
                - properties:
                    data:
                      $ref: '#/components/schemas/Link'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
    patch:
      tags:
      - Links
      operationId: updateLink
      summary: Edit mutable fields or the lifecycle state
      description: Requires links:write and If-Match. Omitted fields are kept, null clears a field and arrays are replaced. The slug never changes.
      parameters:
      - $ref: '#/components/parameters/IfMatch'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LinkPatch'
            example:
              destination_url: https://venture.example/launch-v2
              title: Launch page (v2)
      responses:
        '200':
          description: The updated link with its new version.
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Envelope'
                - properties:
                    data:
                      $ref: '#/components/schemas/Link'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '412':
          $ref: '#/components/responses/Error'
        '413':
          $ref: '#/components/responses/Error'
        '415':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/Error'
        '428':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
    delete:
      tags:
      - Links
      operationId: deleteLink
      summary: Erase the link and keep its short key reserved
      description: Requires links:delete and If-Match. The link and its analytics are erased; the slug can never be reused.
      parameters:
      - $ref: '#/components/parameters/IfMatch'
      responses:
        '200':
          description: The erased link's identifiers.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '412':
          $ref: '#/components/responses/Error'
        '428':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
  /links/{id}/qr:
    parameters:
    - $ref: '#/components/parameters/LinkId'
    get:
      tags:
      - Links
      operationId: getLinkQr
      summary: SVG QR code of the short URL
      description: Requires links:read. Error correction level M with a four-module quiet zone. The SVG contains only the code.
      responses:
        '200':
          description: SVG image.
          content:
            image/svg+xml:
              schema:
                type: string
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    LinkId:
      name: id
      in: path
      required: true
      schema:
        type: string
        pattern: ^lnk_[0-9A-Za-z]{18}$
      example: lnk_4fQ2mVxT9kLpR7sA1b
    Cursor:
      name: cursor
      in: query
      description: Opaque next_cursor from the previous page. Bound to the organization and filters, valid for 24 hours.
      schema:
        type: string
        maxLength: 512
    IfMatch:
      name: If-Match
      in: header
      required: true
      description: The current integer version, for example "3", as returned in ETag. Missing answers 428, stale answers 412.
      schema:
        type: string
      example: '"1"'
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      description: 16 to 128 visible ASCII characters, unique per change. A retry within 24 hours returns the original result; a changed payload answers 409. At most 20 live keys per organization.
      schema:
        type: string
        minLength: 16
        maxLength: 128
      example: launch26-20260911-0001
    Limit:
      name: limit
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 25
  schemas:
    LinkCreate:
      type: object
      additionalProperties: false
      required:
      - destination_url
      properties:
        destination_url:
          type: string
          maxLength: 2048
          description: Absolute http or https URL.
        slug:
          type: string
          pattern: ^[A-Za-z0-9_-]{3,48}$
          description: Case-sensitive; omitted means seven random base62 characters.
        title:
          type: string
          maxLength: 120
        tags:
          type: array
          maxItems: 5
          items:
            type: string
            minLength: 1
            maxLength: 24
        campaign:
          type: string
          maxLength: 64
        utm:
          $ref: '#/components/schemas/Utm'
        starts_at:
          type: string
          format: date-time
          description: Inclusive.
        expires_at:
          type: string
          format: date-time
          description: Exclusive; later than starts_at.
        password:
          type: string
          minLength: 12
          maxLength: 64
          description: 12 to 64 UTF-8 bytes. Visitors must enter it before the redirect.
        domain_id:
          type: string
        forward_query_keys:
          type: array
          maxItems: 10
          items:
            type: string
            maxLength: 64
          description: Query keys of the short URL request that are passed on to the destination.
    Link:
      type: object
      properties:
        id:
          type: string
        org_id:
          type: string
        short_url:
          type: string
          format: uri
        slug:
          type: string
        domain_id:
          type: string
        domain:
          type: string
        destination_url:
          type:
          - string
          - 'null'
        state:
          type: string
          enum:
          - active
          - paused
          - archived
        effective_state:
          type: string
          description: The state visitors see now, taking the schedule into account.
        title:
          type:
          - string
          - 'null'
        tags:
          type: array
          items:
            type: string
        campaign:
          type:
          - string
          - 'null'
        utm:
          type: object
        starts_at:
          type:
          - string
          - 'null'
          format: date-time
        expires_at:
          type:
          - string
          - 'null'
          format: date-time
        password_protected:
          type: boolean
        forward_query_keys:
          type: array
          items:
            type: string
        version:
          type: integer
        created_by:
          type: object
          properties:
            type:
              type: string
            id:
              type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      example:
        id: lnk_4fQ2mVxT9kLpR7sA1b
        org_id: org_REPLACEWITHYOURID0
        short_url: https://c1k.me/launch26
        slug: launch26
        domain_id: dom_REPLACEWITHDOMID0
        domain: c1k.me
        destination_url: https://venture.example/launch?utm_source=newsletter&utm_medium=email
        state: active
        effective_state: active
        title: Launch page
        tags:
        - launch
        campaign: null
        utm:
          source: newsletter
          medium: email
        starts_at: null
        expires_at: null
        password_protected: false
        forward_query_keys: []
        version: 1
        created_by:
          type: service_account
          id: sva_REPLACEWITHACCTID0
        created_at: '2026-09-11T08:00:00Z'
        updated_at: '2026-09-11T08:00:00Z'
    SwapRequest:
      type: object
      additionalProperties: false
      required:
      - pause_id
      - pause_expected_version
      - enable_id
      - enable_expected_version
      properties:
        pause_id:
          type: string
          description: The enabled link to pause.
        pause_expected_version:
          type: integer
          minimum: 1
          description: Its current version; a stale one is refused with version_conflict and neither link changes.
        enable_id:
          type: string
          description: The paused or archived link to enable. It must not already be enabled.
        enable_expected_version:
          type: integer
          minimum: 1
          description: Its current version.
    SwapResult:
      type: object
      properties:
        paused:
          $ref: '#/components/schemas/Link'
        enabled:
          $ref: '#/components/schemas/Link'
    BulkRequest:
      type: object
      additionalProperties: false
      required:
      - operation
      - items
      properties:
        operation:
          type: string
          enum:
          - create
          - pause
          - activate
          - archive
          - tag
        items:
          type: array
          minItems: 1
          maxItems: 25
          items:
            type: object
    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
    PageMeta:
      type: object
      properties:
        request_id:
          type: string
        next_cursor:
          type:
          - string
          - 'null'
        limit:
          type: integer
        sort:
          type: string
    Utm:
      type: object
      additionalProperties: false
      properties:
        source:
          type: string
          maxLength: 128
        medium:
          type: string
          maxLength: 128
        campaign:
          type: string
          maxLength: 128
        term:
          type: string
          maxLength: 128
        content:
          type: string
          maxLength: 128
    BulkResult:
      type: object
      properties:
        operation:
          type: string
        succeeded:
          type: integer
        failed:
          type: integer
        results:
          type: array
          items:
            type: object
    Envelope:
      type: object
      required:
      - data
      - meta
      properties:
        data: {}
        meta:
          type: object
          required:
          - request_id
          properties:
            request_id:
              type: string
            idempotent_replay:
              type: boolean
    LinkPatch:
      type: object
      additionalProperties: false
      properties:
        destination_url:
          type: string
          maxLength: 2048
        title:
          type:
          - string
          - 'null'
          maxLength: 120
        tags:
          type: array
          maxItems: 5
          items:
            type: string
        campaign:
          type:
          - string
          - 'null'
          maxLength: 64
        utm:
          oneOf:
          - $ref: '#/components/schemas/Utm'
          - type: 'null'
        starts_at:
          type:
          - string
          - 'null'
          format: date-time
        expires_at:
          type:
          - string
          - 'null'
          format: date-time
        password:
          type:
          - string
          - 'null'
        forward_query_keys:
          type: array
          items:
            type: string
        state:
          type: string
          enum:
          - active
          - paused
          - archived
  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
  securitySchemes:
    bearerKey:
      type: http
      scheme: bearer
      description: A REST key (c1k_rest_...) from the Integrations page.