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

# Accept a directed campaign decision plan (alpha)

> Accept an unexpired Scope3-assisted plan and its complete paused create intent for the authenticated proposing principal and selected advertiser/account/provider subscription. The exact returned reference and accepted intent must be supplied by the one authorized assisted create.



## OpenAPI

````yaml /v2/buyer-api-v2.yaml post /storefront-connections/{connectionId}/accounts/{accountId}/directed-campaigns/plans/{planId}/accept
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: Account
    description: Account management, service tokens, and preferences
  - 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: Planning Briefs
    description: >-
      Share prospective briefs with publishers and collect their
      fit/quote/clarify/decline/book responses (gated by the
      demand-supply-signals flag).
  - 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:
  /storefront-connections/{connectionId}/accounts/{accountId}/directed-campaigns/plans/{planId}/accept:
    post:
      tags:
        - Storefronts
      summary: Accept a directed campaign decision plan (alpha)
      description: >-
        Accept an unexpired Scope3-assisted plan and its complete paused create
        intent for the authenticated proposing principal and selected
        advertiser/account/provider subscription. The exact returned reference
        and accepted intent must be supplied by the one authorized assisted
        create.
      operationId: acceptDirectedCampaignPlan
      parameters:
        - in: path
          name: connectionId
          schema:
            description: Storefront connection ID
            type: integer
            format: int64
          required: true
          description: Storefront connection ID
        - in: path
          name: accountId
          schema:
            description: Storefront connection account ID
            type: integer
            format: int64
          required: true
          description: Storefront connection account ID
        - in: path
          name: planId
          schema:
            description: Decision plan ID
            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: true
          description: Decision plan ID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                advertiserId:
                  type: string
                  pattern: ^[1-9]\d*$
                plan_digest:
                  type: string
                  pattern: ^sha256:[a-f0-9]{64}$
                write_intent:
                  type: object
                  properties:
                    name:
                      type: string
                      minLength: 1
                      maxLength: 255
                    currency:
                      type: string
                      pattern: ^[A-Z]{3}$
                    mediaBuy:
                      type: object
                      properties:
                        brand:
                          type: object
                          properties:
                            domain:
                              type: string
                              minLength: 1
                              maxLength: 253
                          required:
                            - domain
                          additionalProperties: false
                        total_budget:
                          type: object
                          properties:
                            amount:
                              type: number
                              minimum: 0
                              exclusiveMinimum: true
                            currency:
                              type: string
                              pattern: ^[A-Z]{3}$
                          required:
                            - amount
                            - currency
                          additionalProperties: false
                        start_time:
                          anyOf:
                            - type: string
                              enum:
                                - asap
                            - 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))$
                        end_time:
                          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))$
                        paused:
                          type: boolean
                          enum:
                            - true
                        packages:
                          minItems: 1
                          maxItems: 1
                          type: array
                          items:
                            type: object
                            properties:
                              product_id:
                                type: string
                                minLength: 1
                              pricing_option_id:
                                type: string
                                minLength: 1
                              budget:
                                type: number
                                minimum: 0
                                exclusiveMinimum: true
                              targeting_overlay:
                                type: object
                                properties:
                                  geo_countries:
                                    minItems: 1
                                    type: array
                                    items:
                                      type: string
                                      pattern: ^[A-Z]{2}$
                                required:
                                  - geo_countries
                                additionalProperties: false
                            required:
                              - product_id
                              - pricing_option_id
                              - budget
                              - targeting_overlay
                            additionalProperties: false
                      required:
                        - brand
                        - total_budget
                        - start_time
                        - end_time
                        - paused
                        - packages
                      additionalProperties: false
                  required:
                    - name
                    - currency
                    - mediaBuy
                  additionalProperties: false
              required:
                - advertiserId
                - plan_digest
                - write_intent
              additionalProperties: false
      responses:
        '200':
          description: Accept a directed campaign decision plan (alpha)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AcceptedCampaignDecisionPlanRef'
        '400':
          description: >-
            The plan is missing, expired, mismatched, already accepted by
            another principal, or outside the selected account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: >-
            Directed campaign reads or writes are not enabled, or the advertiser
            is inaccessible.
          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:
    AcceptedCampaignDecisionPlanRef:
      description: >-
        An unexpired assisted campaign decision plan accepted by the
        authenticated proposing principal.
      type: object
      properties:
        plan_id:
          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)$
        plan_digest:
          type: string
          pattern: ^sha256:[a-f0-9]{64}$
        write_intent_digest:
          type: string
          pattern: ^sha256:[a-f0-9]{64}$
        expires_at:
          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))$
        acceptance_status:
          type: string
          enum:
            - accepted
      required:
        - plan_id
        - plan_digest
        - write_intent_digest
        - expires_at
        - acceptance_status
      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
    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

````