Create an API key (returns the plaintext once)
Changed onReturns the new key's plaintext secret, which is shown only in this response, with its id, prefix, organization id, and any permissions or budget. With permissions enabled, only a signed-in session creates keys, and a new key belongs to the organization (kind org), so it keeps working if its creator leaves; personal and service kinds are refused, except dashboard playground keys, which are always personal. Its permissions come from template or permissions and can never exceed the creator's own access (403 ESCALATION_REFUSED). scopes still works and maps to the key's ceiling. budget caps what the new key may spend on inference per period. A key that carries a budget cannot create keys (403 FORBIDDEN), so it cannot mint itself one without a budget.
Checked against the apikey.create permission for the resource it acts on. See Permissions for the roles and API key permissions that include it.
Request
- Base URLhttps://api.openrelay.inc
- URLhttps://api.openrelay.inc/v1/orgs/{orgId}/api-keys/create
- AuthHTTP bearer
Path parameters
Request body
Response
Created
Changes
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- breaking
removed the enum value
serviceof the request property - warning
removed the optional property
from the response with the status - info
request property
deprecated - info
removed the
serviceenum value from theresponse property for the response status
- breaking