The two keys
| Header | Value | Role |
|---|---|---|
Apikey | Your API key | Identifies your project |
Authorization | Bearer {API_TOKEN} | Authenticates the request |
Once your project is activated, your
Apikey and API_TOKEN keys are available directly in your LigdiCash dashboard.Full set of headers
All your requests must include these four headers:cURL example
cURL
Best practices
Store your keys in environment variables, never hardcoded in source code:Authentication errors
An authentication error returnsresponse_code: "01" and response_text: "Echec (Code00)":
- Incorrect or expired
Apikey - Incorrect or expired
API_TOKEN - One or more required headers missing
wiki field present in every response contains a URL to the documentation for the error codes specific to the endpoint called. Always consult this URL to get the exact meaning of the returned code — it is the official LigdiCash reference for interpreting response_text.
