Create, scope, rotate, and revoke developer API keys.
Overview
All Developer API requests authenticate with X-API-Key. This page covers every endpoint for managing the keys themselves.Base URL:https://api.indigenius.ai/v1Required scope for key management:keys:read (read), keys:write (create/update/rotate/revoke)
POST /v1/auth/keys
Creates a new API key with specific scopes and optional restrictions. rateLimitPerMinute and rateLimitPerHour cannot be changed after creation — there’s no update endpoint for them, so pick these carefully (or just omit them, see the note below).
Field
Type
Required
Description
name
string
No
Human-readable label for the key
scopes
string[]
No
Permission scopes granted to the key
expiresAt
ISO 8601 date
No
Expiry date/time for the key
rateLimitPerMinute
integer
No
Accepted and stored (1–1000), but not currently enforced — see Rate Limits for the limit that’s actually applied.
rateLimitPerHour
integer
No
Accepted and stored (1–10000), but not currently enforced — see Rate Limits.
allowedIps
string[]
No
IP allowlist; omit to allow all. Unlike the rate limit fields, this one is actively enforced on every request.
callbackUrl
https URL
No
Webhook URL to receive event notifications for this key
import requests, osresponse = requests.post( "https://api.indigenius.ai/v1/auth/keys", headers={ "X-API-Key": os.environ["INDIGENIUS_API_KEY"], "Content-Type": "application/json", }, json={ "name": "Production key", "scopes": ["calls:read", "calls:write", "agents:read", "agents:write"], "expiresAt": "2027-01-01T00:00:00.000Z", "rateLimitPerMinute": 120, "rateLimitPerHour": 2000, "allowedIps": ["102.88.10.5"], # optional — provide a webhook URL to receive event notifications for this key "callbackUrl": "https://client.example.com/hooks/indigenius", }, timeout=30,)print(response.json())
The full API key secret is returned only in this response. Store it
immediately in a secret manager. If it is lost, rotate the key — it cannot be
retrieved again.