Skip to main content
POST
/
v1
/
api_keys
/
{id}
/
rotate
Rotar API key
curl --request POST \
  --url https://api.rail.cl/v1/api_keys/{id}/rotate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "grace_hours": 24
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.rail.cl/llms.txt

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

Authorizations

Authorization
string
header
required

API key emitida desde el dashboard. Servidor-a-servidor con sk_, browser-to-server con pk_. El prefijo identifica modo (test/live).

Path Parameters

id
string
required

Body

application/json
grace_hours
integer
default:24
Required range: 1 <= x <= 168

Response

200

Default Response