> ## Documentation Index
> Fetch the complete documentation index at: https://docs.interchange.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Sync measurement data

> Inbound sync_measurement_data endpoint. Advertisers or MMPs call this to provide performance data as an alternative to CAPI. Accepts time-series measurement data keyed by campaign, media buy, package, and/or creative.



## OpenAPI

````yaml /v2/buyer-api-v2.yaml post /advertisers/{advertiserId}/measurement-data/sync
openapi: 3.0.0
info:
  title: Scope3 Buyer API
  version: 2.0.0
  description: |-
    REST API for advertisers to manage advertisers, campaigns, and reporting.

    ## Authentication

    All endpoints require a Bearer token in the Authorization header:
    ```
    Authorization: Bearer your-api-key
    ```

    ## Base URL

    `https://api.interchange.io/api/v2/buyer`

    ## For AI Agents

    AI agents can use the MCP endpoint at `/mcp/v2/buyer` with three tools:
    - `initialize`: Start an MCP session
    - `api_call`: Make REST API calls
    - `ask_about_capability`: Learn about API features
servers:
  - url: https://api.interchange.io/api/v2/buyer
    description: Production server
security: []
tags:
  - name: Signup
    description: Request reviewed access to Interchange
  - name: Account
    description: Account management, service tokens, and preferences
  - name: Asks
    description: >-
      What you are waiting on Scope3 for — support, product, and supply asks in
      one list
  - name: Advertisers
    description: Manage advertisers
  - name: Product Discovery
    description: Discover and select products
  - name: Campaigns
    description: Manage advertising campaigns
  - name: Creatives
    description: Build, manage, and sync campaign creatives via AdCP Creative Protocol
  - name: Reporting
    description: Access performance metrics
  - name: Event Sources
    description: >-
      Manage event source configurations and log conversion/marketing events for
      attribution
  - name: Property Lists
    description: Validate property lists against AAO registry
  - name: Sales Agents
    description: View and connect sales agents
  - name: Measurement
    description: Measurement sources, records, context, and freshness
  - name: Syndication
    description: Syndicate resources to ADCP agents
  - name: Tasks
    description: Track async operation status
  - name: Buyer Billing
    description: >-
      Consolidated invoicing for buyers — invoices and pending invoice items
      issued by Scope3 across the buyer customer.
  - name: MCP
    description: Model Context Protocol endpoints for AI agents
paths:
  /advertisers/{advertiserId}/measurement-data/sync:
    post:
      tags:
        - Measurement
      summary: Sync measurement data
      description: >-
        Inbound sync_measurement_data endpoint. Advertisers or MMPs call this to
        provide performance data as an alternative to CAPI. Accepts time-series
        measurement data keyed by campaign, media buy, package, and/or creative.
      operationId: syncMeasurementData
      parameters:
        - in: path
          name: advertiserId
          schema:
            description: Unique identifier for the advertiser
            example: '12345'
            type: string
            minLength: 1
          required: true
          description: Unique identifier for the advertiser
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SyncMeasurementDataRequest'
      responses:
        '200':
          description: Sync measurement data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SyncMeasurementDataResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    SyncMeasurementDataRequest:
      description: >-
        Request body for syncing measurement data (ADCP spec alternative to
        CAPI)
      type: object
      properties:
        measurements:
          description: Measurement data points to sync (up to 1000 per call)
          minItems: 1
          maxItems: 1000
          type: array
          items:
            $ref: '#/components/schemas/SyncMeasurementObject'
      required:
        - measurements
    SyncMeasurementDataResponse:
      description: Response from sync_measurement_data
      type: object
      properties:
        measurements:
          description: Per-record sync results
          type: array
          items:
            $ref: '#/components/schemas/MeasurementDataSyncResult'
      required:
        - measurements
      additionalProperties: false
    ErrorResponse:
      description: Standard error response
      type: object
      properties:
        data:
          type: string
          nullable: true
          enum:
            - null
        error:
          $ref: '#/components/schemas/ApiError'
      required:
        - data
        - error
      additionalProperties: false
    SyncMeasurementObject:
      description: A single measurement data point to sync
      type: object
      properties:
        start_time:
          description: Start of the measurement period (ISO 8601 with timezone)
          example: '2026-03-01T00:00:00-05:00'
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
        end_time:
          description: End of the measurement period (ISO 8601 with timezone)
          example: '2026-03-07T23:59:59-05:00'
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
        metric_id:
          description: Type of metric being measured
          example: incremental_revenue
          type: string
          enum:
            - revenue
            - incremental_revenue
            - conversions
            - incremental_conversions
            - page_view_count
            - add_to_cart_count
            - purchase_count
            - ltv_1d
            - ltv_7d
            - ltv_30d
        metric_value:
          description: Measured value for this metric
          example: 8450.75
          type: number
        unit:
          description: Unit of measure for the metric value
          example: currency
          type: string
          enum:
            - currency
            - count
            - ratio
            - percentage
        currency:
          description: ISO 4217 currency code — required when unit is "currency"
          example: USD
          type: string
          pattern: ^[A-Z]{3}$
        campaign_id:
          description: Campaign identifier
          example: camp_456
          type: string
          minLength: 1
          maxLength: 255
        media_buy_id:
          description: Media buy identifier
          example: mb_789
          type: string
          minLength: 1
          maxLength: 255
        package_id:
          description: Package identifier
          example: pkg_001
          type: string
          minLength: 1
          maxLength: 255
        creative_id:
          description: Creative identifier
          example: cr_002
          type: string
          minLength: 1
          maxLength: 255
        source:
          description: Who sent the data
          example: advertiser
          type: string
          enum:
            - advertiser
            - mmp
            - measurement_partner
        source_platform:
          description: Platform the measurement data originates from
          example: billy_grace
          type: string
          minLength: 1
          maxLength: 255
        source_metric_name:
          description: Raw partner metric name for mapping
          example: Incremental Revenue
          type: string
          minLength: 1
          maxLength: 255
        external_row_id:
          description: External row identifier for idempotency
          example: bg_row_001
          type: string
          minLength: 1
          maxLength: 255
      required:
        - start_time
        - end_time
        - metric_id
        - metric_value
        - unit
    MeasurementDataSyncResult:
      description: Per-record result from sync_measurement_data
      type: object
      properties:
        index:
          description: Index of this measurement in the request array
          type: integer
          minimum: 0
          maximum: 9007199254740991
        action:
          description: What happened to this measurement during sync
          type: string
          enum:
            - created
            - updated
            - unchanged
            - failed
        error:
          description: Error message when action is "failed"
          type: string
      required:
        - index
        - action
      additionalProperties: false
    ApiError:
      description: Structured error object
      type: object
      properties:
        code:
          description: Machine-readable error code
          type: string
        message:
          description: Human-readable error message
          type: string
        field:
          description: Field path associated with the error
          type: string
        details:
          description: Additional error context
          type: object
          additionalProperties: {}
      required:
        - code
        - message
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or access token

````