Coppica Deploy & track API

The Deploy & track API from Coppica — 6 operation(s) for deploy & track.

GitHub OpenAPI

Operations 7

GET /clients/{clientId}/pixel-snippet Get the conversion-pixel install snippet for a client #
GET /clients/{clientId}/outputs/{outputId}/conversions Aggregated conversion performance for an output #
GET /clients/{clientId}/attribution-summary Naive vs canonical attribution headline ("many sources, one narrative") #
GET /clients/{clientId}/canonical-conversions Heimdall deduped conversion ledger (reconciled, PII-free) #
GET /clients/{clientId}/performance-brief Heimdall performance brief (cached, stale-while-revalidate) #
POST /clients/{clientId}/performance-brief Force a fresh performance brief (execute scope) #

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/coppica-com:coppica-com-deploy-track-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

coppica-com-deploy-track-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Coppica Com Deploy & track API
  version: v1-alpha
  description: 'Operations tagged Deploy & track across 2 of this provider''s published API definitions: coppica-com-openapi.json, coppica-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://coppica.com/api/v1
security:
- bearerAuth: []
tags:
- name: Deploy & track
paths:
  /clients/{clientId}/pixel-snippet:
    get:
      tags:
      - Deploy & track
      summary: Get the conversion-pixel install snippet for a client
      parameters:
      - name: clientId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: The pixel <script> tag (client UUID pre-filled), its src, and an install note.
          content:
            application/json:
              schema:
                type: object
                properties:
                  client_id:
                    type: string
                    format: uuid
                  src:
                    type: string
                  snippet:
                    type: string
                  install:
                    type: string
                required:
                - client_id
                - snippet
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      operationId: getClientsByClientIdPixelSnippet
      x-operation-id-source: derived
    servers:
    - url: https://coppica.com/api/v1
  /clients/{clientId}/tracking-links:
    post:
      tags:
      - Deploy & track
      summary: Build a UTM tracking link for an output
      description: Generator (not stored). Returns a URL with utm_source=coppica, utm_medium=ai-copy, utm_content=, and optional utm_campaign. The output must belong to the client.
      parameters:
      - name: clientId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                output_id:
                  type: string
                  format: uuid
                destination_url:
                  type: string
                  format: uri
                utm_campaign:
                  type: string
                  maxLength: 100
              required:
              - output_id
              - destination_url
      responses:
        '200':
          description: The tagged tracking URL + the UTM parameters used.
          content:
            application/json:
              schema:
                type: object
                properties:
                  tracking_url:
                    type: string
                  output_id:
                    type: string
                    format: uuid
                  utm:
                    type: object
                    additionalProperties: true
                required:
                - tracking_url
                - output_id
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      operationId: postClientsByClientIdTrackingLinks
      x-operation-id-source: derived
    servers:
    - url: https://coppica.com/api/v1
  /clients/{clientId}/outputs/{outputId}/conversions:
    get:
      tags:
      - Deploy & track
      summary: Aggregated conversion performance for an output
      description: Sums conversion_events tied to the output across ALL sources (pixel, api_outcome, ga4, meta_ads, stripe, manual, …).
      parameters:
      - name: clientId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: outputId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Conversion summary for the output.
          content:
            application/json:
              schema:
                type: object
                properties:
                  output_id:
                    type: string
                    format: uuid
                  total_conversions:
                    type: integer
                  total_value:
                    type: number
                  by_type:
                    type: object
                    additionalProperties: true
                  by_source:
                    type: object
                    additionalProperties: true
                  last_conversion_at:
                    type:
                    - string
                    - 'null'
                    format: date-time
                  truncated:
                    type: boolean
                required:
                - output_id
                - total_conversions
                - total_value
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      operationId: getClientsByClientIdOutputsByOutputIdConversions
      x-operation-id-source: derived
    servers:
    - url: https://coppica.com/api/v1
  /clients/{clientId}/attribution-summary:
    get:
      tags:
      - Deploy & track
      summary: Naive vs canonical attribution headline ("many sources, one narrative")
      description: 'Compares the naive multi-source conversion view against Heimdall''s deduped canonical view (identity graph + reconciliation): dedup_ratio, revenue_overcount_ratio, clean vs review_pending counts. window_days defaults to 90.'
      parameters:
      - name: clientId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: window_days
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          maximum: 365
          default: 90
      responses:
        '200':
          description: Attribution comparison summary.
          content:
            application/json:
              schema:
                type: object
                properties:
                  window_days:
                    type: integer
                  naive:
                    type: object
                    properties:
                      conversions:
                        type: integer
                      revenue:
                        type: number
                  canonical:
                    type: object
                    properties:
                      conversions:
                        type: integer
                      revenue:
                        type: number
                  dedup_ratio:
                    type:
                    - number
                    - 'null'
                  revenue_overcount_ratio:
                    type:
                    - number
                    - 'null'
                  reconciliation:
                    type: object
                    properties:
                      clean:
                        type: integer
                      review_pending:
                        type: integer
                  sources_seen:
                    type: array
                    items:
                      type: string
                  reconciliation_version:
                    type: integer
                  revenue_truncated:
                    type: boolean
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      operationId: getClientsByClientIdAttributionSummary
      x-operation-id-source: derived
    servers:
    - url: https://coppica.com/api/v1
  /clients/{clientId}/canonical-conversions:
    get:
      tags:
      - Deploy & track
      summary: Heimdall deduped conversion ledger (reconciled, PII-free)
      description: Each row is one reconciled economic event — raw conversions from multiple sources collapsed into one via the identity graph + Fellegi-Sunter clustering, with per-source agreement, dissent, break_status, and an attribution_confidence score. Customer PII is never returned.
      parameters:
      - name: clientId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          maximum: 200
          default: 50
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
      - name: since
        in: query
        required: false
        schema:
          type: string
          format: date-time
      - name: event_type
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Deduped canonical conversion ledger.
          content:
            application/json:
              schema:
                type: object
                properties:
                  canonical_conversions:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        occurred_at:
                          type: string
                          format: date-time
                        amount:
                          type:
                          - number
                          - 'null'
                        currency:
                          type: string
                        event_type:
                          type: string
                        sources:
                          type: array
                          items:
                            type: object
                            properties:
                              source:
                                type: string
                              confidence:
                                type:
                                - number
                                - 'null'
                              amount:
                                type:
                                - number
                                - 'null'
                        source_count:
                          type: integer
                        attribution_confidence:
                          type: number
                        dissent_severity:
                          type: number
                        break_status:
                          type: string
                        matched_event_count:
                          type: integer
                  pagination:
                    type: object
                    properties:
                      limit:
                        type: integer
                      offset:
                        type: integer
                      total:
                        type: integer
                      has_more:
                        type: boolean
                  reconciliation_version:
                    type: integer
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      operationId: getClientsByClientIdCanonicalConversions
      x-operation-id-source: derived
    servers:
    - url: https://coppica.com/api/v1
  /clients/{clientId}/performance-brief:
    get:
      tags:
      - Deploy & track
      summary: Heimdall performance brief (cached, stale-while-revalidate)
      description: The most recent performance brief over the client's reconciled conversion data. Returns the cached brief plus a `stale` flag; if missing or >24h old it queues a background refresh (cheap no-op if the data is unchanged). available:false + regenerating:true means one was just queued — poll again shortly.
      parameters:
      - name: clientId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: The cached brief (with stale/regenerating flags), or available:false.
          content:
            application/json:
              schema:
                type: object
                properties:
                  available:
                    type: boolean
                  brief:
                    type: object
                    additionalProperties: true
                  generated_at:
                    type:
                    - string
                    - 'null'
                    format: date-time
                  model:
                    type:
                    - string
                    - 'null'
                  stale:
                    type: boolean
                  regenerating:
                    type: boolean
                  message:
                    type: string
                required:
                - available
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      operationId: getClientsByClientIdPerformanceBrief
      x-operation-id-source: derived
    post:
      tags:
      - Deploy & track
      summary: Force a fresh performance brief (execute scope)
      description: Queues an immediate fresh brief, bypassing the 24h freshness window — the "specifically requested" path. A paid Opus generation. Returns 202 + a job_id; poll GET for the result (typically 1-4 minutes).
      parameters:
      - name: clientId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '202':
          description: Brief generation queued.
          content:
            application/json:
              schema:
                type: object
                properties:
                  queued:
                    type: boolean
                  job_id:
                    type:
                    - string
                    - 'null'
                  message:
                    type: string
                required:
                - queued
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      operationId: postClientsByClientIdPerformanceBrief
      x-operation-id-source: derived
    servers:
    - url: https://coppica.com/api/v1
