Saltar al contenido principal
POST
Issue an API key of the tenant

Autorizaciones

Authorization
string
header
requerido

Send your Cufea partner key as Authorization: Bearer cufea_partner_.... Only the /v1/partner routes accept it.

Parámetros de ruta

tenant_id
string<uuid>
requerido

Cuerpo

application/json
stage
enum<string>
requerido

The stage the key drives. production needs a promoted tenant (409 stage_closed).

Opciones disponibles:
sandbox,
test,
production

Respuesta

Successful Response

api_key
string
requerido

The full key. Shown ONCE, here: it cannot be retrieved again.

id
string<uuid>
requerido
prefix
string
requerido

Public lookup prefix, the part after cufea_sandbox_, cufea_test_ or cufea_prod_ (or the legacy cfa_test_).

revoked
boolean
requerido
stage
enum<string>
requerido

The one stage the key drives.

Opciones disponibles:
sandbox,
test,
production
revoked_at
string<date-time> | null