POST
/
api-keys
Crear nueva API key
curl --request POST \
  --url https://api.gotrebol.com/api-keys \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "id": "my-api-key-1"
}'
{
"id": "ak_1234567890abcdef",
"api_key": "treb_sk_live_1234567890abcdef1234567890abcdef1234567890abcdef",
"created_at": "2024-01-15T10:30:00Z"
}

Authorizations

x-api-key
string
header
required

Body

application/json

Datos para crear la nueva API key

id
string
required

Identificador único para la API key

Example:

"my-api-key-1"

Response

API key creada exitosamente.

id
string

ID único de la API key

Example:

"ak_1234567890abcdef"

api_key
string

La API key generada (solo se muestra una vez)

Example:

"treb_sk_live_1234567890abcdef1234567890abcdef1234567890abcdef"

created_at
string<date-time>

Fecha y hora de creación

Example:

"2024-01-15T10:30:00Z"