API Introduction
The Cliq API supports two authorization methods for authenticating your requests. Choose the method that best fits your use case.
Authorization Methods
1. Bearer Token Authentication
This method uses JWT tokens obtained through the login endpoint. Include the token in the Authorization header.
Usage:
Authorization: Bearer <token>
How to get a token:
- Call the login endpoint with your credentials
- Extract the
access_tokenfrom the response - Use this token in subsequent API calls
2. API Key Authentication
This method uses API keys for programmatic access. Include both the API key and secret in the request headers.
Usage:
x-api-key: <your-api-key>
x-api-secret: <your-api-secret>
How to get API keys:
- Generate an API key using the Generate API Key endpoint
- Store the
api_keyandapi_secretfrom the response securely - Use these credentials in the request headers for subsequent API calls