Skip to main content
POST
/
api
/
openapi
/
v1
/
api-keys
Criar Chave API
curl --request POST \
  --url https://app.converza.io/api/openapi/v1/api-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Chave de Integração de Produção",
  "expires_at": "2026-12-31T23:59:59.000Z"
}
'
{
  "success": true,
  "data": {
    "key_id": "cvz_key_abc123",
    "key_secret": "cvz_secret_xyz789",
    "name": "Chave de Integração de Produção",
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Token JWT obtido do endpoint /api/openapi/auth/token

Body

application/json
name
string
required

Nome descritivo para a chave API

Example:

"Chave de Integração de Produção"

expires_at
string<date-time>

Data de expiração opcional (ISO 8601)

Example:

"2026-12-31T23:59:59.000Z"

Response

Chave API criada com sucesso

success
boolean
Example:

true

data
object