Skip to main content

Authentication

You will need the access token as the header of almost all the requests made via our API. To receive it, you will need to make a credential request using the information we sent you regarding your credentials. The generated token will be valid for 24 hours.

info

You must replace your-jwt-token with your generated JWT Token.

This endpoint has a rate limit of 3 requests per 30 seconds, so ensure to re-use the generated token whenever possible.

Authorization: Bearer your-jwt-token

Sign-in

To authenticate, use this code:

curl -X POST "https://api.facilitapay.com/api/v1/sign_in" \
-H "Content-Type: application/json" \
-d '{
"user": {
"username": "email registered",
"password": "password"
}
}'

Make sure to replace username and password with your API keys given on the onboarding process.

{
"jwt": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9....",
"name": "name registered",
"username": "email registered"
}
POST/sign_in

Body Parameters

ParameterDescriptionTypeRequired
userAn object containing all the required valuesobjecttrue
usernameAPI usernamestringtrue
passwordAPI passwordstringtrue

Demonstration

After signing in from this form, all sample requests will be updated with the generated token.

This feature also enables getting the list of pay-in bank accounts. See Real Bank Accounts for more details.

Authentication