Sending UTM API

UTM touches, conversions and attribution.

GitHub OpenAPI

Operations 4

GET /utm/touches List UTM touches #
GET /utm/summary UTM aggregate by campaign/source/medium #
GET /utm/conversions List attributed conversions #
GET /utm/conversions/stats Conversion aggregate by goal #

Specifications

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/sending-dev:sending-dev-utm-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

sending-dev-utm-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sending.dev UTM API
  version: 1.0.0
  description: 'Public REST API of Sending.dev (MCP-native orchestrator for email + WhatsApp + Telegram).


    ## Authentication

    Every request requires `Authorization: Bearer sk_...` (workspace API key). The `tenantId` is always derived from the key.


    ## Idempotency

    Sends require an `idempotencyKey` (min 8 characters) to prevent duplicates on retries.'
  contact:
    name: Sending.dev
    url: https://sending.dev
servers:
- url: https://sending.dev/api/v1
  description: Production
- url: http://localhost:3000/api/v1
  description: Local development
security:
- bearerAuth: []
tags:
- name: UTM
  description: UTM touches, conversions and attribution.
paths:
  /utm/touches:
    get:
      tags:
      - UTM
      summary: List UTM touches
      description: 'Max 10k rows in CSV. Required scope: `utm:read`.'
      security:
      - bearerAuth: []
      x-required-scope:
      - utm:read
      parameters:
      - schema:
          type: string
          description: ISO date, window start.
        required: false
        name: from
        in: query
      - schema:
          type: string
          description: ISO date, window end.
        required: false
        name: to
        in: query
      - schema:
          type: string
          enum:
          - csv
          description: '`csv` for the export.'
        required: false
        name: format
        in: query
      - schema:
          type: string
        required: false
        name: source
        in: query
      - schema:
          type: string
        required: false
        name: campaign
        in: query
      - schema:
          type: string
          format: uuid
        required: false
        name: contactId
        in: query
      - schema:
          type:
          - integer
          - 'null'
        required: false
        name: page
        in: query
      - schema:
          type:
          - integer
          - 'null'
        required: false
        name: pageSize
        in: query
      responses:
        '200':
          description: UTM touches.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UtmTouchList'
            text/csv:
              schema:
                type: string
                description: CSV export (UTF-8 BOM).
        '401':
          description: Missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Insufficient scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenError'
        '422':
          description: Invalid input.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
      operationId: getUtmTouches
      x-operation-id-source: derived
  /utm/summary:
    get:
      tags:
      - UTM
      summary: UTM aggregate by campaign/source/medium
      description: 'Required scope: `utm:read`.'
      security:
      - bearerAuth: []
      x-required-scope:
      - utm:read
      parameters:
      - schema:
          type: string
          description: ISO date, window start.
        required: false
        name: from
        in: query
      - schema:
          type: string
          description: ISO date, window end.
        required: false
        name: to
        in: query
      - schema:
          type: string
          enum:
          - csv
          description: '`csv` for the export.'
        required: false
        name: format
        in: query
      - schema:
          type: string
          enum:
          - first
          - last
          description: Attribution model (default `last`).
        required: false
        name: attribution
        in: query
      responses:
        '200':
          description: UTM aggregate.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UtmSummary'
            text/csv:
              schema:
                type: string
                description: CSV export (UTF-8 BOM).
        '401':
          description: Missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Insufficient scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenError'
        '422':
          description: Invalid input.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
      operationId: getUtmSummary
      x-operation-id-source: derived
  /utm/conversions:
    get:
      tags:
      - UTM
      summary: List attributed conversions
      description: 'Max 10k rows in CSV. Required scope: `utm:read`.'
      security:
      - bearerAuth: []
      x-required-scope:
      - utm:read
      parameters:
      - schema:
          type: string
          description: ISO date, window start.
        required: false
        name: from
        in: query
      - schema:
          type: string
          description: ISO date, window end.
        required: false
        name: to
        in: query
      - schema:
          type: string
          enum:
          - csv
          description: '`csv` for the export.'
        required: false
        name: format
        in: query
      - schema:
          type: string
          enum:
          - event
          - stripe
          - posthog
        required: false
        name: source
        in: query
      - schema:
          type: string
          format: uuid
        required: false
        name: contactId
        in: query
      - schema:
          type:
          - integer
          - 'null'
        required: false
        name: page
        in: query
      - schema:
          type:
          - integer
          - 'null'
        required: false
        name: pageSize
        in: query
      responses:
        '200':
          description: Attributed conversions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UtmConversionList'
            text/csv:
              schema:
                type: string
                description: CSV export (UTF-8 BOM).
        '401':
          description: Missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Insufficient scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenError'
        '422':
          description: Invalid input.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
      operationId: getUtmConversions
      x-operation-id-source: derived
  /utm/conversions/stats:
    get:
      tags:
      - UTM
      summary: Conversion aggregate by goal
      description: 'Per conversion name: volumes, unique contacts, revenue, average time to conversion (from first touch) and average touchpoints in the lookback window. Required scope: `utm:read`.'
      security:
      - bearerAuth: []
      x-required-scope:
      - utm:read
      parameters:
      - schema:
          type: string
          description: ISO date, window start.
        required: false
        name: from
        in: query
      - schema:
          type: string
          description: ISO date, window end.
        required: false
        name: to
        in: query
      responses:
        '200':
          description: Aggregate by goal.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UtmConversionStats'
        '401':
          description: Missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Insufficient scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenError'
        '422':
          description: Invalid input.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
      operationId: getUtmConversionsStats
      x-operation-id-source: derived
