Skip to main content
POST
/
api
/
v1
/
authorize
Authorize
curl --request POST \
  --url https://www.{baseurl}.com/api/v1/authorize \
  --header 'Content-Type: application/x-www-form-urlencoded'
{
  "access_token": "<string>",
  "token_type": "<string>",
  "expires_in": 123
}
Authorize with Flinks to obtain an access_token used for subsequent FlinksPay API calls. Pass your onboarding Username / Password with URL-encoded grant_type=client_credentials. Tokens are time-limited (see expires_in in the response, default 299 seconds) and single-use — generate a new one for each session. If you believe credentials have been compromised, contact Flinks to rotate them.

One token per session

A token can only initiate a single session. Call /Authorize again before each subsequent session.

Body

application/x-www-form-urlencoded
grant_type
string

The type of grant (e.g., client_credentials).

Username
string

The username provided during onboarding.

Password
string

The password provided during onboarding.

Response

Result

access_token
string

The access token.

token_type
string

The type of token.

expires_in
integer

Expiration time in seconds.