Registries
Three registries of your own: the advertisers you buy for, the campaigns you group by, and the creatives your lines run. An order references them by id and pins what it read, so a rename reaches your next order and leaves booked orders unchanged.
What these are
- Yours alone. Every record belongs to one buyer organization. No seller reads these routes, and no other buyer can see or name your records.
- Referenced, then pinned. An order carries the id; the platform stores the values it read at the moment it booked. Editing a record does not rewrite a booked order.
- Archived, not deleted. An archived record still resolves by id and still reads back on every order that cites it; it stops accepting new references.
external_refis your key. One optional, opaque code per record, unique across your records of that type, and filterable by exact match. It is how your planning and billing systems find the VAMOS record.
advertiser
Who a buy is for. Every order names one, and it is the record competitive separation, category conflict, and political compliance are decided against.
| Field | Type | Notes |
|---|---|---|
advertiser_id | string | Read only. Platform-minted, adv_ followed by twelve hex characters. This is what an order's buyer_metadata.advertiser_id names. |
name required | string | What the advertiser is called. Snapshotted onto every order that names this record, and lifted to the top level of the seller's order read. |
category | string | What the advertiser sells, which is what competitive separation runs on. An open string; no category taxonomy is standard across sellers. Distinct from advertiser_class, which prices and lives on a line's rate. |
advertiser_class | string | The rate class sellers price this advertiser at, such as general or competitive. Optional, trimmed, and open to the seller's vocabulary. Empty strings are refused. Orders resolve each line's class from it, then general or standard, then the product's only priced class. Distinct from category. |
external_ref | string | Your own code for this advertiser. Opaque, not validated, unique across your advertisers. |
archived_at | string | Read only. When the record was archived. Absent means active. |
campaign
The buy a group of orders belongs to. A campaign exists before its first order, so a plan still being built has somewhere to live.
Private to you. A seller reads the campaign id and the snapshotted name on the orders you send it, and nothing else. The flight, the budget, and which other sellers sit in the plan stay on your side.
| Field | Type | Notes |
|---|---|---|
campaign_id | string | Read only. Platform-minted, cmp_ followed by twelve hex characters. An order's external_order_id on the desk is derived from this and the seller, so one campaign spanning two sellers does not collide on an idempotency key. |
name required | string | What you call this buy. Snapshotted onto every order that names the campaign. |
advertiser_id required | string | One advertiser, resolved inside your own registry. A foreign or unknown id is 422 UNKNOWN_ADVERTISER. |
flight | object | Optional {start, end}, both calendar dates. Nothing on the order path reads it. |
budget | object | Optional {amount, currency}. amount is an integer in minor units (cents for USD), unlike the decimal gross and unit_cost figures on orders; currency is a three-letter code. |
external_ref | string | Your own code for this campaign, and where a human-meaningful string like FALL25-QSR belongs. |
archived_at | string | Read only. Absent means active. |
creative
A spot, stated once and referenced by the lines that run it. It carries two identifiers that mean different things.
| Field | Type | Notes |
|---|---|---|
creative_id | string | Read only. Platform-minted, crt_ followed by twelve hex characters. This is the handle an order line's creative_id names. |
advertiser_id required | string | The advertiser this creative is for, resolved inside your own registry. |
name required | string | What the spot is called, for the people who read it. |
creative_code | string | Optional. The Ad-ID or ISCI style industry code the seller's traffic systems key on. Add it when you have it; the spot cannot be trafficked without it. Opaque to the platform and not format-validated, stored without leading or trailing spaces. Not unique: one creative cut at two lengths is two records sharing a code. |
media_url | string | Optional. An http or https link to wherever the video file lives, on any service. Anyone holding the link must be able to view it, and it should not expire. The platform never opens the link; the file is checked against the creative spec (HD 1080p, MP4 or MOV) by hand. Text that is not a link, a link over 2048 characters, or a link with a username or password in it is 422 INVALID_INPUT with details.reason of scheme, length, or credentials. Treat it as private: only you and the seller of an order that cites the creative can read it. |
length_seconds | integer | Optional. When stated, it must equal the spot_length of every line that references this creative, or the write is 422 CREATIVE_LENGTH_MISMATCH. A creative that states no length is checked against nothing and can run in any unit. |
external_ref | string | Your own code for this creative, in your asset or billing system. Distinct from creative_code, which is the industry's. |
archived_at | string | Read only. Absent means active. |
Routes
Six routes per object, identical in shape across all three. Substitute advertisers, campaigns, or creatives for {collection}.
| Route | What it does |
|---|---|
GET /v1/{collection} | Your own records. Active only, unless ?include_archived=true. ?external_ref= is an exact-match filter; run it before minting a record you may already have. |
POST /v1/{collection} | Mint one. 201 with the record, its minted id included. |
GET /v1/{collection}/{id} | One record. Resolves archived records too, with archived_at visible. |
PATCH /v1/{collection}/{id} | A partial update. Omitted fields keep their stored values. Send null to clear an optional field (category, advertiser_class, and external_ref on an advertiser; flight, budget, and external_ref on a campaign; creative_code, media_url, length_seconds, and external_ref on a creative), and the record reads back without it. null on a required field is 422 INVALID_INPUT naming the field. An archived record is still patchable. |
POST /v1/{collection}/{id}/archive | Archive. Idempotent: archiving an archived record replays the stored outcome as a 200, not a conflict, so a retry after a dropped response is safe. |
POST /v1/{collection}/{id}/restore | Clear archived_at, on the same idempotent terms. |
Scoping and refusals
Every route requires a buyer credential; a seller credential is 403 on all of them.
Your records are not enumerable by anyone else. A GET or PATCH naming a record you do not own answers the same 404 NOT_FOUND as an id nobody has minted, so a refusal cannot confirm that an id exists. A list returns your records and no others.
A reference that does not resolve is an input error and gets a different code:
| Code | When |
|---|---|
422 UNKNOWN_ADVERTISER | A campaign.advertiser_id, a creative.advertiser_id, or an order's buyer_metadata.advertiser_id that names no advertiser in your registry. One answer for foreign and never-minted alike. |
422 UNKNOWN_CAMPAIGN | The same, for an order's buyer_metadata.campaign_id. |
422 UNKNOWN_CREATIVE | The same, for a line's creative_id or a creative_splits entry. |
422 REFERENCE_ARCHIVED | A new reference to an archived record: an order create, a revision adding a line or a split, or a campaign or creative created under an archived advertiser. details names the object and the id. |
422 DUPLICATE_EXTERNAL_REF | An external_ref you already hold on a record of that type. The refusal names the record that holds it. |
422 CREATIVE_LENGTH_MISMATCH | A line whose spot_length differs from the referenced creative's stated length_seconds. details names the line, the creative, and both figures. |
Snapshots
An order pins by value what it read from each record at the moment it needed it: the advertiser's name, category, and advertiser_class and the campaign's name at create, and the creative's code, name, and length at the write that persists a line's reference. Reads echo the id beside the pinned values, so you can see both what was booked and what the record says now.
The pin and the validation come from the same read. The server resolves each record once, validates against that revision, and stores the snapshot from it, inside the one atomic write that persists the order. A PATCH you send at the same instant lands entirely before or entirely after that write.
So renaming a creative is safe: it reaches every order you book afterwards, rewrites nothing about the ones already placed, and changes no event a seller has already consumed.
Archiving does not cascade
Archiving an advertiser leaves its campaigns and creatives active and independently archivable. Every order that already cites any of them keeps resolving.
A revision carries forward references already present on the order it supersedes, archived or not. Only a newly added reference to an archived record is refused, so you can revise an order that runs a creative you have since retired without un-retiring it first.
What you are called, per seller
The registries say who you buy for. What you are called is per seller: one agency is one organization here, but each seller knows it by its own display name and its own code. That lives on the agreement. See PUT /v1/agreements/{id}/identity.
From an agent
Over MCP, each registry has five tools, one per verb: list_advertisers, create_advertiser, update_advertiser, archive_advertiser, and restore_advertiser, and the same five for campaigns and creatives. Each calls the same service its REST API route calls, so a tool and its route refuse, write, and answer identically. The list tools take external_ref, which makes the agent flow resolve, mint, correct, retire: look up your own identifier, mint a record only when the lookup comes back empty, fix it with update_* (where null clears an optional field, as on PATCH), and retire it with archive_*. create_order takes the ids.
Advertiser categories and seller pricing
category remains an optional open string. Buyer forms offer IAB Ad Product Taxonomy 2.0 choices and political subcategories. Existing strings and PATCH null clearing stay supported. Category mappings resolve a seller's existing pricing class per line; they do not write a derived class to the advertiser or alter booked snapshots. advertiser_class remains available to legacy clients, but normal advertiser forms ask for category instead.