The Trade Desk OfflineConversion API

The OfflineConversion API from The Trade Desk — 1 operation(s) for offlineconversion.

Operations 1

POST /providerapi/offlineconversion Upload offline conversion data for the specified data provider #

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/trade-desk:trade-desk-offlineconversion-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

trade-desk-offlineconversion-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TTD Data Offline Conversion API
  version: v0.1
tags:
- name: OfflineConversion
paths:
  /providerapi/offlineconversion:
    post:
      tags:
      - OfflineConversion
      summary: Upload offline conversion data for the specified data provider
      operationId: IngestOfflineConversionData
      parameters:
      - name: TTD-Auth
        in: header
        description: Data API token for authentication.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OfflineConversionDataRequest'
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OfflineConversionDataServerResponse'
        '400':
          description: Bad Request - Invalid JSON, missing items, data provider not configured, or policy restrictions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OfflineConversionDataServerResponse'
        '401':
          description: Unauthorized - Invalid or missing authentication token
          content:
            application/json:
              schema:
                type: string
        '403':
          description: Forbidden - Cannot create offline conversion data for this data provider
          content:
            application/json:
              schema:
                type: string
        '413':
          description: Request Entity Too Large - Request size exceeds the allowed limit
          content:
            application/json:
              schema:
                type: string
        '429':
          description: Too Many Requests - Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OfflineConversionDataServerResponse'
        '500':
          description: Internal Server Error - Unexpected server error
        '503':
          description: Service Unavailable - Handler disabled or request dropped
      servers:
      - url: https://offlineattrib.adsrvr.org
components:
  schemas:
    RealTimeConversionEventsPrivacySetting:
      type: object
      properties:
        privacy_type:
          type:
          - string
          - 'null'
        is_applicable:
          type:
          - string
          - 'null'
        consent_string:
          type:
          - string
          - 'null'
      additionalProperties: false
    OfflineConversionDataServerResponse:
      type: object
      properties:
        FailedLines:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/OfflineConversionDataServerResponseLine'
      additionalProperties: false
    OfflineConversionDataItem:
      required:
      - TimestampUtc
      - TrackingTagId
      type: object
      properties:
        TDID:
          type:
          - string
          - 'null'
        DAID:
          type:
          - string
          - 'null'
        UID2:
          type:
          - string
          - 'null'
        UID2Token:
          type:
          - string
          - 'null'
        RampID:
          type:
          - string
          - 'null'
        EUID:
          type:
          - string
          - 'null'
        EUIDToken:
          type:
          - string
          - 'null'
        DataProviderUserId:
          type:
          - string
          - 'null'
        UserIdArray:
          type:
          - array
          - 'null'
          items:
            maxItems: 2
            minItems: 2
            type: array
            items:
              type: string
          description: Array of [type, id] pairs.
        CookieMappingPartnerId:
          type:
          - string
          - 'null'
        OrderId:
          type:
          - string
          - 'null'
        ImpressionId:
          type:
          - string
          - 'null'
        TrackingTagId:
          type: string
        TimestampUtc:
          type: string
          format: date-time
        Value:
          type:
          - string
          - 'null'
        ValueCurrency:
          type:
          - string
          - 'null'
        Country:
          type:
          - string
          - 'null'
        Region:
          type:
          - string
          - 'null'
        Metro:
          type:
          - string
          - 'null'
        City:
          type:
          - string
          - 'null'
        MerchantId:
          type:
          - string
          - 'null'
        EventName:
          type:
          - string
          - 'null'
        LineItems:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/RealTimeConversionEventLineItem'
        PrivacySettings:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/RealTimeConversionEventsPrivacySetting'
        TD1:
          type:
          - string
          - 'null'
        TD2:
          type:
          - string
          - 'null'
        TD3:
          type:
          - string
          - 'null'
        TD4:
          type:
          - string
          - 'null'
        TD5:
          type:
          - string
          - 'null'
        TD6:
          type:
          - string
          - 'null'
        TD7:
          type:
          - string
          - 'null'
        TD8:
          type:
          - string
          - 'null'
        TD9:
          type:
          - string
          - 'null'
        TD10:
          type:
          - string
          - 'null'
      additionalProperties: false
    OfflineConversionDataServerResponseLine:
      type: object
      properties:
        OrderId:
          type:
          - string
          - 'null'
        ImpressionId:
          type:
          - string
          - 'null'
        TDID:
          type:
          - string
          - 'null'
        TrackingTagId:
          type:
          - string
          - 'null'
        TimestampUtc:
          type: string
          format: date-time
        ErrorCode:
          $ref: '#/components/schemas/OfflineConversionDataResponseErrorCode'
        Message:
          type:
          - string
          - 'null'
        ItemNumber:
          type:
          - string
          - 'null'
        OriginalRequest:
          $ref: '#/components/schemas/OfflineConversionDataItem'
      additionalProperties: false
    OfflineConversionDataResponseErrorCode:
      enum:
      - Unknown
      - MissingOrInvalidTDIDAndImpressionId
      - MissingOrInvalidTrackingTagId
      - InvalidMerchantId
      - ChinaPII
      - InvalidTimestamp
      - InvalidUserIdTypeOrUserId
      - Unauthorized
      - ItemDeserializationError
      type: string
    OfflineConversionDataRequest:
      required:
      - DataProviderId
      type: object
      properties:
        DataProviderId:
          type: string
        UserIdArrayMetadataFormat:
          type:
          - array
          - 'null'
          items:
            type: string
        Items:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/OfflineConversionDataItem'
        DataLoadTraceId:
          type:
          - string
          - 'null'
      additionalProperties: false
    RealTimeConversionEventLineItem:
      type: object
      properties:
        item_code:
          type:
          - string
          - 'null'
        name:
          type:
          - string
          - 'null'
        qty:
          type:
          - string
          - 'null'
        price:
          type:
          - string
          - 'null'
        cat:
          type:
          - string
          - 'null'
      additionalProperties: false