GET /service/auth/token/:environment/:tenantSlug
Access token
Returns a new access token. The access token validity is time-limited.
Path Parameters
Possible values: [production, sandbox]
API key/secret and environment must match.
Tenant slug
Header Parameters
API key for given environment
API secret for given environment
- 200
- 401
- 403
Access token with scope and expiration time
Schema
generated access token to access API
RFC 3339 date time format (2007-11-06T16:34:41.000Z)
number of seconds when token session expires
Possible values: [account_owner, account_info, account_transactions, payments, risk_scoring]
Set of token access privileges
{
"accessToken": "eyJhbGciOiJIUzI1NiJ9.eyJ0ZW5hbnRJZCI",
"expires": "2025-10-30T15:47:48.759Z",
"expiresIn": 360,
"scope": [
"account_owner"
]
}
Unauthorized
Schema
Description of error
Possible values: [invalid_parameter, unauthorized, forbidden, not_found, not_allowed, bad_request, other]
Error code of a specific error. For more details visit https://documentation.fliqa.io/api/errors/{errorCode}
Possible values: [api_key_secret_header_must_be_provided, authorization_header_must_be_provided, access_not_allowed, domain_not_allowed, access_token_expired, invalid_access_scope, not_authorized, phone_or_email_not_registered, phone_number_start_with_plus_and_country, phone_number_invalid, email_invalid, email_or_phone_number_required, invalid_pin, could_not_interpret_numbers_after_plus, supplied_string_not_phone_number, string_supplied_too_short_to_be_phone_number, string_supplied_too_long_to_be_phone_number, string_supplied_was_too_long_to_parse, unspecified]
Error sub code of a specific error. For more details visit https://documentation.fliqa.io/api/errors/{errorCode}#{errorSubCode}
Link to documentation if available, typically https://documentation.fliqa.io/api/errors/{errorCode}
Unique request id
Unique resource id
{
"errorMessage": "string",
"errorCode": "unauthorized",
"errorSubCode": "phone_or_email_not_registered",
"documentationUrl": "string",
"requestId": "554099e7d0b648d7b96bc31c148425b8",
"resourceId": "9c14c6f2f0ee4a54a280be3c18ec1dba"
}
{
"errorCode": "unauthorized",
"errorMessage": "Not authorized",
"documentationUrl": "https://documentation.fliqa.io/api/errors/unauthorized"
}
Access forbidden / most likely production access is not allowed
Schema
Description of error
Possible values: [invalid_parameter, unauthorized, forbidden, not_found, not_allowed, bad_request, other]
Error code of a specific error. For more details visit https://documentation.fliqa.io/api/errors/{errorCode}
Possible values: [api_key_secret_header_must_be_provided, authorization_header_must_be_provided, access_not_allowed, domain_not_allowed, access_token_expired, invalid_access_scope, not_authorized, phone_or_email_not_registered, phone_number_start_with_plus_and_country, phone_number_invalid, email_invalid, email_or_phone_number_required, invalid_pin, could_not_interpret_numbers_after_plus, supplied_string_not_phone_number, string_supplied_too_short_to_be_phone_number, string_supplied_too_long_to_be_phone_number, string_supplied_was_too_long_to_parse, unspecified]
Error sub code of a specific error. For more details visit https://documentation.fliqa.io/api/errors/{errorCode}#{errorSubCode}
Link to documentation if available, typically https://documentation.fliqa.io/api/errors/{errorCode}
Unique request id
Unique resource id
{
"errorMessage": "string",
"errorCode": "unauthorized",
"errorSubCode": "phone_or_email_not_registered",
"documentationUrl": "string",
"requestId": "554099e7d0b648d7b96bc31c148425b8",
"resourceId": "9c14c6f2f0ee4a54a280be3c18ec1dba"
}
{
"errorCode": "forbidden",
"errorMessage": "Tenant with slug 'my_slug' does not have 'production' access.",
"documentationUrl": "https://documentation.fliqa.io/api/errors/forbidden"
}