Secret Keys
- Purpose: Secret keys are used for all server-side API interactions. They grant full access to your Sarafa account’s API functionalities and should be kept confidential and securely stored.
- Format: Secret keys follow the UUID version 4 (Universally Unique Identifier) format.
Example:
a1b2c3d4-e5f6-4789-9012-34567890abcd
Public Keys
- Purpose: Public keys are specifically designed for use in client-side integrations, such as Sarafa’s checkout widgets. They have restricted permissions and are safe to embed directly in your web applications.
- Format: Public keys also follow the UUID version 4 format.
Example:
f9e8d7c6-b5a4-4321-fedc-ba9876543210
Base URLs
All API requests to Sarafa should be directed to the following base URL for the production environment:API Key Usage
You will need to include your API key in the header of every API request for authentication. The key should be passed in a header with the nameapi-key
.
Example using curl
: