Authentication
This page
Authenticated endpoints expect a bearer token.
Authorization: Bearer YOUR_TOKEN
Which endpoints need it#
18 of 24 endpoints require authentication.
These endpoints are public and need no credentials:
POST /api/v2/auth/tokensGET /api/v2/productsGET /api/v2/products/{product}POST /api/v1/auth/tokensGET /api/v1/productsGET /api/v1/products/search
A complete request#
curl -X DELETE 'https://api.acme.example/api/v2/auth/tokens/current' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Accept: application/json'
A request with a missing, malformed or expired token is rejected with 401.
A valid token that lacks permission for the operation is rejected with 403.
Set up to test
Put a credential here and every Try it on this site will send it. Requests go from this browser straight to the API — the credential is never sent anywhere else, and never appears in the examples you copy.
Free while you are building.
Get an API key