v2 is generally available. See what changed
Skip to content
Acme Commerce API Menu

Authentication

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/tokens
  • GET /api/v2/products
  • GET /api/v2/products/{product}
  • POST /api/v1/auth/tokens
  • GET /api/v1/products
  • GET /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.

Free while you are building.

Get an API key