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

# Get storefront capabilities

> Inspect source-level capability diagnostics for a buyer-visible storefront.



## OpenAPI

````yaml /v2/buyer-api-v2.yaml get /storefronts/{storefrontId}/capabilities
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:
  /storefronts/{storefrontId}/capabilities:
    get:
      tags:
        - Storefronts
      summary: Get storefront capabilities
      description: >-
        Inspect source-level capability diagnostics for a buyer-visible
        storefront.
      operationId: getStorefrontCapabilities
      parameters:
        - in: path
          name: storefrontId
          schema:
            type: integer
            minimum: 0
            exclusiveMinimum: true
            maximum: 9007199254740991
            description: Storefront ID
          required: true
          description: Storefront ID
      responses:
        '200':
          description: Get storefront capabilities
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BuyerStorefrontCapabilitiesResponse'
        '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:
    BuyerStorefrontCapabilitiesResponse:
      type: object
      properties:
        storefrontId:
          type: integer
          minimum: 0
          exclusiveMinimum: true
          maximum: 9007199254740991
          description: Storefront ID that was inspected
        agents:
          type: array
          items:
            $ref: '#/components/schemas/BuyerStorefrontCapabilitySource'
          description: >-
            Active source rows behind the storefront. Field name retained for
            response compatibility.
      required:
        - storefrontId
        - agents
      additionalProperties: false
      description: Source-level capability diagnostics for a buyer storefront
    ErrorResponse:
      type: object
      properties:
        data:
          type: string
          nullable: true
          enum:
            - null
        error:
          $ref: '#/components/schemas/ApiError'
      required:
        - data
        - error
      additionalProperties: false
      description: Standard error response
    BuyerStorefrontCapabilitySource:
      type: object
      properties:
        sourceId:
          type: string
          description: Inventory source identifier within the storefront
        sourceName:
          nullable: true
          description: Inventory source display name
          type: string
        executionType:
          type: string
          description: Source execution type
        agentName:
          nullable: true
          description: External sales-agent name when one exists
          type: string
        requiresCredentials:
          nullable: true
          description: >-
            Whether buyer-provided credentials are required for this external
            AdCP source. Null when not applicable or unavailable.
          type: boolean
        probeable:
          type: boolean
          description: >-
            Whether this row is an external AdCP sales agent that the capability
            diagnostic can check
        probeStatus:
          type: string
          enum:
            - reachable
            - unreachable
            - not_applicable
            - unavailable
          description: >-
            Capability availability status. `reachable` means capabilities are
            available (including in-process synthesized capabilities for adapter
            and ESA storefronts), possibly from cache.
        message:
          nullable: true
          description: Explanation when the row is not probeable
          type: string
        capabilities:
          nullable: true
          description: >-
            Capability summary for external AdCP sources; null for managed
            sources or failed capability lookups
          allOf:
            - $ref: '#/components/schemas/BuyerStorefrontCapabilityDetails'
      required:
        - sourceId
        - sourceName
        - executionType
        - agentName
        - requiresCredentials
        - probeable
        - probeStatus
        - message
        - capabilities
      additionalProperties: false
      description: Source-level storefront capability diagnostic row
    ApiError:
      type: object
      properties:
        code:
          type: string
          description: Machine-readable error code
        message:
          type: string
          description: Human-readable error message
        field:
          description: Field path associated with the error
          type: string
        details:
          description: Additional error context
          type: object
          additionalProperties: {}
      required:
        - code
        - message
      additionalProperties: false
      description: Structured error object
    BuyerStorefrontCapabilityDetails:
      type: object
      properties:
        version:
          type: string
          description: AdCP capability version
        tools:
          type: array
          items:
            type: string
          description: Tool names reported by the external AdCP source
        protocols:
          type: array
          items:
            type: string
          description: Protocols advertised by the external AdCP source
        features:
          type: object
          additionalProperties: {}
          description: Feature flags advertised by the external AdCP source
        publisherDomains:
          description: Publisher domains advertised by this source
          type: array
          items:
            type: string
        channels:
          description: Advertising channels advertised by this source
          type: array
          items:
            type: string
        countries:
          description: >-
            ISO 3166-1 alpha-2 primary countries advertised by this source;
            authoritative for a source on the Agent-supplied path; omitted when
            unknown
          type: array
          items:
            type: string
        accountResolution:
          nullable: true
          description: How the source resolves buyer accounts; null when not advertised.
          type: string
          enum:
            - explicit_account_id
            - implicit_from_sync
        requireOperatorAuth:
          type: boolean
          description: >-
            Capability-payload copy of whether buyer-provided credentials are
            required.
        defaultBilling:
          nullable: true
          description: Default billing mode advertised by the source
          type: string
        supportedBillings:
          type: array
          items:
            type: string
          description: Billing modes supported by the source
        reportingDeliveryMethods:
          nullable: true
          type: array
          items:
            type: string
            enum:
              - webhook
              - offline
        sandboxSupported:
          type: boolean
          description: Whether the source advertises sandbox support
        synthetic:
          type: boolean
          description: >-
            Whether capabilities were synthesized rather than returned directly
            by the source
      required:
        - version
        - tools
        - protocols
        - features
        - accountResolution
        - requireOperatorAuth
        - defaultBilling
        - supportedBillings
        - reportingDeliveryMethods
        - sandboxSupported
        - synthetic
      additionalProperties: false
      description: Capability summary for an external AdCP storefront source
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or access token

````