> ## 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 audiences

> Sync first-party CRM audiences for an account. Processing is asynchronous — returns 202 with an operation ID.



## OpenAPI

````yaml /v2/buyer-api-v2.yaml post /advertisers/{accountId}/audiences/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/{accountId}/audiences/sync:
    post:
      tags:
        - Advertisers
      summary: Sync audiences
      description: >-
        Sync first-party CRM audiences for an account. Processing is
        asynchronous — returns 202 with an operation ID.
      operationId: syncAudiences
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SyncAudiencesBody'
      responses:
        '202':
          description: Sync audiences
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SyncAudiencesResponse'
        '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:
    SyncAudiencesBody:
      description: Sync audience data into Scope3
      type: object
      properties:
        audiences:
          description: Audiences to sync
          minItems: 1
          type: array
          items:
            $ref: '#/components/schemas/AudienceItem'
        deleteMissing:
          description: When true, audiences not in this request are marked as deleted.
          type: boolean
        pushNotificationConfig:
          type: object
          properties:
            url:
              type: string
            operation_id:
              type: string
              minLength: 1
              maxLength: 255
              pattern: ^[A-Za-z0-9_.:-]{1,255}$
            token:
              type: string
              minLength: 16
              maxLength: 4096
            authentication:
              type: object
              properties:
                schemes:
                  type: array
                  items:
                    anyOf:
                      - type: string
                        enum:
                          - Bearer
                      - type: string
                        enum:
                          - HMAC-SHA256
                credentials:
                  type: string
                  minLength: 32
              required:
                - schemes
                - credentials
              additionalProperties: {}
          required:
            - url
          additionalProperties: {}
      required:
        - audiences
    SyncAudiencesResponse:
      description: Audience sync accepted for async processing
      type: object
      properties:
        success:
          type: boolean
        accountId:
          description: >-
            Advertiser ID (numeric string, e.g. "25") — same as the path
            parameter
          example: '25'
          type: string
        operationId:
          description: Batch operation UUID for tracking async processing
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        taskId:
          description: >-
            Task ID for polling progress via GET /tasks/{taskId}. Same value as
            operationId.
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      required:
        - success
        - accountId
        - operationId
        - taskId
      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
    AudienceItem:
      description: Audience to sync with member changes
      type: object
      properties:
        audienceId:
          description: Buyer's identifier for this audience. Used in targeting overlays.
          type: string
          minLength: 1
          maxLength: 255
        name:
          description: Human-readable name
          type: string
          maxLength: 255
        add:
          description: Members to add to this audience
          maxItems: 100000
          type: array
          items:
            type: object
            properties:
              externalId:
                description: Unique identifier for this member within the audience
                type: string
                minLength: 1
              hashedEmail:
                description: SHA-256 hash of lowercase, trimmed email (64-char hex)
                example: a1b2c3d4e5f6...
                type: string
                pattern: ^[0-9a-f]{64}$
              hashedPhone:
                description: SHA-256 hash of E.164-formatted phone number (64-char hex)
                example: f6e5d4c3b2a1...
                type: string
                pattern: ^[0-9a-f]{64}$
              uids:
                description: Universal IDs for user matching
                minItems: 1
                type: array
                items:
                  type: object
                  properties:
                    type:
                      description: Universal ID type (rampid, uid2, maid, etc.)
                      type: string
                      minLength: 1
                    value:
                      description: Universal ID value
                      type: string
                      minLength: 1
                  required:
                    - type
                    - value
            required:
              - externalId
        remove:
          description: Members to remove by external ID
          maxItems: 100000
          type: array
          items:
            $ref: '#/components/schemas/RemoveMember'
        delete:
          description: When true, delete this audience entirely
          type: boolean
        consentBasis:
          description: GDPR lawful basis for processing this audience
          type: string
          enum:
            - consent
            - legitimate_interest
            - contract
            - legal_obligation
      required:
        - audienceId
    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
    RemoveMember:
      description: Member to remove from the audience
      type: object
      properties:
        externalId:
          description: Unique identifier for this member within the audience
          type: string
          minLength: 1
        hashedEmail:
          description: SHA-256 hash of lowercase, trimmed email (64-char hex)
          example: a1b2c3d4e5f6...
          type: string
          pattern: ^[0-9a-f]{64}$
        hashedPhone:
          description: SHA-256 hash of E.164-formatted phone number (64-char hex)
          example: f6e5d4c3b2a1...
          type: string
          pattern: ^[0-9a-f]{64}$
        uids:
          description: Universal IDs for user matching
          minItems: 1
          type: array
          items:
            type: object
            properties:
              type:
                description: Universal ID type (rampid, uid2, maid, etc.)
                type: string
                minLength: 1
              value:
                description: Universal ID value
                type: string
                minLength: 1
            required:
              - type
              - value
      required:
        - externalId
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or access token

````