API keys are a PSA feature and write-scoped: they can add a ticket note or log time, and nothing else. There is no read API and no key that can act with your full account permissions.
Creating a key
1
Open API Keys settings
Go to Settings → API Keys and click New Key.
2
Name it
Give the key a name that identifies what will use it (e.g. “n8n — ticket automations”).
3
Choose scopes
Select the permissions this key needs:
- Time entries — create time entries on tickets.
- Internal notes — add internal notes to tickets.
4
Set an expiration (optional)
Set an expiration date, or leave it open-ended.
5
Save and copy the key
Regentra shows the full key exactly once. Copy it now — it can’t be retrieved again, only revoked and replaced with a new one.
Using a key
Every key starts withrgk_. Send it as a bearer token on every request:
Confirming a key works
GET /api/v1/ping requires no scope and has no side effects — use it to confirm your Authorization header is wired up correctly before pointing a real workflow at the write endpoints:
Adding an internal note to a ticket
Requires the Internal notes scope.Logging time on a ticket
Requires the Time entries scope.userEmail to the request body — it must match an active, non-service technician in your organization, or the request is rejected rather than silently falling back to the service account.
Idempotent requests
Automations retry. To make a retried request safe, send anIdempotency-Key header on time-entry creation:
"idempotentReplay": true in the response.
Attribution
Every write made through an API key is audit-logged and attributed to the key, not to a person — audit log entries show the key’s name so you can trace exactly which automation made a change.Revoking a key
Click Revoke on any key from Settings → API Keys. A revoked key stops working immediately. This can’t be undone — create a new key if the automation needs to keep running.Errors
Every authentication failure — a missing key, a malformed key, an unknown key, a revoked key, an expired key, or a key missing the required scope — returns the same401 Unauthorized with no further detail in the response body. This is deliberate: it prevents anyone probing the API from learning which of those cases applies. If your automation is unexpectedly failing, check the key’s status and scopes in Regentra directly rather than trying to infer the cause from the response.
Requests are also rate-limited — per source IP before a key is even validated, and per key once it resolves — and return 429 Too Many Requests if you exceed those limits. If your organization’s plan doesn’t include PSA, authenticated requests fail with 403 Forbidden instead of 401.