components:
  responses:
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found (also returned when access is denied).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Rate limit exceeded.
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds to wait before retrying.
        RateLimit-Limit:
          schema:
            type: integer
          description: Max requests in the window.
        RateLimit-Remaining:
          schema:
            type: integer
          description: Requests left in the window.
        RateLimit-Reset:
          schema:
            type: integer
          description: Seconds until the window resets.
      content:
        application/json:
          schema:
            type: object
            description: The 429 body carries code plus a message and retryAfterMs.
            properties:
              error:
                type: string
              code:
                type: string
                const: rate_limited
              message:
                type: string
              retryAfterMs:
                type: integer
            required:
            - error
            - code
    Forbidden:
      description: Wrong scope, client access denied, or spending cap exceeded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      description: Standard error envelope. Branch on `code`, never the human `error` string.
      properties:
        error:
          type: string
          description: Human-readable, sanitized message.
        code:
          type: string
          description: Stable machine-readable code.
          examples:
          - invalid_request
          - invalid_client_id
          - missing_authorization
          - invalid_api_key
          - missing_scope
          - client_access_denied
          - spending_cap_exceeded
          - not_found
          - rate_limited
          - server_error
      required:
      - error
      - code
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'A Coppica API key, e.g. `Authorization: Bearer cpk_...`. Keys carry read/write/execute scopes.'
x-refined-from:
- coppica-com-openapi.json
- coppica-com-openapi.yml