This is the authentication mechanism common to all YOM services. To access any of them, YOM will provide you with application credentials that you must use to obtain an access token (JWT) before each query session.
| Environment | Base URL |
|---|---|
| Production | https://api.youorder.me/api/v2 |
| Staging | https://api.solopide.me/api/v2 |
In the examples on this page, {BASE_URL} is the base URL of the environment you are working with.
Through a secure channel, YOM will provide you with the following credential pair for the corresponding environment:
| Field | Description |
|---|---|
client_id |
Public identifier of the application. |
client_secret |
Application secret. Treat it like a password: do not publish it in repositories, logs, emails, or tickets. |
<aside> ⚠️
If you suspect the client_secret has been exposed, contact us to rotate it.
</aside>
Before starting the integration, make sure you have:
client_id and client_secret for the corresponding environment.Before querying data, you must obtain an access token (JWT) using your credentials.
Endpoint:
POST {BASE_URL}/auth/tokens/grant
Required headers: