x-api-key header) and your TAPI token (x-authorization-token header). Both are required: if either is missing, the request is rejected with 401.
The two credentials
string
required
Your integration’s API key on the Tapi API Gateway. Tapi provisions it for you and it is different per environment (development, staging, production). It identifies your application and controls access to the gateway.
string
required
Your TAPI token (a JWT), the same one you already use with the rest of the Tapi platform. It is sent without the
Bearer prefix.Get your TAPI token
The TAPI token (a JWT) comes from the Tapi login, the same one you already use with the rest of the platform. Send your credentials and you will receive anaccessToken:
accessToken (your TAPI token) and a refreshToken:
The
accessToken expires after ~4 hours. When it expires, log in again (or use the refreshToken with the standard Tapi flow). The login x-api-key is your integration’s key and is not the same one you use against the Facade.Test an endpoint
- From the playground
- With curl
In the API Reference, open any endpoint and use the Send button:
- Pick the server in the selector.
- Paste your
x-api-keyand yourx-authorization-tokeninto the authentication fields. - Fill in the parameters and press Send.
What your token resolves for you
Starting from your token, Tapi identifies your account and internally resolves the entire internal model (company, modalities, etc.). You work with clear business concepts and never need to send or know that internal data.Authentication errors
When the API key or the token is missing, invalid, or expired, the API responds with401 and this structure:
error object with code and message, plus a requestId that you can share with support to trace the request.
Expired token
If your token expired, refresh it with the same flow you already use for the rest of the Tapi API and retry the request. The Facade has no refresh mechanism of its own: it reuses the one from the Tapi ecosystem.Tip: if you use a Tapi SDK, the
x-api-key and x-authorization-token headers come preconfigured, so you don’t have to build them by hand.
