Skip to main content
Use this endpoint to generate an additional API key for your project. Creating separate keys for different environments (e.g., development, staging, production) or services lets you revoke individual access without affecting others.
The key value is returned only once and cannot be retrieved again. Copy it immediately and store it in a secure secrets manager.

Request

POST https://api.relayos.com.br/v1/api-keys
string
required
A descriptive label for the key. Use this to identify which service or environment uses the key (e.g., production-backend, staging-worker).

Response

A 200 response returns the new API key along with its metadata.
string
Unique identifier for this API key. Use this ID to revoke the key later via DELETE /v1/api-keys/{id}.
string
The descriptive label you provided.
string
The API key value. This is shown only once — store it securely before closing this response.
string
ISO 8601 timestamp of when the key was created.