Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.relayos.com.br/llms.txt

Use this file to discover all available pages before exploring further.

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
name
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).
curl -X POST https://api.relayos.com.br/v1/api-keys \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "production-backend"}'

Response

A 200 response returns the new API key along with its metadata.
id
string
Unique identifier for this API key. Use this ID to revoke the key later via DELETE /v1/api-keys/{id}.
name
string
The descriptive label you provided.
key
string
The API key value. This is shown only once — store it securely before closing this response.
createdAt
string
ISO 8601 timestamp of when the key was created.
{
  "id": "key_01hwxyz222bbb",
  "name": "production-backend",
  "key": "rly_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "createdAt": "2026-05-14T12:00:00Z"
}