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

Request

  • Base URL
    https://api.ext-sandbox.fourthline.com
  • URL
    https://api.ext-sandbox.fourthline.com/v1/oauth2/token
  • Auth
    OAuth 2
    Client credentials
    Token URL: https://example.com/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.

Changes

No recorded changes to this operation across all 2 revisions of this API.