IAB Tech Lab Packages API

Package management (authenticated/admin)

Operations 7

GET /packages List Packages #
POST /packages Create Package #
GET /packages/{package_id} Get Package #
PUT /packages/{package_id} Update Package #
DELETE /packages/{package_id} Delete Package #
POST /packages/assemble Assemble Package #
POST /packages/sync Sync Packages #

Documentation

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/iab-tech-lab/refs/heads/main/json-schema/iab-tech-lab-agentic-primitive-deal.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/iab-tech-lab/refs/heads/main/json-schema/iab-tech-lab-agentic-primitive-order.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/iab-tech-lab/refs/heads/main/json-schema/iab-tech-lab-agentic-primitive-product.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/iab-tech-lab/refs/heads/main/json-schema/iab-tech-lab-agentic-primitive-negotiation.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/iab-tech-lab/refs/heads/main/json-schema/iab-tech-lab-agentic-primitive-proposal.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/iab-tech-lab/refs/heads/main/json-schema/iab-tech-lab-agentic-primitive-mediakit.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/iab-tech-lab/refs/heads/main/json-schema/iab-tech-lab-agentic-primitive-agent.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/iab-tech-lab/refs/heads/main/json-schema/iab-tech-lab-agentic-primitive-line.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/iab-tech-lab/refs/heads/main/json-schema/iab-tech-lab-agentic-primitive-account.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/iab-tech-lab/refs/heads/main/json-schema/iab-tech-lab-agentic-primitive-organization.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/iab-tech-lab/refs/heads/main/json-schema/iab-tech-lab-agentic-primitive-creative.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/iab-tech-lab/refs/heads/main/json-schema/iab-tech-lab-agentic-primitive-creativeapproval.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/iab-tech-lab/refs/heads/main/json-schema/iab-tech-lab-agentic-primitive-assignment.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/iab-tech-lab/refs/heads/main/json-schema/iab-tech-lab-agentic-primitive-changerequest.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/iab-tech-lab/refs/heads/main/json-schema/iab-tech-lab-agentic-primitive-consentcontext.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/iab-tech-lab/refs/heads/main/json-schema/iab-tech-lab-agentic-primitive-decisionrecord.json

Other Resources

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/iab-tech-lab-packages-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

iab-tech-lab-packages-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ad Seller System Packages API
  description: IAB OpenDirect 2.1 compliant seller agent for programmatic advertising. Supports product discovery, tiered pricing, proposal evaluation, multi-round negotiation, deal execution, order management, and change requests.
  contact:
    name: IAB Tech Lab
    url: https://iabtechlab.com/
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  version: 1.0.0
tags:
- name: Packages
  description: Package management (authenticated/admin)
paths:
  /packages:
    get:
      tags:
      - Packages
      summary: List Packages
      description: 'List packages with tier-gated view.


        Audience filter (proposal §5.7):


        - `audience_type`: one of `standard` | `contextual` | `agentic`.

        - `audience_id`: taxonomy ID for standard/contextual; URI for agentic.

        Requires `audience_type` to disambiguate which capability list to

        search.

        - `audience_taxonomy_version`: optional version constraint; when unset

        the seller''s lock-file version is authoritative.


        Empty results return `[]`, not 404 -- matches the existing behavior for

        layer/featured filters.'
      operationId: list_packages_packages_get
      parameters:
      - name: buyer_tier
        in: query
        required: false
        schema:
          type: string
          default: public
          title: Buyer Tier
      - name: agency_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Agency Id
      - name: advertiser_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Advertiser Id
      - name: layer
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Layer
      - name: audience_type
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Audience Type
      - name: audience_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Audience Id
      - name: audience_taxonomy_version
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Audience Taxonomy Version
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: X-Api-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Packages
      summary: Create Package
      description: Create a curated package (Layer 2).
      operationId: create_package_packages_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PackageCreateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /packages/{package_id}:
    get:
      tags:
      - Packages
      summary: Get Package
      description: Get a single package with tier-gated view.
      operationId: get_package_packages__package_id__get
      parameters:
      - name: package_id
        in: path
        required: true
        schema:
          type: string
          title: Package Id
      - name: buyer_tier
        in: query
        required: false
        schema:
          type: string
          default: public
          title: Buyer Tier
      - name: agency_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Agency Id
      - name: advertiser_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Advertiser Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: X-Api-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - Packages
      summary: Update Package
      description: Update an existing package.
      operationId: update_package_packages__package_id__put
      parameters:
      - name: package_id
        in: path
        required: true
        schema:
          type: string
          title: Package Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
              title: Updates
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Packages
      summary: Delete Package
      description: Archive a package (soft delete).
      operationId: delete_package_packages__package_id__delete
      parameters:
      - name: package_id
        in: path
        required: true
        schema:
          type: string
          title: Package Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /packages/assemble:
    post:
      tags:
      - Packages
      summary: Assemble Package
      description: 'Assemble a dynamic package (Layer 3) from product IDs.


        Product ids resolve catalog-first with storage fallback (issue #34) —

        the same resolution as ``POST /packages``. Zero resolution is a 422

        naming the unresolved ids; partial resolution surfaces

        ``unresolved_ids``/``warnings`` on the response.'
      operationId: assemble_package_packages_assemble_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DynamicPackageRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /packages/sync:
    post:
      tags:
      - Packages
      summary: Sync Packages
      description: Trigger ad server inventory sync (Layer 1).
      operationId: sync_packages_packages_sync_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    DynamicPackageRequest:
      properties:
        name:
          type: string
          title: Name
        product_ids:
          items:
            type: string
          type: array
          title: Product Ids
      type: object
      required:
      - name
      - product_ids
      title: DynamicPackageRequest
      description: Request to assemble a dynamic package from product IDs.
    PackageCreateRequest:
      properties:
        name:
          type: string
          title: Name
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
        product_ids:
          items:
            type: string
          type: array
          title: Product Ids
          default: []
        cat:
          items:
            type: string
          type: array
          title: Cat
          default: []
        cattax:
          type: integer
          title: Cattax
          default: 2
        audience_capabilities:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Audience Capabilities
        audience_segment_ids:
          items:
            type: string
          type: array
          title: Audience Segment Ids
          default: []
        device_types:
          items:
            type: integer
          type: array
          title: Device Types
          default: []
        ad_formats:
          items:
            type: string
          type: array
          title: Ad Formats
          default: []
        geo_targets:
          items:
            type: string
          type: array
          title: Geo Targets
          default: []
        base_price:
          type: number
          title: Base Price
        floor_price:
          type: number
          title: Floor Price
        tags:
          items:
            type: string
          type: array
          title: Tags
          default: []
        is_featured:
          type: boolean
          title: Is Featured
          default: false
        seasonal_label:
          anyOf:
          - type: string
          - type: 'null'
          title: Seasonal Label
      type: object
      required:
      - name
      - base_price
      - floor_price
      title: PackageCreateRequest
      description: 'Request to create a curated package.


        Accepts the new typed `audience_capabilities` shape (proposal §5.7).

        Legacy callers may still send `audience_segment_ids: list[str]` as

        flat input -- the field is retained as deprecated and will be folded

        into `audience_capabilities.standard_segment_ids` (with implicit

        AT 1.1) by `create_package`.'