API v1FiatPe Home
FiatPeDocs
AUTHENTICATION

Create your Authorization key

FiatPe provides an API Key and Salt Key for accessing protected APIs. Combine both values using a colon, Base64 encode the complete string, and pass the encoded value in the Authorization header using the Basic scheme.

1

Get your credentials

FiatPe provides your API Key and Salt Key.

API Key: fp_test_abc123Salt Key: salt_xyz789
2

Combine the values

Join the API Key and Salt Key using a colon.

fp_test_abc123:salt_xyz789
3

Base64 encode the combined value

Encode the complete credential string without changing its format.

ZnBfdGVzdF9hYmMxMjM6c2FsdF94eXo3ODk=
4

Add it to the Authorization header

Prefix the Base64 encoded value with Basic.

Authorization: Basic ZnBfdGVzdF9hYmMxMjM6c2FsdF94eXo3ODk=
Important: Do not Base64 encode the API Key and Salt Key separately. First combine them as api_key:salt_key, then encode the complete value.
SECURITY

Security Best Practices

Protect your FiatPe API credentials and integration by following these recommended security practices across Test and Live environments.

01

Keep API credentials server-side

Never expose your API Key, Salt Key, or Authorization value in frontend applications, browser code, mobile app bundles, or public repositories.

02

Store credentials securely

Keep credentials in environment variables, a secrets manager, or another protected server-side configuration system instead of hardcoding them in source code.

03

Use separate environment credentials

Maintain separate credentials for Test and Live and ensure requests are sent only to the matching environment.

04

Do not log sensitive headers

Avoid logging full API keys, Salt Keys, Authorization headers, or other sensitive authentication values in application logs.

05

Use HTTPS for all requests

Send FiatPe API requests only over secure HTTPS connections to protect credentials and transaction data in transit.

Important: Treat your API Key and Salt Key as sensitive credentials. If you suspect they have been exposed, contact FiatPe Support and rotate the affected credentials immediately.