UTMKit Campaigns API

The campaigns API from UTMKit, for campaigns.

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/campaigns List campaigns of the token's workspace, with their link counts #
POST /api/v1/campaigns Create a campaign — a repeated name returns the existing one #
DELETE /api/v1/campaigns/{id} Delete a campaign — its links keep working and only lose the container #
GET /api/v1/campaigns/{id} One campaign #
PATCH /api/v1/campaigns/{id} Rename or re-describe — existing links keep their utm_campaign #

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-campaigns-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-campaigns-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 Campaigns API
  version: '1'
servers:
- url: https://app.utmkit.co
  variables: {}
security:
- bearer: []
tags:
- name: Campaigns
paths:
  /api/v1/campaigns:
    get:
      callbacks: {}
      description: Requires a token with the `campaigns:read` permission.
      operationId: UtmBuilderWeb.API.V1.CampaignController.index
      parameters: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignList'
          description: Campaigns
      summary: List campaigns of the token's workspace, with their link counts
      tags:
      - Campaigns
      x-permission: campaigns:read
    post:
      callbacks: {}
      description: Requires a token with the `campaigns:write` permission.
      operationId: UtmBuilderWeb.API.V1.CampaignController.create
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CampaignInput'
        description: Campaign input
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Campaign'
          description: Campaign
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error
      summary: Create a campaign — a repeated name returns the existing one
      tags:
      - Campaigns
      x-permission: campaigns:write
  /api/v1/campaigns/{id}:
    delete:
      callbacks: {}
      description: Requires a token with the `campaigns:write` permission.
      operationId: UtmBuilderWeb.API.V1.CampaignController.delete
      parameters:
      - description: ''
        in: path
        name: id
        required: true
        schema:
          type: integer
      responses:
        '204':
          description: Deleted
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error
      summary: Delete a campaign — its links keep working and only lose the container
      tags:
      - Campaigns
      x-permission: campaigns:write
    get:
      callbacks: {}
      description: Requires a token with the `campaigns:read` permission.
      operationId: UtmBuilderWeb.API.V1.CampaignController.show
      parameters:
      - description: ''
        in: path
        name: id
        required: true
        schema:
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Campaign'
          description: Campaign
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error
      summary: One campaign
      tags:
      - Campaigns
      x-permission: campaigns:read
    patch:
      callbacks: {}
      description: Requires a token with the `campaigns:write` permission.
      operationId: UtmBuilderWeb.API.V1.CampaignController.update
      parameters:
      - description: ''
        in: path
        name: id
        required: true
        schema:
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CampaignUpdateInput'
        description: Campaign update input
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Campaign'
          description: Campaign
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error
      summary: Rename or re-describe — existing links keep their utm_campaign
      tags:
      - Campaigns
      x-permission: campaigns:write
components:
  schemas:
    CampaignList:
      properties:
        data:
          items:
            $ref: '#/components/schemas/Campaign'
          type: array
      title: CampaignList
      type: object
    CampaignInput:
      properties:
        description:
          type:
          - string
          - 'null'
        name:
          type: string
      required:
      - name
      title: CampaignInput
      type: object
    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
    Campaign:
      properties:
        created_at:
          format: date-time
          type: string
        description:
          type:
          - string
          - 'null'
        id:
          type: integer
        link_count:
          type: integer
        name:
          type: string
      title: Campaign
      type: object
    CampaignUpdateInput:
      properties:
        description:
          type:
          - string
          - 'null'
        name:
          type: string
      title: CampaignUpdateInput
      type: object
  securitySchemes:
    bearer:
      description: utmk_<lookup><secret>, minted on /tokens
      scheme: bearer
      type: http