Guides
API keys
Create insp_live_ keys with per-resource access to read your data from another system, and revoke them when you no longer use them.
An API key lets another system read your Organization’s data through the public API without signing in as a User. Each key belongs to a single Organization and only sees its data.
Create a key
Section titled “Create a key”- In the console, go to Developers → Keys tab → New key.
- Give it a name (3 to 100 characters) and, optionally, a description.
- Choose the access for each resource: No access or Read.
- Copy the key: it is shown only once.
| Resource | Name in the API | What it can read |
|---|---|---|
| Subscriptions | subscriptions | GET /subscriptions and GET /subscriptions/{id} |
| Invoices | invoices | GET /invoices and GET /invoices/{id} |
| Customers | customers | GET /customers, GET /customers/{id} and GET /customers/{id}/members |
| Plans | plans | GET /plans and GET /plans/{id} |
| Orders | orders | GET /orders and GET /orders/{id} |
| Events | events | GET /events and GET /events/{id} |
Write access isn’t available yet: keys can only read today. Give each key only the resources your integration needs.
Format
Section titled “Format”Keys start with insp_live_. The console list shows only their first 18 characters (for example
insp_live_Ab12Cd34), enough to recognize them.
Use the key
Section titled “Use the key”Send it in the Authorization header of every request:
curl https://backend.inspow.com.co/api/public/v1/plans \ -H "Authorization: Bearer insp_live_…"| Response | When |
|---|---|
401 AUTH_API_KEY_INVALID — “Clave API inválida, vencida o revocada.” | The key doesn’t exist, expired or was revoked. |
401 AUTH_TOKEN_INVALID | You didn’t send a key in the Authorization header. |
401 AUTH_API_KEY_INVALID — “Este endpoint requiere una clave API.” | You called the public API with a console session instead of a key. |
403 | The key doesn’t have Read on that resource, or the Organization is closed. |
402 SAAS_ACCOUNT_LOCKED or 503 | The Organization’s account is locked or suspended (see Multi-tenant). |
429 | You exceeded your plan’s requests per minute: wait for what Retry-After says (see Limits). |
Messages come in Spanish: in your code, decide by code, not by message.
Last use
Section titled “Last use”The console shows when each key was last used. That value is updated at most once per minute.
Revoke
Section titled “Revoke”In Developers → Keys, click Revoke. The key stops working on the next request and
can’t be reactivated: if you need it again, create a new one. The person who created it, or
anyone with the admin:api-keys permission, can revoke it.
How many keys you can have
Section titled “How many keys you can have”Your plan sets how many keys you can have at the same time; the console shows how many of them
you use. When you reach the limit, creating another one responds
409 SAAS_API_KEY_LIMIT_REACHED: revoke one or change your plan. See Limits.
Legacy keys (ak_)
Section titled “Legacy keys (ak_)”Keys that start with ak_ come from the previous system. They can no longer be created, but the
existing ones keep working until you revoke them:
- They only work on the
/api/v1endpoints they already reached, with their usual scopes (read_only,write_onlyorread_write) and their allowed IP and origin lists. - They don’t work on the public API (
/api/public/v1): there they get403. - The console marks them as Legacy and they count toward your plan’s limit.
For a new integration, create an insp_live_ key and revoke the legacy one once you finish
migrating.
Console permissions
Section titled “Console permissions”| Action | Permission |
|---|---|
| See the keys | read:api-keys |
| Create a key | create:api-keys |
| Revoke | update:api-keys |
Personal data in customers and invoices
Section titled “Personal data in customers and invoices”A key with customers: read sees the buyer’s document in billing (type, number, NIT check digit, legal name and address): it is what you need to issue the e-invoice from your own system. Store it as personal data and do not share it.
Invoices include payment_reference, the payment gateway reference. VAT is not on the invoice: it comes from the plan (tax_included_percent). Base = amount / (1 + tax_included_percent / 100).