POST /api/v2/storefront/inventory-sources
Creates an inventory source and registers its backing agent. Only external AGENT sources are created here — MANAGED_SALES_AGENT, LINKED_STOREFRONT, and MODULAR_SOURCE rows are created through their own provisioning and linking flows.
Request
Parameters
Response
201 Created with the new InventorySourceResponse:
status: "PENDING" and auto-activates once the agent is reachable with the credential. For OAUTH agents the response includes an oauth.authorizationUrl to redirect the operator to. For NO_AUTH agents the source is ACTIVE immediately.
Connecting checks that the agent’s endpointUrl is registered with the AAO registry. If the agent is not registered, the request is rejected with 400 VALIDATION_ERROR. If the registry cannot be reached to perform the check, the request returns 503 SERVICE_UNAVAILABLE — a transient connectivity problem, not a rejection of the agent, so retrying usually succeeds.
After connection
Once connected, an externalAGENT source can either answer buyer briefs live
through passthrough, or provide cached components for merchandising. To support
component caching, the agent’s product response must expose stable raw products:
ids, names/descriptions, pricing options, formats, publisher properties or other
inventory selectors, delivery type, and enough execution metadata to route a
selected product later. Murph reports component-cache problems separately from
live source-call failures.
Registering the agent is not the same as authorizing it to sell a publisher’s inventory. This connect-time check only confirms the agent is registered in the AAO registry. Whether a publisher’s
adagents.json authorizes that agent to sell their inventory is a separate question, surfaced later as an advisory setup/product signal today — not at connect time. A registered agent can be connected and still be unauthorized for a given publisher’s inventory.Errors
400 VALIDATION_ERROR— missing required field,authsupplied for anOAUTH/NO_AUTHagent,authmissing for aJWTagent, or the agent’s endpoint is not registered with the AAO registry. (Agent registration is distinct from publisher authorization — see the note above.)401 UNAUTHORIZED— missing or invalid API key.503 SERVICE_UNAVAILABLE— the AAO registry could not be reached to verify the agent’s registration. This is transient; retry the request.
Related
Inventory source tasks
All operations
Inventory sources overview
Concepts and lifecycle
Update inventory source
Change fields or rotate auth
Storefront onboarding
End-to-end seller setup