openapi: 3.2.0 info: title: Scope3 Buyer Update Proposals 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 tags: - name: Update Proposals paths: /update-proposals/{id}: get: operationId: getUpdateProposal summary: Get update proposal status description: Poll the resolution status of a media buy update proposal. Returns the current status (PENDING, APPROVED, or REJECTED) along with the rejection reason and resolved timestamp when available. tags: - Update Proposals security: - bearerAuth: [] parameters: - in: path name: id schema: type: string minLength: 1 required: true responses: '200': description: Get update proposal status content: application/json: schema: type: object properties: id: type: string status: type: string enum: - PENDING - APPROVED - REJECTED mediaBuyId: type: string rejectionReason: type: string resolvedAt: 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))$ required: - id - status - mediaBuyId additionalProperties: false '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' delete: operationId: cancelUpdateProposal summary: Cancel a pending update proposal description: Cancel an in-flight (PENDING) update proposal. Returns 409 if the proposal has already been resolved (APPROVED or REJECTED). Returns 404 if the proposal does not exist or belongs to a different customer. tags: - Update Proposals security: - bearerAuth: [] parameters: - in: path name: id schema: type: string minLength: 1 required: true responses: '204': description: No content '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' components: schemas: 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 ErrorResponse: description: Standard error response type: object properties: data: type: - string - 'null' enum: - null error: $ref: '#/components/schemas/ApiError' required: - data - error additionalProperties: false securitySchemes: bearerAuth: type: http scheme: bearer description: API key or access token