← Back to product·Simulmedia VAMOS® Docs·Get started / Authentication
Get started

Authentication

Send Authorization: Bearer <credential> on every request. A credential acts for one organization on one side of the marketplace, and it can do only what its scopes allow. On the live API (api.vamos.simulmedia.com and mcp.vamos.simulmedia.com), the credential is an organization API key that an Admin of your organization issues, or a 15-minute token you get for that key with OAuth 2.0 client credentials. To connect an MCP client, follow Connect your buyer agent or Connect your seller agent.

The sandbox works differently. In the sandbox you are issued a bearer secret directly, one per side of the marketplace: no client credentials, no token endpoint, and no keys to issue. Its grants are fixed and do not follow the live scopes below. The buyer secret holds orders:write, catalog:read and settlement:read; the seller secret holds orders:approve, catalog:read, catalog:write and settlement:read. The header is the same either way: integrate against the sandbox, then check your live key's scopes against the table below when you move.

Webhooks the platform sends you carry an HMAC signature in X-Signature computed over the timestamp and body; verify it with your signing key before trusting any event, and reject stale timestamps. Tokens are validated for audience: a client-credentials token carries the audience https://api.vamos.simulmedia.com, and a token minted for another service is rejected here.

Scopes on the live API

Each organization API key carries an explicit list of scopes. Every live /v1 route and MCP tool names the scopes it needs, and a key that lacks one is refused. Tenant, seat and agreement checks still apply on top: a scope never reaches another organization's data.

ScopeSideGrants
catalog:readBuyer, sellerSellers, catalogs, products, avails, rate reads, your inventory and capabilities
orders:readBuyer, sellerYour orders, the approval queue, proposals, event replay and the event feed
registry:readBuyerAdvertisers, campaigns and creatives
registry:writeBuyerCreate, update, archive and restore advertisers, campaigns and creatives
orders:writeBuyerCreate orders, briefs and revisions; confirm, respond, withdraw and cancel
uploads:readBuyerYour uploads
uploads:writeBuyerAllocate uploads and write their content. Publishing and file manifests are not included
catalog:writeSellerPublish products and avails (PUT /v1/me/catalog, PUT /v1/me/avails). Rate cards are not included
rates:writeSellerPublish rate cards (PUT /v1/me/rate-cards, PATCH /v1/me/rate-cards/{commit})
orders:approveSellerDecide orders (approve, reject, counter) and send plans, including price negotiation on an order
settlement:readBuyer, sellerThe settlement reads your side already calls

orders:write and orders:approve include orders:read. Nothing else is implied: an integration that needs product or rate evidence asks for catalog:read. There is no wildcard and no administration scope. webhooks:manage belongs to webhook registration, which is live only with launch partners, so a key cannot hold it today.

Some operations never take a key. Relationships and the tenant directory (GET /v1/me/tenants, GET and PUT /v1/me/relationships, buyer identity on an agreement), seller suspension and allowlisting of buyers, landed-file manifests, the member roster, invitations and key management are for a signed-in Admin in the VAMOS app. GET /v1/me answers any valid key, even one with no scopes.

A missing scope returns 403 FORBIDDEN before anything happens: no write, no event, no idempotency replay. details.scopes names what the key lacks. An absent, invalid, revoked or expired key is 401 UNAUTHORIZED. The same rules govern MCP tools, and each tool call checks the key again, so a key revoked mid-session stops on its next call.

403 Response
{
  "error": {
    "error_code": "FORBIDDEN",
    "error_message": "This API token needs the rates:write scope.",
    "stage": "access",
    "recoverable": false,
    "details": { "scopes": ["rates:write"] }
  }
}

Organization API keys

An Admin of your organization issues keys in the VAMOS app, starting from the Viewer preset and adding what the integration needs. The app shows the exact permissions before the key exists, and the secret once after. A key belongs to the organization, not to the person who created it, and it stays live until it is revoked.

SidePresetScopes
BuyerViewercatalog:read, orders:read, registry:read, uploads:read, settlement:read
BuyerDrafterViewer, plus registry:write and uploads:write
BuyerSubmitterDrafter, plus orders:write
SellerViewercatalog:read, orders:read, settlement:read
SellerCatalog managerViewer, plus catalog:write
SellerPricing managerViewer, plus rates:write
SellerOrder approverViewer, plus orders:approve

Seller presets combine: Viewer plus any of the other three. There is no Admin preset for a key. A key stores the scopes it was issued with, never the preset name, so a later change to a preset never widens a key you already hold.

Issue and rotate over the API

POST/v1/me/api-keyssigned-in Admin

Session only: an Admin's signed-in session, checked fresh. An API key cannot create, list or revoke keys. Name the scopes on every request; there is no empty-body default.