components:
  schemas:
    UtmTouch:
      type: object
      properties:
        id:
          type: string
        source:
          type:
          - string
          - 'null'
        campaign:
          type:
          - string
          - 'null'
        medium:
          type:
          - string
          - 'null'
        contactId:
          type:
          - string
          - 'null'
          format: uuid
        occurredAt:
          type: string
          format: date-time
          example: '2026-06-30T12:00:00.000Z'
    UtmTouchList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/UtmTouch'
        total:
          type: integer
        page:
          type: integer
        pageSize:
          type: integer
      required:
      - data
      - total
    UtmConversionList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/UtmConversion'
        total:
          type: integer
      required:
      - data
      - total
    ValidationError:
      type: object
      properties:
        error:
          type: object
          properties:
            formErrors:
              type: array
              items:
                type: string
            fieldErrors:
              type: object
              additionalProperties:
                type: array
                items:
                  type: string
          required:
          - formErrors
          - fieldErrors
      required:
      - error
      description: 'Zod validation failed: shape of `ZodError.flatten()`.'
    Error:
      type: object
      properties:
        error:
          type: string
          example: not_found
        message:
          type: string
      required:
      - error
      description: 'Generic error: snake_case code in `error`.'
    UtmConversion:
      type: object
      properties:
        id:
          type: string
        source:
          type: string
        valueCents:
          type:
          - integer
          - 'null'
        contactId:
          type:
          - string
          - 'null'
          format: uuid
        occurredAt:
          type: string
          format: date-time
          example: '2026-06-30T12:00:00.000Z'
    UtmSummary:
      type: object
      properties:
        attribution:
          type: string
        rows:
          type: array
          items: {}
        unattributed:
          type: integer
      required:
      - attribution
      - rows
    UtmConversionStats:
      type: object
      properties:
        data:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              conversions:
                type: integer
              contacts:
                type: integer
              revenueCents:
                type: integer
              avgTimeToConvertSeconds:
                type:
                - integer
                - 'null'
              avgTouchpoints:
                type:
                - number
                - 'null'
              firstAt:
                type: string
                format: date-time
                example: '2026-06-30T12:00:00.000Z'
              lastAt:
                type: string
                format: date-time
                example: '2026-06-30T12:00:00.000Z'
            required:
            - name
            - conversions
            - contacts
            - revenueCents
      required:
      - data
    ForbiddenError:
      type: object
      properties:
        error:
          type: string
          enum:
          - forbidden
        need:
          type: string
          example: contacts:write
      required:
      - error
      description: Insufficient scope; `need` names the missing scope.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Workspace API key in the `sk_...` format, passed as `Authorization: Bearer sk_...`. The `tenantId` is always derived from the key, never from a request parameter.'