UTMKit Links API

The links API from UTMKit, for links.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

GET /api/v1/links List links of the token's workspace, newest first #
POST /api/v1/links Create a governed short link #
DELETE /api/v1/links/{id} Withdraw the link — removed from the edge on the console's own path #
GET /api/v1/links/{id} One link #
PATCH /api/v1/links/{id} Update destination, UTMs or expiry; re-validated and re-scanned #

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/utmkit-co:utmkit-co-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

utmkit-co-links-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'Every request carries `Authorization: Bearer utmk_…`. The token fixes the workspace; no request names one. Every operation declares `x-permission`, the token permission it requires.'
  title: UTMKit Links API
  version: '1'
servers:
- url: https://app.utmkit.co
  variables: {}
security:
- bearer: []
tags:
- name: Links
paths:
  /api/v1/links:
    get:
      callbacks: {}
      description: Requires a token with the `links:read` permission.
      operationId: UtmBuilderWeb.API.V1.LinkController.index
      parameters:
      - description: search string — free terms and key:value filters (spec 042); the keys are domain (the destination's host, not the short link's domain), code, tag, campaign (the container's name), state (live|pending|withdrawn), destination (unreachable|reachable), channel (misfiled|ok — where Google Analytics 4 will file the clicks against where the values were aiming), utm_source, utm_medium, utm_campaign, utm_term, utm_content; quote a value with spaces
        in: query
        name: q
        required: false
        schema:
          maxLength: 200
          type: string
      - description: cursor — id of the last link seen
        in: query
        name: after
        required: false
        schema:
          type: integer
      - description: ''
        in: query
        name: limit
        required: false
        schema:
          default: 100
          maximum: 100
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinkList'
          description: Links
      summary: List links of the token's workspace, newest first
      tags:
      - Links
      x-permission: links:read
    post:
      callbacks: {}
      description: Requires a token with the `links:write` permission.
      operationId: UtmBuilderWeb.API.V1.LinkController.create
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LinkInput'
        description: Link input
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinkWithWarning'
          description: Link
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error
      summary: Create a governed short link
      tags:
      - Links
      x-permission: links:write
  /api/v1/links/{id}:
    delete:
      callbacks: {}
      description: Requires a token with the `links:write` permission.
      operationId: UtmBuilderWeb.API.V1.LinkController.delete
      parameters:
      - description: ''
        in: path
        name: id
        required: true
        schema:
          type: integer
      responses:
        '204':
          description: Withdrawn
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error
      summary: Withdraw the link — removed from the edge on the console's own path
      tags:
      - Links
      x-permission: links:write
    get:
      callbacks: {}
      description: Requires a token with the `links:read` permission.
      operationId: UtmBuilderWeb.API.V1.LinkController.show
      parameters:
      - description: ''
        in: path
        name: id
        required: true
        schema:
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Link'
          description: Link
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error
      summary: One link
      tags:
      - Links
      x-permission: links:read
    patch:
      callbacks: {}
      description: Requires a token with the `links:write` permission.
      operationId: UtmBuilderWeb.API.V1.LinkController.update
      parameters:
      - description: ''
        in: path
        name: id
        required: true
        schema:
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LinkUpdateInput'
        description: Link update input
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinkWithWarning'
          description: Link
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error
      summary: Update destination, UTMs or expiry; re-validated and re-scanned
      tags:
      - Links
      x-permission: links:write
components:
  schemas:
    Error:
      description: Every refusal. `code` is the closed set of FR-019.
      properties:
        error:
          properties:
            code:
              enum:
              - unauthenticated
              - subscription_required
              - subscription_ended
              - missing_permission
              - role_forbids
              - plan_forbids
              - rate_limited
              - governance_refused
              - scanner_refused
              - limit_reached
              - duplicate_link
              - not_found
              - invalid_input
              type: string
            details:
              additionalProperties: true
              description: field → messages, on invalid_input
              type:
              - object
              - 'null'
            message:
              type: string
            permission:
              type:
              - string
              - 'null'
            retry_after_seconds:
              type:
              - integer
              - 'null'
          required:
          - code
          - message
          type: object
      required:
      - error
      title: Error
      type: object
    LinkUpdateInput:
      properties:
        android_url:
          description: 'optional Android destination (spec 047): an app link or a Play page, https only; phones on Android are routed here, null or blank clears it'
          type:
          - string
          - 'null'
        campaign_id:
          type:
          - integer
          - 'null'
        destination:
          format: uri
          type:
          - string
          - 'null'
        expires_at:
          format: date-time
          type:
          - string
          - 'null'
        ios_url:
          description: 'optional iOS destination (spec 047): an app link or an App Store page, https only; phones on iOS are routed here, null or blank clears it'
          type:
          - string
          - 'null'
        note:
          description: free text kept on the link; blank clears it
          type:
          - string
          - 'null'
        tags:
          description: 'tag names (spec 039): an existing tag of the workspace by name, case-insensitive, else a new one; the list replaces the link''s tags and [] clears them'
          items:
            type: string
          type: array
        utm_campaign:
          type: string
        utm_content:
          type: string
        utm_medium:
          type: string
        utm_source:
          type: string
        utm_term:
          type: string
        whatsapp_message:
          description: the prefilled message, plain text, never URL-encoded
          type:
          - string
          - 'null'
        whatsapp_number:
          description: 'a WhatsApp click-to-chat link (issue #202): the phone in international format (+, spaces and dashes are stripped). Given INSTEAD of destination — the wa.me URL is composed and the message encoded once, server-side'
          type:
          - string
          - 'null'
      title: LinkUpdateInput
      type: object
    LinkInput:
      properties:
        android_url:
          description: 'optional Android destination (spec 047): an app link or a Play page, https only; phones on Android are routed here, blank clears it'
          type:
          - string
          - 'null'
        campaign_id:
          type:
          - integer
          - 'null'
        destination:
          format: uri
          type:
          - string
          - 'null'
        domain:
          description: optional; a verified custom domain name, else the shared domain
          type: string
        expires_at:
          format: date-time
          type:
          - string
          - 'null'
        ios_url:
          description: 'optional iOS destination (spec 047): an app link or an App Store page, https only; phones on iOS are routed here, blank clears it'
          type:
          - string
          - 'null'
        note:
          description: free text kept on the link; blank clears it
          type:
          - string
          - 'null'
        short_code:
          description: optional; random when omitted
          type: string
        tags:
          description: 'tag names (spec 039): an existing tag of the workspace by name, case-insensitive, else a new one; on update the list replaces the link''s tags and [] clears them'
          items:
            type: string
          type: array
        utm_campaign:
          type: string
        utm_content:
          type: string
        utm_medium:
          type: string
        utm_source:
          type: string
        utm_term:
          type: string
        whatsapp_message:
          description: the prefilled message, plain text, never URL-encoded
          type:
          - string
          - 'null'
        whatsapp_number:
          description: 'a WhatsApp click-to-chat link (issue #202): the phone in international format (+, spaces and dashes are stripped). Given INSTEAD of destination — the wa.me URL is composed and the message encoded once, server-side'
          type:
          - string
          - 'null'
      title: LinkInput
      type: object
    LinkWithWarning:
      allOf:
      - $ref: '#/components/schemas/Link'
      - properties:
          warning:
            description: governance warning when the convention warns rather than blocks
            type:
            - string
            - 'null'
        type: object
      title: LinkWithWarning
    Link:
      properties:
        android_url:
          type:
          - string
          - 'null'
        campaign_id:
          type:
          - integer
          - 'null'
        created_at:
          format: date-time
          type: string
        created_by:
          properties:
            api_token_id:
              type:
              - integer
              - 'null'
            user_id:
              type: integer
          type: object
        destination:
          type: string
        expires_at:
          format: date-time
          type:
          - string
          - 'null'
        id:
          type: integer
        ios_url:
          type:
          - string
          - 'null'
        note:
          type:
          - string
          - 'null'
        qr_url:
          description: the short URL with the scan marker
          format: uri
          type: string
        short_code:
          type: string
        short_url:
          format: uri
          type: string
        state:
          enum:
          - live
          - pending
          - blocked
          - expired
          type: string
        tags:
          description: the link's tags, by name without regard to case
          items:
            properties:
              color:
                enum:
                - gray
                - red
                - orange
                - amber
                - green
                - teal
                - blue
                - purple
                type: string
              name:
                type: string
            type: object
          type: array
        utm_campaign:
          type:
          - string
          - 'null'
        utm_content:
          type:
          - string
          - 'null'
        utm_medium:
          type:
          - string
          - 'null'
        utm_source:
          type:
          - string
          - 'null'
        utm_term:
          type:
          - string
          - 'null'
      title: Link
      type: object
    LinkList:
      properties:
        data:
          items:
            $ref: '#/components/schemas/Link'
          type: array
        next_after:
          description: pass as `after` for the next page
          type:
          - integer
          - 'null'
      title: LinkList
      type: object
  securitySchemes:
    bearer:
      description: utmk_<lookup><secret>, minted on /tokens
      scheme: bearer
      type: http