The Journal Entries APIs are protected by the OAuth2.0 authentication protocol.
For more details about it you can refer to the [Authentication Overview](https://developer.mycampari.com/docs/read/getting_started/Oauth20) section.
## Request
The token API is exposed at the following endpoint:
In order to build the complete URL you can refer to the following [guide](https://developer.mycampari.com/docs/read/getting_started/How_to_build_Token_API_URL).
As input you need to pass the following information:
POST Parameter
Value
grant_type
Fixed to: "client_credentials"
client_id
Your client application key
client_secret
Your client secret
as explained in details [here](https://developer.mycampari.com/docs/read/getting_started/oauth20/build_a_request/External_API_Client).
## Response
A typical valid response looks like this:
```
{
"access_token": "fg*********************x",
"token_type": "bearer",
"expires_in": 3600
}
```
which means that the provided access token is valid for 3600 seconds (equivalent to 1 hour).
After the expiration time, this token won't be valid and another access token must be retrieved.
0 Comments
Please sign in to post a comment.