{{define "content"}}
Non-interactive credentials for /api/v1. They authenticate programs, not people.
This is the only time it will be shown. Relata stores only a hash of it and cannot show it again. Copy it now.
{{.NewSecret}}
The value exists only in this response and is not included in the page URL. Copy it before navigating away; refreshing the page will not recover the same secret.
| Name | Prefix | Scopes | Created | Expires | Last used | Status | |
|---|---|---|---|---|---|---|---|
| {{.Token.Name}} | {{.Token.Prefix}}… |
{{.Scopes}} | {{.Token.CreatedAt.Format "2 Jan 2006"}} | {{if .Token.ExpiresAt.IsZero}}never{{else}}{{.Token.ExpiresAt.Format "2 Jan 2006"}}{{end}} | {{if .Token.LastUsedAt}}{{.Token.LastUsedAt.Format "2 Jan 2006 15:04"}}{{else}}never{{end}} | {{.Status}} | {{if not .Revoked}} {{end}} |
Revoked and expired tokens stay listed. Hiding them would make this page a worse record of what existed than the audit log.
{{else}}You have no API tokens. Create one above to use the API.
{{end}}curl -H "Authorization: Bearer $RELATA_TOKEN" \
'{{"https://your-host/api/v1/search?q=delivery"}}'
Send it in the Authorization header only — never in a query parameter, where it
would end up in access logs, browser history and referrer headers.
Full API description.