{
  "name": "Pricing feed",
  "scopes": ["catalog:read", "orders:read", "settlement:read", "rates:write"]
}
FieldTypeDescription
namestringDisplay label, 1 to 100 characters.
scopesarray of stringRequired and non-empty. Each scope once, exactly as written above, and only scopes your side can hold. Anything else is 422 INVALID_INPUT with details.field: "scopes".
replacesstringOptional: the id of an active key in your organization that this one replaces. The new scopes must equal or narrow the old key's; broader access is 422 INVALID_INPUT with details.reason: "broader_than_predecessor" and needs a separate new key. The old key stays live until you revoke it.
acknowledge_legacy_migrationbooleantrue, required only when replaces names a legacy key: you have reviewed the full new grant. Refused anywhere else.

A 201 carries the secret once, and success is reported only after the key service confirms the exact scopes. Lists and revocations carry the same access block per key, never a secret. Revoke with DELETE /v1/me/api-keys/{key}.

201 Response
{
  "created": true,
  "api_key": {
    "id": "ak_2f9c41",
    "name": "Pricing feed",
    "subject": "org_acme",
    "secret": "<shown once>",
    "access": {
      "state": "scoped",
      "scopes": ["catalog:read", "orders:read", "rates:write", "settlement:read"],
      "effective_scopes": ["catalog:read", "orders:read", "rates:write", "settlement:read"],
      "summary": [
        "Can read catalogs, products, availability and rates",
        "Can read orders, proposals and order events",
        "Can publish rate cards",
        "Can read settlement"
      ],
      "preset": "Viewer, Pricing manager"
    }
  },
  "scope_enforcement": "active"
}

Client credentials

If your tooling speaks OAuth 2.0, exchange a key for a short-lived token. The client ID is the key's id, shown as Client ID beside each key in the VAMOS app. The client secret is the key's secret, shown once when the key is created. The token URL is on the same screen. Any scoped key works both ways, so there is nothing new to issue.

POST/v1/oauth/tokenclient ID and secret

POST https://api.vamos.simulmedia.com/v1/oauth/token
Authorization: Basic base64(<client_id>:<client_secret>)
Content-Type: application/x-www-form-urlencoded

grant_type=client_credentials&scope=catalog:read%20orders:read

Authenticate with HTTP Basic, or send client_id and client_secret in the form body instead. Not both. scope is optional and space-separated: leave it out and the token carries the key's effective scopes; name some and they must be scopes the key holds.

200 Response
{
  "access_token": "<jwt>",
  "token_type": "Bearer",
  "expires_in": 900,
  "scope": "catalog:read orders:read"
}

Send the token as Authorization: Bearer on any live /v1 route or on /mcp. It acts with exactly its scopes, under the same checks as a key holding them. It expires after 15 minutes and there is no refresh token: your OAuth library holds the secret and asks again on expiry. Revoking the key stops new tokens at once and existing tokens within 15 minutes. An expired, altered or foreign token is 401 UNAUTHORIZED.

The token endpoint answers errors in the OAuth form, {"error": "...", "error_description": "..."}, and never echoes a secret. Every other route keeps the VAMOS error envelope.

CaseStatuserror
Wrong content type, a missing or repeated parameter, both or neither ways of sending the client credentials400invalid_request
grant_type other than client_credentials400unsupported_grant_type
Unknown client ID, wrong secret, an ID and secret from different keys, a revoked or expired key401invalid_client
A legacy key, or a key whose grant cannot be read: replace it with a scoped key401invalid_client
A key with no scopes, or a scope the key does not hold or that is not a scope above400invalid_scope

A key used directly as the bearer still works. Client credentials only keeps the long-lived secret off every other request.

Enforcement rollout and legacy keys

Key lists and creates report scope_enforcement. While it reads pending, scopes are recorded and shown, but active keys still have your organization's current API access, so a restriction is not yet a safety boundary. Once it reads active, every key call is checked against its effective_scopes.

A key issued before scoped keys is legacy. Once enforcement is active it reads as your side's Viewer: it can still read, and it can no longer write. Replace a writing integration with an explicitly scoped key before then, and revoke the old one once the new key is working. A key whose grant cannot be read reports state: "invalid" and has no operational access; replace it.

Acting-buyer identity

A single credential can act for several buyer organizations: an agency group, a holding company's desks, or a platform placing orders on behalf of its own customers. The acting buyer is buyer_entity, and it appears on every order, every read, and the seller's tenant roster.

The token decides it. buyer_entity is a projection of the token's subject, minted by RFC 8693 token exchange where sub is the buyer being acted for and act.sub names the platform doing the acting. You do not have to send it: omit it and the platform fills it in from your credential.

Sending it is allowed. It is compared against the tenant the credential resolves to:

You sendResult
NothingThe platform fills in the resolved tenant. The ordinary case.
The matching buyer_entityAccepted, and identical to having sent nothing.
A different buyer_entity403 TENANT_MISMATCH. Nothing is created.

A mismatch is refused rather than booked under the resolved tenant, so a wrong assertion fails at request time instead of surfacing as a dispute at invoice time. buyer_entity does not travel in a URL path, so a tenant identifier does not land in an access log or a cache key.

Sellers see the acting buyer on every order and can suspend one without disturbing the others on the same connection: see Tenant roster and tenant_policy.mode on the capability_profile.