UTMKit Rules API

The rules API from UTMKit, for rules.

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 8

GET /api/v1/rules/convention The workspace's UTM convention #
PUT /api/v1/rules/convention Update the convention — casing, separator, required parameters, mode; a field… #
GET /api/v1/rules/dependencies The dependency rules, one row per allowed value under a driving pair #
POST /api/v1/rules/dependencies Allow values for a target under a driving pair — additive #
DELETE /api/v1/rules/dependencies/{id} Remove one dependency rule — one allowed value, not the whole set #
GET /api/v1/rules/values The approved values, per UTM parameter #
POST /api/v1/rules/values Approve values for one parameter — additive, repeats are no-ops #
DELETE /api/v1/rules/values/{id} Retire an approved value — retiring the last one OPENS the parameter #

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-rules-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-rules-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 Rules API
  version: '1'
servers:
- url: https://app.utmkit.co
  variables: {}
security:
- bearer: []
tags:
- name: Rules
paths:
  /api/v1/rules/convention:
    get:
      callbacks: {}
      description: Requires a token with the `rules:read` permission.
      operationId: UtmBuilderWeb.API.V1.RulesController.convention
      parameters: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Convention'
          description: Convention
      summary: The workspace's UTM convention
      tags:
      - Rules
      x-permission: rules:read
    put:
      callbacks: {}
      description: Requires a token with the `rules:write` permission.
      operationId: UtmBuilderWeb.API.V1.RulesController.put_convention
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConventionInput'
        description: Convention
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Convention'
          description: Convention
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error
      summary: Update the convention — casing, separator, required parameters, mode; a field…
      tags:
      - Rules
      x-permission: rules:write
  /api/v1/rules/dependencies:
    get:
      callbacks: {}
      description: Requires a token with the `rules:read` permission.
      operationId: UtmBuilderWeb.API.V1.RulesController.dependencies
      parameters: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DependencyRuleList'
          description: Dependency rules
      summary: The dependency rules, one row per allowed value under a driving pair
      tags:
      - Rules
      x-permission: rules:read
    post:
      callbacks: {}
      description: Requires a token with the `rules:write` permission.
      operationId: UtmBuilderWeb.API.V1.RulesController.add_dependency
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DependencyRuleInput'
        description: Dependency rule
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DependencyRuleList'
          description: Dependency rules
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error
      summary: Allow values for a target under a driving pair — additive
      tags:
      - Rules
      x-permission: rules:write
  /api/v1/rules/dependencies/{id}:
    delete:
      callbacks: {}
      description: Requires a token with the `rules:write` permission.
      operationId: UtmBuilderWeb.API.V1.RulesController.remove_dependency
      parameters:
      - description: ''
        in: path
        name: id
        required: true
        schema:
          type: integer
      responses:
        '204':
          description: Removed
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error
      summary: Remove one dependency rule — one allowed value, not the whole set
      tags:
      - Rules
      x-permission: rules:write
  /api/v1/rules/values:
    get:
      callbacks: {}
      description: Requires a token with the `rules:read` permission.
      operationId: UtmBuilderWeb.API.V1.RulesController.values
      parameters: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApprovedValueList'
          description: Approved values
      summary: The approved values, per UTM parameter
      tags:
      - Rules
      x-permission: rules:read
    post:
      callbacks: {}
      description: Requires a token with the `rules:write` permission.
      operationId: UtmBuilderWeb.API.V1.RulesController.approve_values
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApproveValuesInput'
        description: Values to approve
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApprovedValueList'
          description: Approved values
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error
      summary: Approve values for one parameter — additive, repeats are no-ops
      tags:
      - Rules
      x-permission: rules:write
  /api/v1/rules/values/{id}:
    delete:
      callbacks: {}
      description: Requires a token with the `rules:write` permission.
      operationId: UtmBuilderWeb.API.V1.RulesController.retire_value
      parameters:
      - description: ''
        in: path
        name: id
        required: true
        schema:
          type: integer
      responses:
        '204':
          description: Retired
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error
      summary: Retire an approved value — retiring the last one OPENS the parameter
      tags:
      - Rules
      x-permission: rules:write
components:
  schemas:
    DependencyRuleList:
      properties:
        data:
          items:
            $ref: '#/components/schemas/DependencyRule'
          type: array
      title: DependencyRuleList
      type: object
    ApprovedValue:
      properties:
        id:
          type: integer
        parameter:
          type: string
        value:
          type: string
      title: ApprovedValue
      type: object
    ApprovedValueList:
      properties:
        data:
          items:
            $ref: '#/components/schemas/ApprovedValue'
          type: array
      title: ApprovedValueList
      type: object
    DependencyRule:
      properties:
        driving_parameter:
          type: string
        driving_value:
          type: string
        id:
          type: integer
        target:
          type: string
        value:
          type: string
      title: DependencyRule
      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
    Convention:
      properties:
        casing:
          type: string
        mode:
          enum:
          - block
          - warn
          type: string
        required_parameters:
          items:
            type: string
          type: array
        separator:
          type: string
      title: Convention
      type: object
    DependencyRuleInput:
      properties:
        driving_parameter:
          type: string
        driving_value:
          type: string
        target:
          type: string
        values:
          items:
            type: string
          type: array
      required:
      - driving_parameter
      - driving_value
      - target
      - values
      title: DependencyRuleInput
      type: object
    ApproveValuesInput:
      properties:
        parameter:
          enum:
          - utm_source
          - utm_medium
          - utm_campaign
          - utm_term
          - utm_content
          type: string
        values:
          items:
            type: string
          type: array
      required:
      - parameter
      - values
      title: ApproveValuesInput
      type: object
    ConventionInput:
      description: 'Partial by design: unnamed rules are left alone.'
      properties:
        casing:
          enum:
          - lower
          - upper
          - any
          type: string
        mode:
          enum:
          - block
          - warn
          type: string
        required_parameters:
          items:
            type: string
          type: array
        separator:
          enum:
          - hyphen
          - underscore
          - any
          type: string
      title: ConventionInput
      type: object
  securitySchemes:
    bearer:
      description: utmk_<lookup><secret>, minted on /tokens
      scheme: bearer
      type: http