Skip to content
INRENT
Getting started

Authentication

Authenticate API requests with INRENT API keys.

Send your key as a bearer token on every request:

Authorization: Bearer sk-inrent-prod-xxxxxxxxxxxxxxxx

The x-api-key header is also accepted for tools that can't set Authorization.

Key format

sk-inrent-<env>-<43 random characters> where <env> is dev, stg or prod. Keys carry about 256 bits of entropy and no embedded account data.

How keys are stored

INRENT stores only an HMAC-SHA256 digest of each key, computed with a server-side secret. Even with database access, keys can't be recovered or verified offline. That's why a key is shown only once.

Failure responses

StatusCodeMeaning
401missing_api_keyNo key was sent.
401invalid_api_keyThe key doesn't match an active key.
401revoked_api_keyThe key was revoked or rotated.
401expired_api_keyThe key's expiry date has passed.
403organization_suspendedThe organization is suspended.
429auth_rate_limitedToo many failed attempts from your IP address.

Best practices

  • Keep keys server-side. Never ship them in browser or mobile bundles.
  • Use separate keys per environment and service, with limits.
  • Rotate keys periodically and immediately if exposed. Revocation takes effect at once.
  • Use the management API with narrowly scoped keys for automation.
Edit this page