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

The body is of type object.

Response

201
application/json

API key creada exitosamente.

The response is of type object.