Authentication
Getting a JWT
nShift Delivery's API uses JWT (JSON Web Token) for authentication. Before calling any API endpoint, you need to use your API key for a short-lived token.
API Key
API keys are created inside nShift Delivery under Maintenance → API Keys. Each key consists of two parts:
Id | Username |
Secret Id | Password |
The API key from Delivery is used to authenticate against the https://api.unifaun.com/rs-extapi/v1/sessions/jwt endpoint.
Keep your API key confidential — treat it like a password.
Request a Token
Endpoint
GET https://api.unifaun.com/rs-extapi/v1/sessions/jwt
Authentication method: HTTP Basic Auth
Authorization: Basic BASE64(<Id>:<Secret Id>)
Example request
curl -X POST https://api.unifaun.com/rs-extapi/v1/sessions/jwt \
-H "Authorization: Basic $(echo -n '<Id>:<Secret Id>' | base64)"
Example response
{ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."}
Using the Token
Pass the token as a Bearer token in the Authorization header on all subsequent requests:
Authorization: Bearer <token>
Token validity: 12 hours. After expiry, repeat the exchange above to get a new token.
GET
/
1