Skip to main content
S2S authentication is a two-step process: exchange your credentials for a JWT, then attach that JWT as a Bearer token on every subsequent request.
Your api_key and api_secret are shown once when the Yonne admin generates them. Store them securely in environment variables immediately — they cannot be retrieved again (only regenerated via rotate).

Step 1 — Exchange credentials for a JWT

Success response:

Step 2 — Attach the JWT to every request

All protected S2S endpoints require the token in the Authorization header:

Token lifetime and refresh

The JWT is valid for 24 hours. Implement a simple refresh strategy in your integration:
Node.js

Credential prefixes


Authentication errors

A 403 S2S_DISABLED response means your integration was turned off on the admin side. Your credentials are still intact — the Yonne admin just needs to re-enable the integration via toggle.