Authentication
3 min
There are several ways to authenticate with ENGINE4. Depending on the authentication method, different requests are sent to the /token endpoint:
Password
You can obtain an access token using your user account (username and password) by sending the following request:
{
"client_id": "YOUR_CLIENT_ID",
"grant_type": "password",
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
}
ClientSecret
You can obtain an access token using your client secret by sending the following request.
{
"client_id": "YOUR_CLIENT_ID",
"grant_type": "client_credentials",
"client_secret": "YOUR_CLIENTSECRET"
}
Usage
Authentication for the remaining API endpoints is performed using the Authorization HTTP header, with the access token being transmitted as a Bearer token.
{
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}