Skip to content

Authentication

Info

Please find the token definition here.

Get token

POST /oauth2/token

Info

Resource Owner Password Credentials - RFC 6749 Section 1.3.3

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
{
  "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>"
}