Skip to main content
POST
/
v1
/
api_keys
Emitir nueva API key
curl --request POST \
  --url https://api.rail.cl/v1/api_keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "secret",
  "scopes": [
    "<string>"
  ]
}
'

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).

Body

application/json
type
enum<string>
default:secret
Available options:
secret,
publishable
mode
enum<string>
Available options:
test,
live
scopes
string[]

Response

200

Default Response