v1

latestOpenAPI 3.0.02026-07-2667172347.6 KB
Authentication

Create access token

Use this endpoint to create an access token valid for <strong>1 hour</strong> to authenticate requests to our API.

post/v1/oauth2/token

Headers

Cache-Controlstring

To have the response validated by the origin server instead of reusing stored content, we strongly recommend including this parameter and setting it to no-cache.

Content-Type'application/x-www-form-urlencoded' | 'application/json' required
Example:application/json

Set to either: <br />application/x-www-form-urlencoded or <br />application/json

Request body

grant_typestring required

Set to client_credentials.

client_idstring required

Your unique identifier from your Fourthline API credentials.

client_secretstring required

Your unique password from your Fourthline API credentials.

Response

OK

token_typestring

The type of access token. The value is always bearer.

access_tokenstring

Your access token to authenticate requests in our API. <br /><br />Format: 32-character string <br /><br />Example: 790f325a-48c9-4b82-bb53-c0ea128236f0

expires_ininteger

The number of seconds before the access_token expires.

All 67 operations