Quickstart
This walks through your first authenticated request end to end. It uses the Inventory API’s device-list endpoint as a harmless “is my setup working?” check — it returns an empty list until you import inventory.
1. Get an access token
Section titled “1. Get an access token”POST /oauth/v2/token HTTP/1.1Host: auth.dev.retailmedia.verve.comContent-Type: application/x-www-form-urlencodedAccept: application/json
grant_type=client_credentials&client_id=your-user%40your-org&client_secret=your-client-secret&scope=openidCopy the access_token from the response.
2. Call the API
Section titled “2. Call the API”Send the token as a Bearer credential and identify your project with X-Verve-Namespace:
POST /v1alpha/inventory/devices HTTP/1.1Host: api.dev.retailmedia.verve.comAuthorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6...X-Verve-Namespace: project:01ABCDEFGHIJKLMNOPQRSTUVWXContent-Type: application/json
{}A 200 OK (even with an empty {} body) means authentication and authorization are working. 🎉
Bonus — the Ad API needs no auth
Section titled “Bonus — the Ad API needs no auth”The Ad API is public, so a request carries no token or namespace header:
GET /v1alpha/adrequest?key=RETAILER_KEY&playerid=PLAYER_ID HTTP/1.1Host: api.dev.retailmedia.verve.comAccept: application/xmlNext steps
Section titled “Next steps”- API Reference — every endpoint, parameter, and schema.
- Guides — how the ad loop and inventory model work end to end.