Authentication
Curacel Pay uses bearer token authentication for all API endpoints.
To authenticate your API requests, include your API secret key as a bearer token in the request headers:
headers: {
'Authorization': 'Bearer <API_KEY>'
'Accept': 'application/json',
},
note
For security reasons, it's highly recommended to make API calls from your server rather than from client-side applications. This helps to prevent exposing your secret key, which could lead to security vulnerabilities.