Skip to content

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.

  1. In the console, go to Developers → Keys tab → New key.
  2. Give it a name (3 to 100 characters) and, optionally, a description.
  3. Choose the access for each resource: No access or Read.
  4. Copy the key: it is shown only once.
ResourceName in the APIWhat it can read
SubscriptionssubscriptionsGET /subscriptions and GET /subscriptions/{id}
InvoicesinvoicesGET /invoices and GET /invoices/{id}
CustomerscustomersGET /customers, GET /customers/{id} and GET /customers/{id}/members
PlansplansGET /plans and GET /plans/{id}
OrdersordersGET /orders and GET /orders/{id}
EventseventsGET /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.

Keys start with insp_live_. The console list shows only their first 18 characters (for example insp_live_Ab12Cd34), enough to recognize them.

Send it in the Authorization header of every request:

Ventana de terminal
curl https://backend.inspow.com.co/api/public/v1/plans \
-H "Authorization: Bearer insp_live_…"
ResponseWhen
401 AUTH_API_KEY_INVALID — “Clave API inválida, vencida o revocada.”The key doesn’t exist, expired or was revoked.
401 AUTH_TOKEN_INVALIDYou 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.
403The key doesn’t have Read on that resource, or the Organization is closed.
402 SAAS_ACCOUNT_LOCKED or 503The Organization’s account is locked or suspended (see Multi-tenant).
429You 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.

The console shows when each key was last used. That value is updated at most once per minute.

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.

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.

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/v1 endpoints they already reached, with their usual scopes (read_only, write_only or read_write) and their allowed IP and origin lists.
  • They don’t work on the public API (/api/public/v1): there they get 403.
  • 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.

ActionPermission
See the keysread:api-keys
Create a keycreate:api-keys
Revokeupdate:api-keys

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).