Skip to content

Guides

API Keys

Generate and manage API Keys for server-to-server integrations.

API Keys let external systems connect to your Organization in Inspow through server-to-server integrations, without signing in as a User. Each key belongs to one Organization and only accesses its data.

When you create a key, you set a name (3 to 100 characters), an optional description and its permissions (scopes). Optionally, you can set an expiration date, a limit of requests per hour (between 1 and 10,000, 1,000 by default), a list of allowed origins (domains) and a list of allowed IPs.

ScopeAccess
read_onlyRead only (default value)
write_onlyWrite only
read_writeRead and write
adminFull access; covers any other required permission
deviceExclusive to attendance devices (kiosks/readers): it only works on the device endpoints and gives no access to the rest of the API
StatusMeaning
activeActive and operational
inactiveInactive
revokedManually revoked
expiredExpired by its expiration date

Only keys with the active status can authenticate requests.

You can list your keys (with filters and search), look up one by its identifier, update its details, revoke a key (it moves to the revoked status and stops working) and delete it permanently. Each key keeps its usage counter, its last usage date and a recent history of requests.

Send the key in every request with the X-API-Key header, or in Authorization with the Bearer or ApiKey prefix. Requests with an invalid, revoked or expired key are rejected; if you exceed the hourly limit, the request is rejected with 403 (“Rate limit excedido”) until the hour is up; the same happens if it comes from an IP or a domain that is not on the allowed lists.

Ventana de terminal
curl https://api.inspow.tech/api/v1/restaurant/plans \
-H "X-API-Key: ak_xxxxxxxx.xxxxxxxxxxxxxxxx"

An API Key accesses the data of its Organization (Plans, Subscriptions, Invoices, Beneficiaries, Attendance Records, etc.), within the reach of its scopes. In the endpoints, the people served are always beneficiaries, whatever the sector (Members, Students, Club members, Coworkers or Patients in the app).