SmakeSmake API Docs
Setup

Authentication

Smake Production Preparation API - Authentication

Include your API token as bearer token value in each request. For the customer approval you also create a customer token for the Smake web component.

API token

The API token authenticates your system for all endpoints. Users with access to the API settings create it in the production preparation platform under Configuration → API. The token is shown once after it was created and stays valid until it is deleted there.

GET /preparation-orders/1 HTTP/1.1
Authorization: Bearer API_TOKEN_HERE

You must replace API_TOKEN_HERE with your API Token.

Customer token

The customer token authenticates the customer approval of a single preparation order in the Smake web component and gives access to this preparation order only.

Create it with Create a customer token for a preparation order for a preparation order that requires the customer approval, while it is released. The customer token

  • is valid until the expires_at of the response, 6 hours by default,
  • is revoked when a new customer token is created for the same preparation order,
  • is revoked when the decisions are submitted, by the customer in the web component or in the production preparation platform.

Hand the customer token to the web component of your customer and keep the API token in your system.

On this page