openapi: 3.1.0 info: title: AgenticAdvertising.org Registry API description: |- REST API for the AgenticAdvertising.org registry. Resolve brands, discover properties, look up agents, and validate authorization in the AdCP ecosystem. Most endpoints are public and require no authentication. Endpoints marked with a lock icon accept either an organization API key or a user JWT obtained via the OAuth 2.1 flow — see [Authentication](https://agenticadvertising.org/docs/registry/index#authentication). **Base URL:** `https://agenticadvertising.org` version: 1.0.0 contact: name: AgenticAdvertising.org url: https://agenticadvertising.org servers: - url: https://agenticadvertising.org description: Production security: [] components: securitySchemes: bearerAuth: type: http scheme: bearer description: |- Bearer token in the `Authorization` header. Two token types are accepted: - **Organization API key** (`sk_...`) issued via the dashboard. Org-scoped, long-lived, for server-to-server use. - **User JWT** obtained via the OAuth 2.1 authorization code flow with PKCE. User-scoped, short-lived. Discover the authorization server at `/.well-known/oauth-authorization-server` and the protected-resource metadata at `/.well-known/oauth-protected-resource/api`. oauth2: type: oauth2 description: OAuth 2.1 authorization code flow with PKCE. Users authenticate via AuthKit and clients receive a Bearer JWT that authorizes both the MCP endpoint and this REST API. Dynamic client registration is supported at `/register`. flows: authorizationCode: authorizationUrl: https://agenticadvertising.org/authorize tokenUrl: https://agenticadvertising.org/token refreshUrl: https://agenticadvertising.org/token scopes: openid: User identifier profile: User profile information email: User email address schemas: ResolvedBrand: type: object properties: canonical_id: type: string example: acmecorp.com canonical_domain: type: string example: acmecorp.com brand_name: type: string example: Acme Corp names: type: array items: $ref: "#/components/schemas/LocalizedName" keller_type: type: string enum: - master - sub_brand - endorsed - independent parent_brand: type: string house_domain: type: string house_name: type: string brand_agent_url: type: string brand_manifest: type: object additionalProperties: {} source: type: string enum: - brand_json - community - enriched required: - canonical_id - canonical_domain - brand_name - source LocalizedName: type: object additionalProperties: type: string Error: type: object properties: error: type: string required: - error BrandRegistryItem: type: object properties: domain: type: string example: acmecorp.com brand_name: type: string example: Acme Corp source: type: string enum: - hosted - brand_json - community - enriched has_manifest: type: boolean verified: type: boolean house_domain: type: string keller_type: type: string enum: - master - sub_brand - endorsed - independent required: - domain - source - has_manifest - verified BrandActivity: type: object properties: domain: type: string example: acmecorp.com total: type: integer example: 3 revisions: type: array items: type: object properties: revision_number: type: integer example: 3 editor_name: type: string example: Pinnacle Media edit_summary: type: string example: Updated logo and brand colors source: type: string description: Source type of the record at the time of this revision (brand_json, enriched, community) is_rollback: type: boolean rolled_back_to: type: integer description: Revision number that was restored; only present when is_rollback is true created_at: type: string example: 2026-03-01T12:34:56Z required: - revision_number - editor_name - edit_summary - is_rollback - created_at required: - domain - total - revisions PropertyActivity: type: object properties: domain: type: string example: examplepub.com total: type: integer example: 3 revisions: type: array items: type: object properties: revision_number: type: integer example: 3 editor_name: type: string example: Pinnacle Media edit_summary: type: string example: Updated logo and brand colors source: type: string description: Source type of the record at the time of this revision (brand_json, enriched, community) is_rollback: type: boolean rolled_back_to: type: integer description: Revision number that was restored; only present when is_rollback is true created_at: type: string example: 2026-03-01T12:34:56Z required: - revision_number - editor_name - edit_summary - is_rollback - created_at required: - domain - total - revisions ResolvedProperty: type: object properties: publisher_domain: type: string example: examplepub.com source: type: string enum: - adagents_json - hosted - discovered authorized_agents: type: array items: type: object properties: url: type: string authorized_for: type: string required: - url properties: type: array items: type: object properties: id: type: string type: type: string name: type: string identifiers: type: array items: $ref: "#/components/schemas/PropertyIdentifier" tags: type: array items: type: string contact: type: object properties: name: type: string email: type: string verified: type: boolean required: - publisher_domain - source - verified PropertyIdentifier: type: object properties: type: type: string example: domain value: type: string example: examplepub.com required: - type - value PropertyRegistryItem: type: object properties: domain: type: string example: examplepub.com source: type: string enum: - adagents_json - hosted - community - discovered - enriched property_count: type: integer agent_count: type: integer verified: type: boolean required: - domain - source - property_count - agent_count - verified ValidationResult: type: object properties: valid: type: boolean domain: type: string url: type: string errors: type: array items: type: string warnings: type: array items: type: string status_code: type: integer raw_data: type: object additionalProperties: {} required: - valid FederatedAgentWithDetails: type: object properties: url: type: string name: type: string type: type: string enum: - brand - rights - measurement - governance - creative - sales - buying - signals - unknown protocol: type: string enum: - mcp - a2a description: type: string mcp_endpoint: type: string contact: type: object properties: name: type: string email: type: string website: type: string required: - name - email - website added_date: type: string source: type: string enum: - registered - discovered member: type: object properties: slug: type: string display_name: type: string discovered_from: type: object properties: publisher_domain: type: string authorized_for: type: string health: $ref: "#/components/schemas/AgentHealth" stats: $ref: "#/components/schemas/AgentStats" capabilities: $ref: "#/components/schemas/AgentCapabilities" compliance: $ref: "#/components/schemas/AgentCompliance" publisher_domains: type: array items: type: string property_summary: $ref: "#/components/schemas/PropertySummary" required: - url - name - type AgentHealth: type: object properties: online: type: boolean checked_at: type: string response_time_ms: type: number tools_count: type: integer resources_count: type: integer error: type: string required: - online - checked_at AgentStats: type: object properties: property_count: type: integer publisher_count: type: integer publishers: type: array items: type: string creative_formats: type: integer AgentCapabilities: type: object properties: tools_count: type: integer tools: type: array items: type: object properties: name: type: string description: type: string required: - name - description standard_operations: type: object properties: can_search_inventory: type: boolean can_get_availability: type: boolean can_reserve_inventory: type: boolean can_get_pricing: type: boolean can_create_order: type: boolean can_list_properties: type: boolean required: - can_search_inventory - can_get_availability - can_reserve_inventory - can_get_pricing - can_create_order - can_list_properties creative_capabilities: type: object properties: formats_supported: type: array items: type: string can_generate: type: boolean can_validate: type: boolean can_preview: type: boolean required: - formats_supported - can_generate - can_validate - can_preview required: - tools_count AgentCompliance: type: object properties: status: type: string enum: - passing - degraded - failing - unknown lifecycle_stage: type: string enum: - development - testing - production - deprecated tracks: type: object additionalProperties: type: string example: core: pass products: fail streak_days: type: integer last_checked_at: type: - string - "null" headline: type: - string - "null" monitoring_paused: type: boolean check_interval_hours: type: integer required: - status - lifecycle_stage - tracks - streak_days - last_checked_at - headline PropertySummary: type: object properties: total_count: type: integer count_by_type: type: object additionalProperties: type: integer tags: type: array items: type: string publisher_count: type: integer required: - total_count - count_by_type - tags - publisher_count FederatedPublisher: type: object properties: domain: type: string source: type: string enum: - registered - discovered member: type: object properties: slug: type: string display_name: type: string agent_count: type: integer last_validated: type: string discovered_from: type: object properties: agent_url: type: string has_valid_adagents: type: boolean discovered_at: type: string required: - domain DomainLookupResult: type: object properties: domain: type: string example: examplepub.com authorized_agents: type: array items: type: object properties: url: type: string authorized_for: type: string source: type: string enum: - registered - discovered member: type: object properties: slug: type: string display_name: type: string required: - url sales_agents_claiming: type: array items: type: object properties: url: type: string source: type: string enum: - registered - discovered member: type: object properties: slug: type: string display_name: type: string required: - url required: - domain - authorized_agents - sales_agents_claiming OperatorLookupResult: type: object properties: domain: type: string example: pubmatic.com member: type: - object - "null" properties: slug: type: string display_name: type: string agents: type: array items: type: object properties: url: type: string name: type: string type: type: string enum: - brand - rights - measurement - governance - creative - sales - buying - signals - unknown authorized_by: type: array items: type: object properties: publisher_domain: type: string authorized_for: type: string source: type: string enum: - adagents_json - agent_claim required: - publisher_domain - source required: - url - name - type - authorized_by required: - domain - member - agents PublisherLookupResult: type: object properties: domain: type: string example: voxmedia.com member: type: - object - "null" properties: slug: type: string display_name: type: string adagents_valid: type: - boolean - "null" properties: type: array items: type: object properties: id: type: string type: type: string name: type: string identifiers: type: array items: $ref: "#/components/schemas/PropertyIdentifier" tags: type: array items: type: string authorized_agents: type: array items: type: object properties: url: type: string authorized_for: type: string source: type: string enum: - adagents_json - agent_claim required: - url - source required: - domain - member - adagents_valid - properties - authorized_agents PublisherPropertySelector: type: object properties: publisher_domain: type: string example: examplepub.com property_types: type: array items: type: string property_ids: type: array items: type: string tags: type: array items: type: string PolicySummary: type: object properties: policy_id: type: string example: gdpr_consent version: type: string example: 1.0.0 name: type: string example: GDPR Consent Requirements description: type: - string - "null" example: Requirements for valid consent under GDPR category: type: string enum: - regulation - standard enforcement: type: string enum: - must - should - may jurisdictions: type: array items: type: string example: - EU - EEA region_aliases: type: object additionalProperties: type: array items: type: string example: EU: - DE - FR - IT policy_categories: type: array items: type: string example: - age_restricted - pharmaceutical_advertising channels: type: - array - "null" items: type: string example: - display - video governance_domains: type: array items: type: string example: - campaign - creative effective_date: type: - string - "null" example: 2025-05-25 sunset_date: type: - string - "null" source_url: type: - string - "null" example: https://eur-lex.europa.eu/eli/reg/2016/679/oj source_name: type: - string - "null" example: EUR-Lex source_type: type: string enum: - registry - community review_status: type: string enum: - pending - approved created_at: type: string example: 2026-03-01T12:00:00.000Z updated_at: type: string example: 2026-03-01T12:00:00.000Z required: - policy_id - version - name - description - category - enforcement - jurisdictions - region_aliases - policy_categories - channels - governance_domains - effective_date - sunset_date - source_url - source_name - source_type - review_status - created_at - updated_at Policy: type: object properties: policy_id: type: string example: gdpr_consent version: type: string example: 1.0.0 name: type: string example: GDPR Consent Requirements description: type: - string - "null" example: Requirements for valid consent under GDPR category: type: string enum: - regulation - standard enforcement: type: string enum: - must - should - may jurisdictions: type: array items: type: string example: - EU - EEA region_aliases: type: object additionalProperties: type: array items: type: string example: EU: - DE - FR - IT policy_categories: type: array items: type: string example: - age_restricted - pharmaceutical_advertising channels: type: - array - "null" items: type: string example: - display - video governance_domains: type: array items: type: string example: - campaign - creative effective_date: type: - string - "null" example: 2025-05-25 sunset_date: type: - string - "null" source_url: type: - string - "null" example: https://eur-lex.europa.eu/eli/reg/2016/679/oj source_name: type: - string - "null" example: EUR-Lex policy: type: string example: Data subjects must provide freely given, specific, informed and unambiguous consent... guidance: type: - string - "null" exemplars: type: - object - "null" properties: pass: type: array items: type: object properties: scenario: type: string example: Ad for alcohol shown during children's programming explanation: type: string example: Violates watershed timing rules for alcohol advertising required: - scenario - explanation fail: type: array items: type: object properties: scenario: type: string example: Ad for alcohol shown during children's programming explanation: type: string example: Violates watershed timing rules for alcohol advertising required: - scenario - explanation ext: type: - object - "null" additionalProperties: {} source_type: type: string enum: - registry - community review_status: type: string enum: - pending - approved created_at: type: string example: 2026-03-01T12:00:00.000Z updated_at: type: string example: 2026-03-01T12:00:00.000Z required: - policy_id - version - name - description - category - enforcement - jurisdictions - region_aliases - policy_categories - channels - governance_domains - effective_date - sunset_date - source_url - source_name - policy - guidance - exemplars - ext - source_type - review_status - created_at - updated_at PolicyHistory: type: object properties: policy_id: type: string example: gdpr_consent total: type: integer example: 3 revisions: type: array items: type: object properties: revision_number: type: integer example: 2 editor_name: type: string example: Pinnacle Media edit_summary: type: string example: Clarified consent requirements for minors is_rollback: type: boolean rolled_back_to: type: integer description: Revision number that was restored; only present when is_rollback is true created_at: type: string example: 2026-03-01T12:34:56Z required: - revision_number - editor_name - edit_summary - is_rollback - created_at required: - policy_id - total - revisions AgentComplianceDetail: type: object properties: agent_url: type: string status: type: string enum: - passing - degraded - failing - unknown - opted_out lifecycle_stage: type: string enum: - development - testing - production - deprecated compliance_opt_out: type: boolean tracks: type: object additionalProperties: type: string streak_days: type: integer last_checked_at: type: - string - "null" last_passed_at: type: - string - "null" last_failed_at: type: - string - "null" headline: type: - string - "null" status_changed_at: type: - string - "null" storyboards_passing: type: integer storyboards_total: type: integer required: - agent_url - status - lifecycle_stage StoryboardStatus: type: object properties: storyboard_id: type: string title: type: string category: type: - string - "null" track: type: - string - "null" status: type: string enum: - passing - failing - partial - untested steps_passed: type: integer steps_total: type: integer last_tested_at: type: - string - "null" last_passed_at: type: - string - "null" required: - storyboard_id - title - category - track - status - steps_passed - steps_total - last_tested_at - last_passed_at ComplianceRun: type: object properties: id: type: string overall_status: type: string headline: type: - string - "null" tracks_passed: type: integer tracks_failed: type: integer tracks_skipped: type: integer tracks_partial: type: integer tracks_json: {} total_duration_ms: type: - number - "null" triggered_by: type: string tested_at: type: string required: - id - overall_status - headline - tracks_passed - tracks_failed - tracks_skipped - tracks_partial - total_duration_ms - triggered_by - tested_at RegistryMetadata: type: object properties: agent_url: type: string lifecycle_stage: type: string enum: - development - testing - production - deprecated compliance_opt_out: type: boolean monitoring_paused: type: boolean check_interval_hours: type: integer monitoring_paused_at: type: - string - "null" created_at: type: string updated_at: type: string required: - agent_url - lifecycle_stage - compliance_opt_out - monitoring_paused - check_interval_hours - monitoring_paused_at - created_at - updated_at MonitoringSettings: type: object properties: monitoring_paused: type: boolean check_interval_hours: type: integer monitoring_paused_at: type: - string - "null" required: - monitoring_paused - check_interval_hours - monitoring_paused_at OutboundRequest: type: object properties: id: type: string agent_url: type: string request_type: type: string user_agent: type: string response_time_ms: type: - number - "null" success: type: boolean error_message: type: - string - "null" created_at: type: string required: - id - agent_url - request_type - user_agent - response_time_ms - success - error_message - created_at AgentAuthStatus: type: object properties: has_auth: type: boolean agent_context_id: type: - string - "null" auth_type: type: - string - "null" enum: - bearer - basic - oauth - oauth_client_credentials - null has_oauth_token: type: boolean has_valid_oauth: type: boolean oauth_token_expires_at: type: - string - "null" has_oauth_client_credentials: type: boolean required: - has_auth - agent_context_id - auth_type - has_oauth_token - has_valid_oauth - oauth_token_expires_at - has_oauth_client_credentials CredentialSaveValidationError: type: object properties: error: type: string code: type: string enum: - invalid_blob_shape - missing_field - invalid_field_type - field_too_long - invalid_url - invalid_env_reference - invalid_auth_method_value description: Stable rejection tag. UI maps this to operator-friendly prose. field: type: string enum: - oauth_client_credentials - token_endpoint - client_id - client_secret - scope - resource - audience - auth_method description: Field the UI should scroll to + highlight. required: - error - code - field StoryboardSummary: type: object properties: id: type: string title: type: string category: type: string summary: type: string interaction_model: type: string examples: type: array items: type: string phase_count: type: integer step_count: type: integer required: - id - title - category - summary - interaction_model - examples - phase_count - step_count StoryboardDetail: type: object properties: id: type: string title: type: string category: type: string summary: type: string agent: type: object properties: interaction_model: type: string examples: type: array items: type: string required: - interaction_model phases: type: array items: type: object properties: title: type: string steps: type: array items: type: object properties: id: type: string title: type: string description: type: string expected_output: type: string required: - id - title - description - expected_output required: - title - steps prerequisites: {} required_tools: type: array items: type: string track: type: string required: - id - title - category - summary - agent - phases FindCompanyResult: type: object properties: results: type: array items: $ref: "#/components/schemas/CompanySearchResult" required: - results CompanySearchResult: type: object properties: domain: type: string example: coca-cola.com canonical_domain: type: string example: coca-cola.com brand_name: type: string example: The Coca-Cola Company house_domain: type: string example: coca-cola.com keller_type: type: string enum: - master - sub_brand - endorsed - independent parent_brand: type: string brand_agent_url: type: string source: type: string example: community required: - domain - canonical_domain - brand_name - source paths: /api: get: operationId: apiDiscovery summary: API discovery description: Returns links to the main API entry points and documentation. tags: - Search responses: "200": description: API discovery information content: application/json: schema: type: object properties: name: type: string version: type: string documentation: type: string openapi: type: string endpoints: type: object additionalProperties: type: string required: - name - version - documentation - openapi - endpoints /api/brands/resolve: get: operationId: resolveBrand summary: Resolve brand description: Resolve a domain to its canonical brand identity. Follows brand.json redirects and returns the resolved brand with its house, architecture type, and optional manifest. tags: - Brand Resolution parameters: - schema: type: string example: acmecorp.com required: true name: domain in: query - schema: type: string enum: - "true" - "false" required: false name: fresh in: query responses: "200": description: Brand resolved successfully content: application/json: schema: $ref: "#/components/schemas/ResolvedBrand" "404": description: Brand not found content: application/json: schema: type: object properties: error: type: string domain: type: string file_status: type: number description: HTTP status code from brand.json fetch (e.g. 404 vs 200 with invalid data) required: - error - domain /api/brands/resolve/bulk: post: operationId: resolveBrandsBulk summary: Bulk resolve brands description: |- Resolve up to 100 domains to their canonical brand identities in a single request. **Rate limit:** 20 requests per minute per IP address. tags: - Brand Resolution requestBody: content: application/json: schema: type: object properties: domains: type: array items: type: string maxItems: 100 required: - domains responses: "200": description: Bulk resolution results content: application/json: schema: type: object properties: results: type: object additionalProperties: allOf: - $ref: "#/components/schemas/ResolvedBrand" - type: - object - "null" required: - results "429": description: Rate limit exceeded content: application/json: schema: $ref: "#/components/schemas/Error" /api/brands/brand-json: get: operationId: getBrandJson summary: Get brand.json description: Fetch the raw brand.json file for a domain. tags: - Brand Resolution parameters: - schema: type: string example: acmecorp.com required: true name: domain in: query - schema: type: string enum: - "true" - "false" required: false name: fresh in: query responses: "200": description: Raw brand.json data content: application/json: schema: type: object properties: domain: type: string url: type: string variant: type: string data: type: object additionalProperties: {} warnings: type: array items: type: string required: - domain - url - data "404": description: Brand not found content: application/json: schema: $ref: "#/components/schemas/Error" /api/brands/save: post: operationId: saveBrand summary: Save brand description: Save or update a brand in the registry. Requires authentication. For existing brands, creates a revision-tracked edit. For new brands, creates the brand directly. Cannot edit authoritative brands managed via brand.json. tags: - Brand Resolution security: - bearerAuth: [] - oauth2: [] requestBody: content: application/json: schema: type: object properties: domain: type: string example: acmecorp.com brand_name: type: string example: Acme Corp brand_manifest: type: object additionalProperties: {} required: - domain - brand_name responses: "200": description: Brand saved or updated content: application/json: schema: type: object properties: success: type: boolean enum: - true message: type: string domain: type: string id: type: string revision_number: type: integer required: - success - message - domain - id "400": description: Missing required fields or invalid domain content: application/json: schema: $ref: "#/components/schemas/Error" "401": description: Authentication required content: application/json: schema: $ref: "#/components/schemas/Error" "409": description: Cannot edit authoritative brand content: application/json: schema: $ref: "#/components/schemas/Error" "429": description: Rate limit exceeded content: application/json: schema: $ref: "#/components/schemas/Error" /api/brands/registry: get: operationId: listBrands summary: List brands description: List all brands in the registry with optional search, pagination. tags: - Brand Resolution parameters: - schema: type: string required: false name: search in: query - schema: type: integer example: 100 required: false name: limit in: query - schema: type: integer example: 0 required: false name: offset in: query responses: "200": description: Brand list with stats content: application/json: schema: type: object properties: brands: type: array items: $ref: "#/components/schemas/BrandRegistryItem" stats: type: object properties: total: type: integer brand_json: type: integer community: type: integer enriched: type: integer required: - total - brand_json - community - enriched required: - brands - stats /api/brands/history: get: operationId: getBrandHistory summary: Brand activity history description: Returns the edit history for a brand in the registry, newest first. Only brands with community or enriched edits have history; brand.json-sourced brands are authoritative and do not generate revisions. tags: - Brand Resolution parameters: - schema: type: string example: acmecorp.com required: true name: domain in: query - schema: type: integer example: 20 required: false name: limit in: query - schema: type: integer example: 0 required: false name: offset in: query responses: "200": description: Brand activity history content: application/json: schema: $ref: "#/components/schemas/BrandActivity" "400": description: domain parameter required content: application/json: schema: $ref: "#/components/schemas/Error" "404": description: Brand not found content: application/json: schema: type: object properties: error: type: string domain: type: string required: - error - domain /api/brands/enrich: get: operationId: enrichBrand summary: Enrich brand description: Enrich brand data using Brandfetch. Returns logo, colors, and company information. tags: - Brand Resolution parameters: - schema: type: string example: acmecorp.com required: true name: domain in: query responses: "200": description: Enrichment data from Brandfetch content: application/json: schema: type: object properties: {} additionalProperties: {} "503": description: Brandfetch not configured content: application/json: schema: $ref: "#/components/schemas/Error" /api/properties/history: get: operationId: getPropertyHistory summary: Property activity history description: Returns the edit history for a property in the registry, newest first. tags: - Property Resolution parameters: - schema: type: string example: examplepub.com required: true name: domain in: query - schema: type: integer example: 20 required: false name: limit in: query - schema: type: integer example: 0 required: false name: offset in: query responses: "200": description: Property activity history content: application/json: schema: $ref: "#/components/schemas/PropertyActivity" "400": description: domain parameter required content: application/json: schema: $ref: "#/components/schemas/Error" "404": description: Property not found content: application/json: schema: type: object properties: error: type: string domain: type: string required: - error - domain /api/properties/resolve: get: operationId: resolveProperty summary: Resolve property description: Resolve a publisher domain to its property information. Checks hosted properties, discovered properties, then live adagents.json validation. tags: - Property Resolution parameters: - schema: type: string example: examplepub.com required: true name: domain in: query responses: "200": description: Property resolved content: application/json: schema: $ref: "#/components/schemas/ResolvedProperty" "404": description: Property not found content: application/json: schema: type: object properties: error: type: string domain: type: string required: - error - domain /api/properties/resolve/bulk: post: operationId: resolvePropertiesBulk summary: Bulk resolve properties description: |- Resolve up to 100 publisher domains at once. **Rate limit:** 20 requests per minute per IP address. tags: - Property Resolution requestBody: content: application/json: schema: type: object properties: domains: type: array items: type: string maxItems: 100 required: - domains responses: "200": description: Bulk resolution results content: application/json: schema: type: object properties: results: type: object additionalProperties: allOf: - $ref: "#/components/schemas/ResolvedProperty" - type: - object - "null" required: - results "429": description: Rate limit exceeded content: application/json: schema: $ref: "#/components/schemas/Error" /api/properties/registry: get: operationId: listProperties summary: List properties description: List all properties in the registry with optional search, pagination. tags: - Property Resolution parameters: - schema: type: string required: false name: search in: query - schema: type: integer example: 100 required: false name: limit in: query - schema: type: integer example: 0 required: false name: offset in: query responses: "200": description: Property list with stats content: application/json: schema: type: object properties: properties: type: array items: $ref: "#/components/schemas/PropertyRegistryItem" stats: type: object additionalProperties: {} required: - properties - stats /api/properties/validate: get: operationId: validateProperty summary: Validate adagents.json description: Validate a domain's adagents.json file and return the validation result. tags: - Property Resolution parameters: - schema: type: string example: examplepub.com required: true name: domain in: query responses: "200": description: Validation result content: application/json: schema: $ref: "#/components/schemas/ValidationResult" /api/properties/save: post: operationId: saveProperty summary: Save property description: Save or update a hosted property in the registry. Requires authentication. For existing properties, creates a revision-tracked edit. For new properties, creates the property directly. Cannot edit authoritative properties managed via adagents.json. tags: - Property Resolution security: - bearerAuth: [] - oauth2: [] requestBody: content: application/json: schema: type: object properties: publisher_domain: type: string example: examplepub.com authorized_agents: type: array items: type: object properties: url: type: string authorized_for: type: string required: - url example: - url: https://agent.example.com properties: type: array items: type: object properties: type: type: string name: type: string required: - type - name example: - type: website name: Example Publisher contact: type: object properties: name: type: string email: type: string required: - publisher_domain - authorized_agents responses: "200": description: Property saved or updated content: application/json: schema: type: object properties: success: type: boolean enum: - true message: type: string id: type: string revision_number: type: integer required: - success - message - id "400": description: Missing required fields or invalid domain content: application/json: schema: $ref: "#/components/schemas/Error" "401": description: Authentication required content: application/json: schema: $ref: "#/components/schemas/Error" "409": description: Cannot edit authoritative property content: application/json: schema: $ref: "#/components/schemas/Error" "429": description: Rate limit exceeded content: application/json: schema: $ref: "#/components/schemas/Error" /api/properties/check: post: operationId: checkPropertyList summary: Check property list description: |- Check a list of publisher domains against the AAO registry. Normalizes domains (strips www/m prefixes), removes duplicates, flags known ad tech infrastructure, and identifies domains not yet in the registry. Returns four buckets: - **remove**: duplicates or known blocked domains (ad servers, CDNs, trackers, intermediaries) - **modify**: domains that were normalized (e.g. www.example.com → example.com) - **assess**: unknown domains not in registry, not blocked - **ok**: domains found in registry with no changes needed Results are stored for 7 days and retrievable via the `report_id`. tags: - Property Resolution requestBody: content: application/json: schema: type: object properties: domains: type: array items: type: string maxItems: 10000 example: - www.nytimes.com - googlesyndication.com - wsj.com required: - domains responses: "200": description: Property list check results content: application/json: schema: type: object properties: summary: type: object properties: total: type: integer remove: type: integer modify: type: integer assess: type: integer ok: type: integer required: - total - remove - modify - assess - ok remove: type: array items: type: object properties: input: type: string canonical: type: string reason: type: string enum: - duplicate - blocked domain_type: type: string blocked_reason: type: string required: - input - canonical - reason modify: type: array items: type: object properties: input: type: string canonical: type: string reason: type: string required: - input - canonical - reason assess: type: array items: type: object properties: domain: type: string required: - domain ok: type: array items: type: object properties: domain: type: string source: type: string required: - domain - source report_id: type: string description: UUID for retrieving this report later required: - summary - remove - modify - assess - ok - report_id "400": description: Invalid request content: application/json: schema: $ref: "#/components/schemas/Error" /api/properties/check/{reportId}: get: operationId: getPropertyCheckReport summary: Get property check report description: Retrieve a previously stored property check report by ID. Reports expire after 7 days. tags: - Property Resolution parameters: - schema: type: string required: true name: reportId in: path responses: "200": description: Property check report content: application/json: schema: type: object properties: summary: type: object properties: total: type: integer remove: type: integer modify: type: integer assess: type: integer ok: type: integer required: - total - remove - modify - assess - ok required: - summary "404": description: Report not found or expired content: application/json: schema: $ref: "#/components/schemas/Error" /api/registry/agents: get: operationId: listAgents summary: List agents description: List all registered and discovered agents. Optionally enrich with health checks, capabilities, and property summaries via query parameters. tags: - Agent Discovery parameters: - schema: type: string enum: - brand - rights - measurement - governance - creative - sales - buying - signals - unknown required: false name: type in: query - schema: type: string enum: - "true" required: false name: health in: query - schema: type: string enum: - "true" required: false name: capabilities in: query - schema: type: string enum: - "true" required: false name: properties in: query - schema: type: string enum: - "true" required: false name: compliance in: query responses: "200": description: Agent list content: application/json: schema: type: object properties: agents: type: array items: $ref: "#/components/schemas/FederatedAgentWithDetails" count: type: integer sources: type: object properties: registered: type: integer discovered: type: integer required: - registered - discovered required: - agents - count - sources /api/registry/publishers: get: operationId: listPublishers summary: List publishers description: List all registered and discovered publishers. tags: - Agent Discovery responses: "200": description: Publisher list content: application/json: schema: type: object properties: publishers: type: array items: $ref: "#/components/schemas/FederatedPublisher" count: type: integer sources: type: object properties: registered: type: integer discovered: type: integer required: - registered - discovered required: - publishers - count - sources /api/registry/stats: get: operationId: getRegistryStats summary: Registry statistics description: Get aggregate statistics about the registry. tags: - Agent Discovery responses: "200": description: Registry statistics content: application/json: schema: type: object properties: {} additionalProperties: {} /api/registry/lookup/domain/{domain}: get: operationId: lookupDomain summary: Domain lookup description: Find all agents authorized for a given publisher domain. tags: - Lookups & Authorization parameters: - schema: type: string example: examplepub.com required: true name: domain in: path responses: "200": description: Domain lookup result content: application/json: schema: $ref: "#/components/schemas/DomainLookupResult" /api/registry/lookup/property: get: operationId: lookupProperty summary: Property identifier lookup description: Find agents that hold a specific property identifier. tags: - Lookups & Authorization parameters: - schema: type: string required: true name: type in: query - schema: type: string required: true name: value in: query responses: "200": description: Matching agents content: application/json: schema: type: object properties: type: type: string value: type: string agents: type: array items: {} count: type: integer required: - type - value - agents - count /api/registry/lookup/agent/{agentUrl}/domains: get: operationId: getAgentDomains summary: Agent domain lookup description: Get all publisher domains associated with an agent. tags: - Lookups & Authorization parameters: - schema: type: string required: true name: agentUrl in: path responses: "200": description: Domains for the agent content: application/json: schema: type: object properties: agent_url: type: string domains: type: array items: type: string count: type: integer required: - agent_url - domains - count /api/registry/operator: get: operationId: lookupOperator summary: Operator lookup description: Given a domain, returns the agents this entity operates and which publishers trust them. tags: - Lookups & Authorization parameters: - schema: type: string example: pubmatic.com required: true name: domain in: query responses: "200": description: Operator lookup result content: application/json: schema: $ref: "#/components/schemas/OperatorLookupResult" "400": description: Missing domain content: application/json: schema: $ref: "#/components/schemas/Error" /api/registry/publisher: get: operationId: lookupPublisher summary: Publisher lookup description: Given a domain, returns the inventory this entity publishes and which agents it authorizes. tags: - Lookups & Authorization parameters: - schema: type: string example: voxmedia.com required: true name: domain in: query responses: "200": description: Publisher lookup result content: application/json: schema: $ref: "#/components/schemas/PublisherLookupResult" "400": description: Missing domain content: application/json: schema: $ref: "#/components/schemas/Error" /api/registry/validate/product-authorization: post: operationId: validateProductAuthorization summary: Validate product authorization description: Check whether an agent is authorized to sell a product based on its publisher_properties. tags: - Lookups & Authorization requestBody: content: application/json: schema: type: object properties: agent_url: type: string publisher_properties: type: array items: $ref: "#/components/schemas/PublisherPropertySelector" required: - agent_url - publisher_properties responses: "200": description: Authorization validation result content: application/json: schema: type: object properties: agent_url: type: string authorized: type: boolean checked_at: type: string required: - agent_url - authorized - checked_at additionalProperties: {} /api/registry/expand/product-identifiers: post: operationId: expandProductIdentifiers summary: Expand product identifiers description: Expand publisher_properties selectors into concrete property identifiers for caching. tags: - Lookups & Authorization requestBody: content: application/json: schema: type: object properties: agent_url: type: string publisher_properties: type: array items: $ref: "#/components/schemas/PublisherPropertySelector" required: - agent_url - publisher_properties responses: "200": description: Expanded identifiers content: application/json: schema: type: object properties: agent_url: type: string properties: type: array items: {} identifiers: type: array items: type: object properties: type: type: string value: type: string property_id: type: string publisher_domain: type: string required: - type - value - property_id - publisher_domain property_count: type: integer identifier_count: type: integer generated_at: type: string required: - agent_url - properties - identifiers - property_count - identifier_count - generated_at /api/registry/validate/property-authorization: get: operationId: validatePropertyAuthorization summary: Property authorization check description: Quick check if a property identifier is authorized for an agent. Optimized for real-time ad request validation. tags: - Lookups & Authorization parameters: - schema: type: string required: true name: agent_url in: query - schema: type: string required: true name: identifier_type in: query - schema: type: string required: true name: identifier_value in: query responses: "200": description: Authorization result content: application/json: schema: type: object properties: agent_url: type: string identifier_type: type: string identifier_value: type: string authorized: type: boolean checked_at: type: string required: - agent_url - identifier_type - identifier_value - authorized - checked_at additionalProperties: {} /api/adagents/validate: post: operationId: validateAdagents summary: Validate adagents.json description: Validate a domain's adagents.json file and optionally validate referenced agent cards. tags: - Validation Tools requestBody: content: application/json: schema: type: object properties: domain: type: string required: - domain responses: "200": description: Validation result content: application/json: schema: type: object properties: success: type: boolean data: type: object properties: domain: type: string found: type: boolean validation: {} agent_cards: {} required: - domain - found timestamp: type: string required: - success - data - timestamp /api/adagents/create: post: operationId: createAdagents summary: Generate adagents.json description: Generate a valid adagents.json file from a list of authorized agents. tags: - Validation Tools requestBody: content: application/json: schema: type: object properties: authorized_agents: type: array items: type: object properties: url: type: string authorized_for: type: string required: - url include_schema: type: boolean include_timestamp: type: boolean properties: type: array items: {} required: - authorized_agents responses: "200": description: Generated adagents.json content: application/json: schema: type: object properties: success: type: boolean data: type: object properties: success: type: boolean adagents_json: {} validation: {} required: - success timestamp: type: string required: - success - data - timestamp /api/search: get: operationId: search summary: Search description: Search across brands, publishers, and properties. Returns up to 5 results per category. tags: - Search parameters: - schema: type: string minLength: 2 required: true name: q in: query responses: "200": description: Search results content: application/json: schema: type: object properties: brands: type: array items: {} publishers: type: array items: {} properties: type: array items: {} required: - brands - publishers - properties /api/manifest-refs/lookup: get: operationId: lookupManifestRef summary: Manifest reference lookup description: Find the best manifest reference (brand.json URL or agent) for a domain. tags: - Search parameters: - schema: type: string example: acmecorp.com required: true name: domain in: query - schema: type: string example: brand.json required: false name: type in: query responses: "200": description: Reference lookup result content: application/json: schema: oneOf: - type: object properties: success: type: boolean enum: - true found: type: boolean enum: - true reference: type: object properties: reference_type: type: string enum: - url - agent manifest_url: type: - string - "null" agent_url: type: - string - "null" agent_id: type: - string - "null" verification_status: type: string enum: - pending - valid - invalid - unreachable required: - reference_type - manifest_url - agent_url - agent_id - verification_status required: - success - found - reference - type: object properties: success: type: boolean enum: - false found: type: boolean enum: - false required: - success - found /api/public/discover-agent: get: operationId: discoverAgent summary: Discover agent description: Probe an agent URL to discover its name, type, supported protocols, and basic statistics. tags: - Agent Probing parameters: - schema: type: string required: true name: url in: query responses: "200": description: Discovered agent info content: application/json: schema: type: object properties: name: type: string description: type: string protocols: type: array items: type: string type: type: string stats: type: object properties: format_count: type: integer product_count: type: integer publisher_count: type: integer required: - name - protocols - type - stats "504": description: Connection timeout content: application/json: schema: type: object properties: error: type: string message: type: string required: - error - message /api/public/agent-formats: get: operationId: getAgentFormats summary: Get agent formats description: Fetch creative formats from a creative agent. tags: - Agent Probing parameters: - schema: type: string required: true name: url in: query responses: "200": description: Creative formats content: application/json: schema: type: object properties: success: type: boolean formats: type: array items: {} required: - success - formats /api/public/agent-products: get: operationId: getAgentProducts summary: Get agent products description: Fetch products from a sales agent. tags: - Agent Probing parameters: - schema: type: string required: true name: url in: query responses: "200": description: Products content: application/json: schema: type: object properties: success: type: boolean products: type: array items: {} required: - success - products /api/public/validate-publisher: get: operationId: validatePublisher summary: Validate publisher description: Validate a publisher domain's adagents.json and return summary statistics. tags: - Agent Probing parameters: - schema: type: string example: examplepub.com required: true name: domain in: query responses: "200": description: Publisher validation result content: application/json: schema: type: object properties: valid: type: boolean domain: type: string url: type: string agent_count: type: integer property_count: type: integer property_type_counts: type: object additionalProperties: type: integer tag_count: type: integer errors: type: array items: type: string warnings: type: array items: type: string required: - valid - domain - agent_count - property_count - property_type_counts - tag_count /api/policies/registry: get: operationId: listPolicies summary: List policies description: Browse and search the governance policy registry. Returns approved policies with optional filtering by category, enforcement level, jurisdiction, policy category, and governance domain. tags: - Policy Registry parameters: - schema: type: string description: Full-text search on policy name and description required: false description: Full-text search on policy name and description name: search in: query - schema: type: string enum: - regulation - standard required: false name: category in: query - schema: type: string enum: - must - should - may required: false name: enforcement in: query - schema: type: string example: EU description: Filter by jurisdiction (includes region alias matching) required: false description: Filter by jurisdiction (includes region alias matching) name: jurisdiction in: query - schema: type: string example: age_restricted required: false name: policy_category in: query - schema: type: string example: campaign description: Filter by governance domain required: false description: Filter by governance domain name: domain in: query - schema: type: integer description: Results per page (default 20, max 1000) required: false description: Results per page (default 20, max 1000) name: limit in: query - schema: type: integer description: Pagination offset (default 0) required: false description: Pagination offset (default 0) name: offset in: query responses: "200": description: Policy listing with facet stats content: application/json: schema: type: object properties: policies: type: array items: $ref: "#/components/schemas/PolicySummary" stats: type: object properties: total: type: integer regulation: type: integer standard: type: integer required: - total - regulation - standard required: - policies - stats /api/policies/resolve: get: operationId: resolvePolicy summary: Resolve policy description: Resolve a single policy by ID. Optionally pin to a specific version — returns null if the version does not match. tags: - Policy Registry parameters: - schema: type: string example: gdpr_consent required: true name: policy_id in: query - schema: type: string description: Return null if the current version does not match required: false description: Return null if the current version does not match name: version in: query responses: "200": description: Policy resolved content: application/json: schema: $ref: "#/components/schemas/Policy" "400": description: Missing policy_id content: application/json: schema: $ref: "#/components/schemas/Error" "404": description: Policy not found content: application/json: schema: type: object properties: error: type: string policy_id: type: string required: - error - policy_id /api/policies/resolve/bulk: post: operationId: resolvePoliciesBulk summary: Bulk resolve policies description: |- Resolve up to 100 policies by ID in a single request. Returns a map of policy_id to Policy (or null if not found). **Rate limit:** 20 requests per minute per IP address. tags: - Policy Registry requestBody: content: application/json: schema: type: object properties: policy_ids: type: array items: type: string minItems: 1 maxItems: 100 example: - gdpr_consent - coppa_children required: - policy_ids responses: "200": description: Bulk resolution results content: application/json: schema: type: object properties: results: type: object additionalProperties: allOf: - $ref: "#/components/schemas/Policy" - type: - object - "null" required: - results "400": description: Invalid request content: application/json: schema: $ref: "#/components/schemas/Error" "429": description: Rate limit exceeded content: application/json: schema: $ref: "#/components/schemas/Error" /api/policies/history: get: operationId: getPolicyHistory summary: Policy revision history description: Retrieve the edit history for a policy. Each revision records who made the change, a summary, and whether it was a rollback. tags: - Policy Registry parameters: - schema: type: string example: gdpr_consent required: true name: policy_id in: query - schema: type: integer description: Results per page (max 100, default 20) required: false description: Results per page (max 100, default 20) name: limit in: query - schema: type: integer description: Pagination offset (default 0) required: false description: Pagination offset (default 0) name: offset in: query responses: "200": description: Revision history content: application/json: schema: $ref: "#/components/schemas/PolicyHistory" "400": description: Missing policy_id content: application/json: schema: $ref: "#/components/schemas/Error" "404": description: Policy not found content: application/json: schema: type: object properties: error: type: string policy_id: type: string required: - error - policy_id /api/policies/save: post: operationId: savePolicy summary: Save policy description: Create or update a community-contributed policy. Requires authentication. Registry-sourced and pending-review policies cannot be edited (returns 409). Updates automatically create a revision record. tags: - Policy Registry security: - bearerAuth: [] - oauth2: [] requestBody: content: application/json: schema: type: object properties: policy_id: type: string example: my_brand_safety description: Lowercase alphanumeric with underscores version: type: string example: 1.0.0 name: type: string example: Acme Corp Brand Safety category: type: string enum: - regulation - standard enforcement: type: string enum: - must - should - may policy: type: string example: Ads must not appear adjacent to content depicting violence... description: type: string jurisdictions: type: array items: type: string region_aliases: type: object additionalProperties: type: array items: type: string policy_categories: type: array items: type: string channels: type: array items: type: string effective_date: type: string sunset_date: type: string governance_domains: type: array items: type: string source_url: type: string description: Must use http:// or https:// source_name: type: string guidance: type: string exemplars: type: object properties: pass: type: array items: type: object properties: scenario: type: string explanation: type: string required: - scenario - explanation fail: type: array items: type: object properties: scenario: type: string explanation: type: string required: - scenario - explanation ext: type: object additionalProperties: {} required: - policy_id - version - name - category - enforcement - policy responses: "200": description: Policy saved content: application/json: schema: type: object properties: success: type: boolean enum: - true message: type: string policy_id: type: string revision_number: type: - integer - "null" required: - success - message - policy_id - revision_number "400": description: Validation error content: application/json: schema: $ref: "#/components/schemas/Error" "401": description: Authentication required content: application/json: schema: $ref: "#/components/schemas/Error" "409": description: Cannot edit registry-sourced or pending policy content: application/json: schema: type: object properties: error: type: string policy_id: type: string required: - error - policy_id "429": description: Rate limit exceeded content: application/json: schema: $ref: "#/components/schemas/Error" /api/registry/feed: get: operationId: getRegistryFeed summary: Registry change feed description: |- Poll a cursor-based feed of registry changes. Events are ordered by UUID v7 event_id for monotonic cursor progression. The feed retains events for 90 days. Type filtering supports glob patterns: `property.*` matches `property.created`, `property.updated`, etc. tags: - Change Feed security: - bearerAuth: [] - oauth2: [] parameters: - schema: type: string format: uuid description: Resume after this event ID required: false description: Resume after this event ID name: cursor in: query - schema: type: string description: Comma-separated event type filters with glob support (e.g. property.*) example: property.*,agent.* required: false description: Comma-separated event type filters with glob support (e.g. property.*) name: types in: query - schema: type: integer minimum: 1 maximum: 10000 description: Max events per page (default 100, max 10,000) required: false description: Max events per page (default 100, max 10,000) name: limit in: query responses: "200": description: Feed page content: application/json: schema: type: object properties: events: type: array items: type: object properties: event_id: type: string format: uuid event_type: type: string example: property.created entity_type: type: string example: property entity_id: type: string payload: type: object additionalProperties: {} actor: type: string created_at: type: string format: date-time required: - event_id - event_type - entity_type - entity_id - payload - actor - created_at cursor: type: - string - "null" format: uuid description: Pass as cursor in the next request to continue polling has_more: type: boolean required: - events - cursor - has_more "400": description: Invalid cursor format or type filter content: application/json: schema: $ref: "#/components/schemas/Error" "401": description: Authentication required content: application/json: schema: $ref: "#/components/schemas/Error" "410": description: Cursor expired (older than 90-day retention window) content: application/json: schema: type: object properties: error: type: string enum: - cursor_expired message: type: string required: - error - message /api/registry/agents/search: get: operationId: searchAgentProfiles summary: Search agent inventory profiles description: Search agents by inventory profile — channels, markets, content categories, property types, and more. Filters use AND across dimensions and OR within a dimension. Results are ranked by relevance score. tags: - Agent Discovery security: - bearerAuth: [] - oauth2: [] parameters: - schema: type: string description: Comma-separated channel filter example: ctv,olv required: false description: Comma-separated channel filter name: channels in: query - schema: type: string description: Comma-separated property type filter example: ctv_app,website required: false description: Comma-separated property type filter name: property_types in: query - schema: type: string description: Comma-separated market/country code filter example: US,GB required: false description: Comma-separated market/country code filter name: markets in: query - schema: type: string description: Comma-separated IAB content category filter example: IAB-7,IAB-7-1 required: false description: Comma-separated IAB content category filter name: categories in: query - schema: type: string description: Comma-separated tag filter example: premium required: false description: Comma-separated tag filter name: tags in: query - schema: type: string description: Comma-separated delivery type filter example: guaranteed,programmatic required: false description: Comma-separated delivery type filter name: delivery_types in: query - schema: type: string enum: - "true" - "false" description: Require TMP support required: false description: Require TMP support name: has_tmp in: query - schema: type: - integer - "null" minimum: 0 description: Minimum number of properties in inventory required: false description: Minimum number of properties in inventory name: min_properties in: query - schema: type: string description: Pagination cursor from a previous response required: false description: Pagination cursor from a previous response name: cursor in: query - schema: type: integer minimum: 1 maximum: 200 description: Max results per page (default 50, max 200) required: false description: Max results per page (default 50, max 200) name: limit in: query responses: "200": description: Search results ranked by relevance content: application/json: schema: type: object properties: results: type: array items: type: object properties: agent_url: type: string format: uri channels: type: array items: type: string property_types: type: array items: type: string markets: type: array items: type: string categories: type: array items: type: string tags: type: array items: type: string delivery_types: type: array items: type: string format_ids: type: array items: {} description: Creative format identifiers supported by this agent property_count: type: integer publisher_count: type: integer has_tmp: type: boolean category_taxonomy: type: - string - "null" relevance_score: type: number matched_filters: type: array items: type: string updated_at: type: string format: date-time required: - agent_url - channels - property_types - markets - categories - tags - delivery_types - format_ids - property_count - publisher_count - has_tmp - category_taxonomy - relevance_score - matched_filters - updated_at cursor: type: - string - "null" has_more: type: boolean required: - results - cursor - has_more "400": description: Invalid cursor or parameter content: application/json: schema: $ref: "#/components/schemas/Error" "401": description: Authentication required content: application/json: schema: $ref: "#/components/schemas/Error" /api/registry/crawl-request: post: operationId: requestCrawl summary: Request domain re-crawl description: |- Trigger an immediate re-crawl of a publisher domain after updating adagents.json. The crawl runs asynchronously — returns 202 immediately. **Rate limits:** 5 minutes per domain, 30 requests per user per hour. tags: - Agent Discovery security: - bearerAuth: [] - oauth2: [] requestBody: content: application/json: schema: type: object properties: domain: type: string example: examplepub.com description: Publisher domain to re-crawl required: - domain responses: "202": description: Crawl request accepted content: application/json: schema: type: object properties: message: type: string enum: - Crawl request accepted domain: type: string required: - message - domain "400": description: Invalid domain format, private IP, or unresolvable domain content: application/json: schema: $ref: "#/components/schemas/Error" "401": description: Authentication required content: application/json: schema: $ref: "#/components/schemas/Error" "429": description: Rate limit exceeded content: application/json: schema: type: object properties: error: type: string retry_after: type: integer description: Seconds to wait before retrying required: - error - retry_after /api/registry/brand-crawl-request: post: operationId: requestBrandCrawl summary: Request brand.json re-crawl description: |- Trigger an immediate re-crawl of a domain's brand.json. The crawl runs asynchronously — returns 202 immediately. **Rate limits:** 5 minutes per domain, 30 requests per user per hour (shared with adagents.json crawl requests). tags: - Brand Discovery security: - bearerAuth: [] - oauth2: [] requestBody: content: application/json: schema: type: object properties: domain: type: string example: examplebrand.com description: Domain to re-crawl brand.json for required: - domain responses: "202": description: Brand crawl request accepted content: application/json: schema: type: object properties: message: type: string enum: - Brand crawl request accepted domain: type: string required: - message - domain "400": description: Invalid domain format, private IP, or unresolvable domain content: application/json: schema: $ref: "#/components/schemas/Error" "401": description: Authentication required content: application/json: schema: $ref: "#/components/schemas/Error" "429": description: Rate limit exceeded content: application/json: schema: type: object properties: error: type: string retry_after: type: integer description: Seconds to wait before retrying required: - error - retry_after /api/registry/agents/{encodedUrl}/compliance: get: operationId: getAgentCompliance summary: Get agent compliance detail description: |- Returns detailed compliance status for a single agent, including track-level results, storyboard counts, and timestamps. If the agent has opted out of compliance monitoring, returns a minimal response with `status: opted_out`. tags: - Agent Compliance parameters: - schema: type: string description: URL-encoded agent URL example: https%3A%2F%2Fexample.com%2Fmcp required: true description: URL-encoded agent URL name: encodedUrl in: path responses: "200": description: Compliance detail content: application/json: schema: $ref: "#/components/schemas/AgentComplianceDetail" "400": description: Invalid agent URL content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" /api/registry/agents/{encodedUrl}/storyboard-status: get: operationId: getAgentStoryboardStatus summary: Get agent storyboard status description: |- Returns per-storyboard test results for an agent. Includes title, category, track, pass/fail status, and step counts. **Members only** — requires authentication and an active membership. tags: - Agent Compliance security: - bearerAuth: [] - oauth2: [] parameters: - schema: type: string description: URL-encoded agent URL example: https%3A%2F%2Fexample.com%2Fmcp required: true description: URL-encoded agent URL name: encodedUrl in: path responses: "200": description: Storyboard status for the agent content: application/json: schema: type: object properties: agent_url: type: string storyboards: type: array items: $ref: "#/components/schemas/StoryboardStatus" passing_count: type: integer total_count: type: integer required: - agent_url - storyboards - passing_count - total_count "400": description: Invalid agent URL content: application/json: schema: $ref: "#/components/schemas/Error" "401": description: Authentication required content: application/json: schema: $ref: "#/components/schemas/Error" "403": description: Members only content: application/json: schema: type: object properties: error: type: string members_only: type: boolean required: - error - members_only "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" /api/registry/agents/storyboard-status: post: operationId: bulkAgentStoryboardStatus summary: Bulk storyboard status description: |- Returns per-storyboard test results for multiple agents in a single request. **Members only** — requires authentication and an active membership. Maximum 100 agent URLs per request. tags: - Agent Compliance security: - bearerAuth: [] - oauth2: [] requestBody: content: application/json: schema: type: object properties: agent_urls: type: array items: type: string maxItems: 100 description: Agent URLs to fetch storyboard status for required: - agent_urls responses: "200": description: Storyboard status keyed by agent URL content: application/json: schema: type: object properties: agents: type: object additionalProperties: anyOf: - type: array items: $ref: "#/components/schemas/StoryboardStatus" - type: object properties: status: type: string enum: - opted_out required: - status invalid_urls: type: integer description: Count of invalid URLs that were skipped required: - agents "400": description: Invalid request body content: application/json: schema: $ref: "#/components/schemas/Error" "401": description: Authentication required content: application/json: schema: $ref: "#/components/schemas/Error" "403": description: Members only content: application/json: schema: type: object properties: error: type: string members_only: type: boolean required: - error - members_only "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" /api/registry/agents/{encodedUrl}/compliance/history: get: operationId: getAgentComplianceHistory summary: Get agent compliance history description: |- Returns a list of compliance test runs for an agent, ordered most recent first. If the agent has opted out, returns an empty list. tags: - Agent Compliance parameters: - schema: type: string description: URL-encoded agent URL required: true description: URL-encoded agent URL name: encodedUrl in: path - schema: type: string description: Max results (default 30, max 100) required: false description: Max results (default 30, max 100) name: limit in: query responses: "200": description: Compliance run history content: application/json: schema: type: object properties: agent_url: type: string runs: type: array items: $ref: "#/components/schemas/ComplianceRun" count: type: integer required: - agent_url - runs - count "400": description: Invalid agent URL content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" /api/registry/agents/{encodedUrl}/lifecycle: put: operationId: updateAgentLifecycle summary: Update agent lifecycle stage description: Set the lifecycle stage for an agent. Requires authentication and ownership of the agent. tags: - Agent Compliance security: - bearerAuth: [] - oauth2: [] parameters: - schema: type: string description: URL-encoded agent URL required: true description: URL-encoded agent URL name: encodedUrl in: path requestBody: content: application/json: schema: type: object properties: lifecycle_stage: type: string enum: - development - testing - production - deprecated required: - lifecycle_stage responses: "200": description: Updated metadata content: application/json: schema: $ref: "#/components/schemas/RegistryMetadata" "400": description: Invalid agent URL or lifecycle stage content: application/json: schema: $ref: "#/components/schemas/Error" "401": description: Authentication required content: application/json: schema: $ref: "#/components/schemas/Error" "403": description: Not authorized content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" /api/registry/agents/{encodedUrl}/compliance/opt-out: put: operationId: updateAgentComplianceOptOut summary: Update compliance opt-out description: Opt an agent in or out of public compliance reporting. Requires authentication and ownership of the agent. tags: - Agent Compliance security: - bearerAuth: [] - oauth2: [] parameters: - schema: type: string description: URL-encoded agent URL required: true description: URL-encoded agent URL name: encodedUrl in: path requestBody: content: application/json: schema: type: object properties: opt_out: type: boolean required: - opt_out responses: "200": description: Updated metadata content: application/json: schema: $ref: "#/components/schemas/RegistryMetadata" "400": description: Invalid agent URL or opt_out value content: application/json: schema: $ref: "#/components/schemas/Error" "401": description: Authentication required content: application/json: schema: $ref: "#/components/schemas/Error" "403": description: Not authorized content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" /api/registry/agents/{encodedUrl}/monitoring/settings: get: operationId: getAgentMonitoringSettings summary: Get monitoring settings description: Returns the monitoring configuration for an agent. Requires authentication and ownership. tags: - Agent Compliance security: - bearerAuth: [] - oauth2: [] parameters: - schema: type: string description: URL-encoded agent URL required: true description: URL-encoded agent URL name: encodedUrl in: path responses: "200": description: Monitoring settings content: application/json: schema: $ref: "#/components/schemas/MonitoringSettings" "400": description: Invalid agent URL content: application/json: schema: $ref: "#/components/schemas/Error" "401": description: Authentication required content: application/json: schema: $ref: "#/components/schemas/Error" "403": description: Not authorized content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" /api/registry/agents/{encodedUrl}/monitoring/pause: put: operationId: updateAgentMonitoringPause summary: Pause or resume monitoring description: Pause or resume automated compliance monitoring for an agent. Requires authentication and ownership. tags: - Agent Compliance security: - bearerAuth: [] - oauth2: [] parameters: - schema: type: string description: URL-encoded agent URL required: true description: URL-encoded agent URL name: encodedUrl in: path requestBody: content: application/json: schema: type: object properties: paused: type: boolean required: - paused responses: "200": description: Updated monitoring settings content: application/json: schema: $ref: "#/components/schemas/MonitoringSettings" "400": description: Invalid agent URL or paused value content: application/json: schema: $ref: "#/components/schemas/Error" "401": description: Authentication required content: application/json: schema: $ref: "#/components/schemas/Error" "403": description: Not authorized content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" /api/registry/agents/{encodedUrl}/monitoring/interval: put: operationId: updateAgentMonitoringInterval summary: Update monitoring interval description: Set the check interval for automated compliance monitoring (6–168 hours). Requires authentication and ownership. tags: - Agent Compliance security: - bearerAuth: [] - oauth2: [] parameters: - schema: type: string description: URL-encoded agent URL required: true description: URL-encoded agent URL name: encodedUrl in: path requestBody: content: application/json: schema: type: object properties: interval_hours: type: integer minimum: 6 maximum: 168 required: - interval_hours responses: "200": description: Updated monitoring settings content: application/json: schema: $ref: "#/components/schemas/MonitoringSettings" "400": description: Invalid agent URL or interval content: application/json: schema: $ref: "#/components/schemas/Error" "401": description: Authentication required content: application/json: schema: $ref: "#/components/schemas/Error" "403": description: Not authorized content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" /api/registry/agents/{encodedUrl}/monitoring/requests: get: operationId: getAgentMonitoringRequests summary: Get outbound request log description: Returns the outbound request log for an agent (compliance checks, health probes, etc.). Requires authentication and ownership. tags: - Agent Compliance security: - bearerAuth: [] - oauth2: [] parameters: - schema: type: string description: URL-encoded agent URL required: true description: URL-encoded agent URL name: encodedUrl in: path - schema: type: string description: Max results (default 50, max 200) required: false description: Max results (default 50, max 200) name: limit in: query - schema: type: string description: ISO 8601 timestamp to filter from required: false description: ISO 8601 timestamp to filter from name: since in: query responses: "200": description: Outbound request log content: application/json: schema: type: object properties: agent_url: type: string requests: type: array items: $ref: "#/components/schemas/OutboundRequest" count: type: integer total: type: integer required: - agent_url - requests - count - total "400": description: Invalid agent URL content: application/json: schema: $ref: "#/components/schemas/Error" "401": description: Authentication required content: application/json: schema: $ref: "#/components/schemas/Error" "403": description: Not authorized content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" /api/registry/agents/{encodedUrl}/auth-status: get: operationId: getAgentAuthStatus summary: Get agent auth status description: Returns whether an agent has stored authentication credentials and OAuth token status. Requires authentication. tags: - Agent Compliance security: - bearerAuth: [] - oauth2: [] parameters: - schema: type: string description: URL-encoded agent URL required: true description: URL-encoded agent URL name: encodedUrl in: path responses: "200": description: Auth status content: application/json: schema: $ref: "#/components/schemas/AgentAuthStatus" "400": description: Invalid agent URL content: application/json: schema: $ref: "#/components/schemas/Error" "401": description: Authentication required content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" /api/registry/agents/{encodedUrl}/connect: put: operationId: connectAgent summary: Connect agent credentials description: Store authentication credentials for an agent. Requires authentication and ownership. tags: - Agent Compliance security: - bearerAuth: [] - oauth2: [] parameters: - schema: type: string description: URL-encoded agent URL required: true description: URL-encoded agent URL name: encodedUrl in: path requestBody: content: application/json: schema: type: object properties: auth_token: type: string maxLength: 4096 description: Bearer or basic auth token auth_type: type: string enum: - bearer - basic description: "Auth type (default: bearer)" responses: "200": description: Connection result content: application/json: schema: type: object properties: connected: type: boolean enum: - true has_auth: type: boolean agent_context_id: type: string required: - connected - has_auth - agent_context_id "400": description: Invalid parameters content: application/json: schema: $ref: "#/components/schemas/Error" "401": description: Authentication required content: application/json: schema: $ref: "#/components/schemas/Error" "403": description: Not authorized content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" /api/registry/agents/{encodedUrl}/oauth-client-credentials: put: operationId: saveAgentOAuthClientCredentials summary: Save OAuth 2.0 client-credentials for an agent description: Store a machine-to-machine OAuth 2.0 client-credentials configuration (RFC 6749 §4.4) for this agent. The SDK exchanges at the token endpoint before every call and refreshes on 401. `client_secret` may be a `$ENV:VAR_NAME` reference — the SDK resolves at exchange time, the server stores it as written (encrypted uniformly). Requires authentication and ownership. tags: - Agent Compliance security: - bearerAuth: [] - oauth2: [] parameters: - schema: type: string description: URL-encoded agent URL required: true description: URL-encoded agent URL name: encodedUrl in: path requestBody: content: application/json: schema: type: object properties: token_endpoint: type: string maxLength: 2048 description: Token endpoint URL (HTTPS required; localhost allowed in dev). client_id: type: string maxLength: 2048 description: OAuth client ID. May be a `$ENV:VAR_NAME` reference. client_secret: type: string maxLength: 8192 description: OAuth client secret. May be a `$ENV:VAR_NAME` reference. Stored encrypted at rest. scope: type: string maxLength: 1024 description: Space-separated OAuth scope values. resource: type: string maxLength: 2048 description: RFC 8707 resource indicator. audience: type: string maxLength: 2048 description: Audience parameter for audience-validating authorization servers. auth_method: type: string enum: - basic - body description: "Client-credentials placement: basic (HTTP Basic header, RFC 6749 §2.3.1 preferred) or body (form fields). SDK default is basic." required: - token_endpoint - client_id - client_secret responses: "200": description: Credentials saved content: application/json: schema: type: object properties: connected: type: boolean enum: - true has_auth: type: boolean enum: - true agent_context_id: type: string auth_type: type: string enum: - oauth_client_credentials required: - connected - has_auth - agent_context_id - auth_type "400": description: Invalid parameters — response carries `code` and `field` pointing to the rejection cause. content: application/json: schema: $ref: "#/components/schemas/CredentialSaveValidationError" "401": description: Authentication required content: application/json: schema: $ref: "#/components/schemas/Error" "403": description: Not authorized content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" /api/registry/agents/{encodedUrl}/oauth-client-credentials/test: post: operationId: testAgentOAuthClientCredentials summary: Dry-run the saved OAuth 2.0 client-credentials config description: Exchange the saved client_credentials at the token endpoint and discard the resulting access token. Returns success + latency on a 2xx exchange, or the SDK's `ClientCredentialsExchangeError` kind (`oauth`, `malformed`, `network`) on failure so operators get same-second feedback instead of waiting for the next compliance heartbeat. Requires authentication and ownership. Requires credentials to already be saved via `PUT /oauth-client-credentials`. tags: - Agent Compliance security: - bearerAuth: [] - oauth2: [] parameters: - schema: type: string description: URL-encoded agent URL required: true description: URL-encoded agent URL name: encodedUrl in: path responses: "200": description: "Result of the token exchange. `ok: true` on 2xx from the AS; `ok: false` with a typed error otherwise (HTTP response itself is still 200 — the error payload carries the rejection kind so UI can branch on it)." content: application/json: schema: anyOf: - type: object properties: ok: type: boolean enum: - true latency_ms: type: integer required: - ok - latency_ms - type: object properties: ok: type: boolean enum: - false latency_ms: type: integer error: type: object properties: kind: type: string enum: - oauth - malformed - network description: "Category of failure: `oauth` = AS returned a typed error (e.g. invalid_client), `malformed` = AS returned an unexpected 2xx payload, `network` = couldn't reach the AS." message: type: string oauth_error: type: string description: RFC 6749 `error` field when kind=oauth. oauth_error_description: type: string description: RFC 6749 `error_description` field when kind=oauth. http_status: type: integer description: Status code when the AS returned a non-2xx. required: - kind - message required: - ok - latency_ms - error "400": description: Invalid agent URL content: application/json: schema: $ref: "#/components/schemas/Error" "401": description: Authentication required content: application/json: schema: $ref: "#/components/schemas/Error" "403": description: Not authorized content: application/json: schema: $ref: "#/components/schemas/Error" "404": description: No saved client-credentials config for this agent content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" /api/registry/agents/{encodedUrl}/applicable-storyboards: get: operationId: getApplicableStoryboards summary: Get applicable storyboards for agent description: Probe the agent's get_adcp_capabilities and resolve its declared supported_protocols and specialisms to the compliance bundles that will run. Requires authentication and ownership. tags: - Agent Compliance security: - bearerAuth: [] - oauth2: [] parameters: - schema: type: string description: URL-encoded agent URL required: true description: URL-encoded agent URL name: encodedUrl in: path responses: "200": description: Bundles the agent will be tested against, driven by its declared capabilities content: application/json: schema: type: object properties: agent_url: type: string agent_name: type: string supported_protocols: type: array items: type: string specialisms: type: array items: type: string capabilities_probe_error: type: string description: Agent-reported probe error. Untrusted — sanitized and truncated to 500 chars. Present when get_adcp_capabilities was advertised but failed; empty bundle list usually indicates this, not a v2 agent. bundles: type: array items: type: object properties: kind: type: string enum: - universal - domain - specialism id: type: string storyboards: type: array items: type: object properties: id: type: string title: type: string summary: type: string step_count: type: integer required: - id - title - summary - step_count required: - kind - id - storyboards total_storyboards: type: integer required: - agent_url - agent_name - supported_protocols - specialisms - bundles - total_storyboards "400": description: Invalid agent URL content: application/json: schema: $ref: "#/components/schemas/Error" "401": description: Authentication required content: application/json: schema: $ref: "#/components/schemas/Error" "403": description: Not authorized content: application/json: schema: $ref: "#/components/schemas/Error" "422": description: Agent requires authentication, or declares a specialism not in the local compliance cache content: application/json: schema: type: object properties: error: type: string needs_auth: type: boolean unknown_specialism: type: boolean declared_specialisms: type: array items: type: string description: Specialisms the agent declared, for unknown-specialism errors known_specialisms: type: array items: type: string description: Specialism ids present in this server's local compliance cache required: - error "500": description: Server error content: application/json: schema: type: object properties: error: type: string reason: type: string enum: - network - tls - timeout - protocol - unknown description: Coarse error classification for UI differentiation required: - error "504": description: Connection timeout content: application/json: schema: $ref: "#/components/schemas/Error" /api/storyboards: get: operationId: listStoryboards summary: List storyboards description: Returns the catalog of compliance storyboards. Optionally filter by category. tags: - Agent Compliance parameters: - schema: type: string description: Filter by storyboard category required: false description: Filter by storyboard category name: category in: query responses: "200": description: Storyboard catalog content: application/json: schema: type: object properties: storyboards: type: array items: $ref: "#/components/schemas/StoryboardSummary" count: type: integer required: - storyboards - count "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" /api/storyboards/{id}: get: operationId: getStoryboard summary: Get storyboard detail description: Returns a single storyboard with its full phase and step structure, plus its test kit if available. tags: - Agent Compliance parameters: - schema: type: string description: Storyboard ID required: true description: Storyboard ID name: id in: path responses: "200": description: Storyboard detail content: application/json: schema: type: object properties: storyboard: $ref: "#/components/schemas/StoryboardDetail" test_kit: {} required: - storyboard "404": description: Storyboard not found content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" /api/brands/find: get: operationId: findBrand summary: Find brands by name description: Search for brands by name or domain. Returns matching results with basic identity info. tags: - Brand Resolution parameters: - schema: type: string minLength: 2 description: Search query (min 2 characters) required: true description: Search query (min 2 characters) name: q in: query - schema: type: string description: Max results (default 10, max 50) required: false description: Max results (default 10, max 50) name: limit in: query responses: "200": description: Search results content: application/json: schema: type: object properties: results: type: array items: $ref: "#/components/schemas/FindCompanyResult" required: - results "400": description: Query too short content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" /api/brands/setup-my-brand: post: operationId: setupMyBrand summary: Set up a hosted brand.json description: Create or update a hosted brand.json for a domain owned by the authenticated user's organization. Returns the hosted URL and a pointer snippet for DNS setup. tags: - Brand Resolution security: - bearerAuth: [] - oauth2: [] requestBody: content: application/json: schema: type: object properties: domain: type: string example: acmecorp.com brand_name: type: string logo_url: type: string brand_color: type: string required: - domain - brand_name responses: "200": description: Brand setup result content: application/json: schema: type: object properties: domain: type: string has_brand_json: type: boolean hosted_brand_json_url: type: string pointer_snippet: type: string description: JSON string for brand.json pointer required: - domain - has_brand_json - hosted_brand_json_url - pointer_snippet "400": description: Invalid domain or missing fields content: application/json: schema: $ref: "#/components/schemas/Error" "403": description: Domain not owned by user's organization content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" /api/properties/check/bulk: post: operationId: bulkPropertyCheck summary: Bulk property identifier check description: Check up to 10,000 property identifiers (domains, app bundle IDs, CTV store URLs) against the registry catalog. Returns a verdict for each identifier and a summary. tags: - Property Resolution requestBody: content: application/json: schema: type: object properties: identifiers: type: array items: type: string maxItems: 10000 description: Property identifiers to check required: - identifiers responses: "200": description: Check results with report ID content: application/json: schema: type: object properties: summary: type: object properties: total: type: integer ready: type: integer known: type: integer ad_infra: type: integer unknown: type: integer skipped: type: integer required: - total - ready - known - ad_infra - unknown - skipped entries: type: array items: type: object properties: input: type: string identifier: type: object properties: type: type: string value: type: string required: - type - value verdict: type: string classification: type: - string - "null" source: type: - string - "null" property_rid: type: - string - "null" action: type: string required: - input - identifier - verdict - classification - source - property_rid - action report_id: type: string required: - summary - entries - report_id "400": description: Invalid identifiers content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" /api/properties/check/bulk/{reportId}: get: operationId: getBulkPropertyCheckReport summary: Get bulk check report description: Retrieve a previously generated bulk property check report by ID. tags: - Property Resolution parameters: - schema: type: string description: Report UUID required: true description: Report UUID name: reportId in: path responses: "200": description: Report data content: application/json: schema: type: object properties: summary: type: object properties: total: type: integer ready: type: integer known: type: integer ad_infra: type: integer unknown: type: integer skipped: type: integer required: - total - ready - known - ad_infra - unknown - skipped entries: type: array items: type: object properties: input: type: string identifier: type: object properties: type: type: string value: type: string required: - type - value verdict: type: string classification: type: - string - "null" source: type: - string - "null" property_rid: type: - string - "null" action: type: string required: - input - identifier - verdict - classification - source - property_rid - action required: - summary - entries "404": description: Report not found or expired content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" /api/registry/agents/{encodedUrl}/storyboard/{storyboardId}/step/{stepId}: post: operationId: runStoryboardStep summary: Run a single storyboard step description: Execute a single storyboard step against an agent. Requires authentication and ownership. tags: - Agent Compliance security: - bearerAuth: [] - oauth2: [] parameters: - schema: type: string description: URL-encoded agent URL required: true description: URL-encoded agent URL name: encodedUrl in: path - schema: type: string required: true name: storyboardId in: path - schema: type: string required: true name: stepId in: path requestBody: content: application/json: schema: type: object properties: context: type: object additionalProperties: {} description: Optional context object for the step dry_run: type: boolean description: "Dry run mode (default: true)" responses: "200": description: Step execution result content: application/json: schema: {} "400": description: Invalid parameters content: application/json: schema: $ref: "#/components/schemas/Error" "401": description: Authentication required content: application/json: schema: $ref: "#/components/schemas/Error" "403": description: Not authorized content: application/json: schema: $ref: "#/components/schemas/Error" "404": description: Storyboard not found content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" /api/storyboards/{storyboardId}/first-step: get: operationId: getStoryboardFirstStep summary: Get first step preview description: Returns a preview of the first step of a storyboard. No agent call needed. tags: - Agent Compliance parameters: - schema: type: string required: true name: storyboardId in: path responses: "200": description: First step preview content: application/json: schema: type: object properties: storyboard: type: object properties: id: type: string title: type: string required: - id - title step: {} required: - storyboard "404": description: Storyboard not found or has no steps content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" /api/registry/agents/{encodedUrl}/storyboard/{storyboardId}/run: post: operationId: runStoryboard summary: Run full storyboard evaluation description: Execute all steps of a storyboard against an agent and record the compliance result. Requires authentication and ownership. tags: - Agent Compliance security: - bearerAuth: [] - oauth2: [] parameters: - schema: type: string description: URL-encoded agent URL required: true description: URL-encoded agent URL name: encodedUrl in: path - schema: type: string required: true name: storyboardId in: path responses: "200": description: Storyboard run result with annotated phases content: application/json: schema: type: object properties: storyboard: type: object properties: id: type: string title: type: string category: type: string narrative: type: string required: - id - title - category agent: type: object properties: url: type: string profile: {} required: - url phases: {} summary: {} observations: {} total_duration_ms: type: number test_kit: {} required: - storyboard - agent - total_duration_ms "400": description: Invalid agent URL content: application/json: schema: $ref: "#/components/schemas/Error" "401": description: Authentication required content: application/json: schema: $ref: "#/components/schemas/Error" "403": description: Not authorized content: application/json: schema: $ref: "#/components/schemas/Error" "404": description: Storyboard not found content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" /api/registry/agents/{encodedUrl}/storyboard/{storyboardId}/compare: post: operationId: compareStoryboard summary: Compare storyboard against reference agent description: Run a storyboard against both the target agent and the public reference agent, returning side-by-side results. Requires authentication and ownership. tags: - Agent Compliance security: - bearerAuth: [] - oauth2: [] parameters: - schema: type: string description: URL-encoded agent URL required: true description: URL-encoded agent URL name: encodedUrl in: path - schema: type: string required: true name: storyboardId in: path responses: "200": description: Side-by-side comparison results content: application/json: schema: type: object properties: storyboard: type: object properties: id: type: string title: type: string category: type: string required: - id - title - category user_agent: type: object properties: url: type: string profile: {} summary: {} required: - url reference_agent: type: object properties: url: type: string name: type: string profile: {} summary: {} required: - url - name phases: {} total_duration_ms: type: number required: - storyboard - user_agent - reference_agent - total_duration_ms "400": description: Invalid agent URL content: application/json: schema: $ref: "#/components/schemas/Error" "401": description: Authentication required content: application/json: schema: $ref: "#/components/schemas/Error" "403": description: Not authorized content: application/json: schema: $ref: "#/components/schemas/Error" "404": description: Storyboard not found content: application/json: schema: $ref: "#/components/schemas/Error" "500": description: Server error content: application/json: schema: $ref: "#/components/schemas/Error" tags: - name: Brand Resolution description: Resolve advertiser domains to canonical brand identities. - name: Property Resolution description: Resolve publisher domains to their property configurations and authorized agents. - name: Agent Discovery description: Browse the federated agent network, search agent inventory profiles, publisher index, and registry statistics. - name: Change Feed description: Poll cursor-based registry change events for local sync. - name: Lookups & Authorization description: Look up agents by domain or property, and validate ad-serving authorization. - name: Validation Tools description: Validate publisher adagents.json files and generate compliant configurations. - name: Search description: Cross-entity search across brands, publishers, agents, and properties. - name: Agent Probing description: Connect to live agents and inspect their capabilities, formats, and inventory. - name: Brand Discovery description: Discover and crawl brand.json files across domains. - name: Agent Compliance description: Agent compliance status, storyboard test results, and compliance history. - name: Policy Registry description: Browse, resolve, and contribute governance policies for campaign compliance.