Skip to content

Authentication

Info

JWT Token is needed to call the other API v3 endpoints. It complies with the RFC 7519 standard.

Get token

POST /oauth2/token

Info

Resource Owner Password Credentials.

Request parameters

Name Type Location Description
flinkey-API-Key string header Required. API key which provides access to this API.
Content-Type string header Required. The content type of the request. Value: application/x-www-form-urlencoded

Request body

username={Your username here}&password={Your password here}&
grant_type=password

Response

200 OK

{
  "type": "object",
  "properties": {
    "access_token": {
      "type": "string"
    },
    "expires_in": {
      "type": "string"
    },
    "token_type": {
      "type": "string"
    }
  }
}

Response

401 UNAUTHORIZED

Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription.
{
  "statusCode": 401,
  "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription."
}

Response

415 UNSUPPORTED MEDIA TYPE

{
  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.13",
  "title": "Unsupported Media Type",
  "status": "415",
  "traceId": "<traceId>"
}