check_governance during media buy lifecycle events. Each account entry pairs an account reference with the governance agents for that account, supporting both explicit accounts (account_id) and implicit accounts (brand + operator).
This uses replace semantics — each call replaces any previously registered agents on the specified accounts. Accounts not included in the request keep their existing configuration.
Response Time: ~1s.
Request Schema: /schemas/latest/account/sync-governance-request.json
Response Schema: /schemas/latest/account/sync-governance-response.json
Quick Start
Sync a budget governance agent to an explicit account:Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
accounts | array | Yes | Per-account governance agent entries. Each pairs an account reference with governance agents for that account. |
| Field | Type | Required | Description |
|---|---|---|---|
account | object | Yes | Account reference: {account_id} for explicit accounts or {brand, operator} for implicit accounts. |
governance_agents | array | Yes | Governance agent endpoints for this account (1–10 per account). |
| Field | Type | Required | Description |
|---|---|---|---|
url | string | Yes | HTTPS endpoint URL for the governance agent. |
authentication | object | Yes | Credentials the seller presents when calling this agent. Contains schemes (array with one auth scheme) and credentials (token, min 32 characters). |
categories | array | No | Governance categories this agent handles (e.g., ["budget_authority", "geo_compliance"]). When omitted, the agent handles all categories. Max 20 categories, each max 64 characters. |
Response
Success response: Returns anaccounts array with per-account results. Individual entries may fail even when the operation succeeds.
| Field | Description |
|---|---|
account | Account reference, echoed from request. |
status | "synced" or "failed". |
governance_agents | Governance agents now active on this account. Reflects persisted state. Only present when status: "synced". |
errors | Per-account errors. Only present when status: "failed". |
errors array with operation-level errors (auth failure, service unavailable). No accounts array is present.
Authorization
The seller MUST verify that the authenticated agent has authority over each referenced account before persisting governance agents. Requests referencing accounts the agent does not own MUST return afailed status with an error for those entries.
Common Scenarios
Different governance agents per account
Implicit accounts (brand + operator)
Rotate governance agent credentials
Callsync_governance again with updated authentication. Replace semantics means the new credentials overwrite the previous configuration.
Error Handling
| Error Code | Description | Resolution |
|---|---|---|
ACCOUNT_NOT_FOUND | Referenced account does not exist or is not accessible | Verify account reference via list_accounts or sync_accounts |
UNAUTHORIZED | Agent does not have authority over the referenced account | Check that you are authenticated as an agent with access to this account |
Next Steps
- list_accounts — Discover accounts and their current governance agents
- sync_accounts — Provision or link advertiser accounts
- check_governance — How sellers call governance agents during media buy events
- Accounts and agents — Account models, billing, and trust