How to authenticate with Cegid ID?
Before you can use any Yet API endpoint, you need to authenticate with Cegid ID and obtain an access token. This article explains how to request that token and where to find your login credentials. Authentication requires four fields: To authenticate, send the following request: Your client_id and client_secret are generated from the Yet portal: Note: If you're integrating with the Energy scope, make sure to request your credentials from the API Energia card, as this uses a different scope (yet-energy).Request
Type POST Production https://id.cegid.cloud/connect/token Body {
"client_id": "string",
"client_secret": "string",
"grant_type": “client_credentials”,
"scope": “yet-api-external"
}Response {
"access_token": "eyJh(…)Y6kg",
"expires_in": 14400,
"token_type": "Bearer",
"scope": "yet-api-external"
}Obtaining Login Details