Create a token
Exchange your M2M client credentials for a short-lived access token.
/auth/tokenThe returned token authenticates every other call in this API. This endpoint itself is unauthenticated — no token required to call it.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Machine-to-machine client ID issued by Vizit.
Machine-to-machine client secret issued by Vizit.
API audience identifier. Always https://ext.vizit.com.
Auth0 organization ID issued by Vizit during onboarding. Required because the Auth0 client grant uses organization_usage: require.
Must be "client_credentials"
"client_credentials"Response Body
application/json
application/json
curl -X POST "https://ext.vizit.com/auth/token" \ -H "Content-Type: application/json" \ -d '{ "client_id": "string", "client_secret": "string", "audience": "https://ext.vizit.com", "organization": "string", "grant_type": "client_credentials" }'{ "access_token": "string", "token_type": "Bearer", "expires_in": 86400}{ "error": "string", "error_description": "string"}Reference
OpenAPI reference for the Vizit Public API, grouped by capability.
GETList product categories
Lists the product categories your organization has ICP access to. Use a returned category's `id` as the `product_category_id` when you [submit a PDP by GTIN](/api/product-details/upsertPdpByGtin) or [submit an image for scoring](/api/images/scoreImage). Not required for ASIN ingestion — category is derived from the retailer scrape. Pass the optional `retailer` query parameter to scope the results to a single retailer region.