What is an API Key?
An API key is a secret token that identifies your application or system when making requests to Compago’s API. It ensures that only authorized systems can initiate transactions, retrieve data, or trigger any backend logic. Keep your API key secure and never expose it in public client-side code.How to Generate an API Key
To create an API key:- Sign in to your Compago Dashboard.
- Navigate to Configuraciones → Desarrollador.
- Click Create API Key.
- Enter a name for the key (e.g.,
Production App,Test Integration). - Confirm creation and copy the key immediately (it will only be visible once).
Using the API Key in Requests
Every request to a protected endpoint must include your API key in the request headers.Header Format
curl:
401 Unauthorized response.
🔒 Always keep your API key secret. Rotate it regularly and never commit it to version control.