openapi: 3.2.0 info: title: Ad Seller System Discovery 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: Discovery description: Natural language inventory discovery paths: /discovery: post: tags: - Discovery summary: Discovery Query description: Process a discovery query about inventory. operationId: discovery_query_discovery_post parameters: - 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 requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DiscoveryRequest' responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' 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 DiscoveryRequest: properties: query: type: string title: Query buyer_tier: type: string title: Buyer Tier default: public agency_id: anyOf: - type: string - type: 'null' title: Agency Id agent_url: anyOf: - type: string - type: 'null' title: Agent Url type: object required: - query title: DiscoveryRequest description: Discovery query request.