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"
}
Crea una nueva API key para la cuenta del usuario. La API key se genera automáticamente y se retorna una sola vez.
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"
}
Datos para crear la nueva API key
The body is of type object
.
API key creada exitosamente.
The response is of type object
.
Was this page helpful?