Ana içeriğe atla
post/v1/api-keys

Create a new API key (secret returned exactly once)

Parametreler

ParametrelerTipZorunluAçıklama
User-Agent(header)string
authorization(header)

İstek gövdesi

  • namestringZorunlu
  • scopesarrayOpsiyonel
  • environmentenum (2)Opsiyonel
  • expires_in_daysanyOfOpsiyonel
  • ip_allow_listarrayOpsiyonel

Yanıtlar

  • 201Successful Response
    • summaryobjectZorunlu

      Public-safe shape — never includes the raw secret.

      Açıklama
      • idstringZorunlu
      • namestringZorunlu
      • prefixstringZorunlu
      • scopesarrayZorunlu
      • environmentenum (2)Opsiyonel
      • ip_allow_listarrayZorunlu
      • expires_atanyOfZorunlu
      • last_used_atanyOfZorunlu
      • created_atstring <date-time>Zorunlu
      • rotated_old_expires_atanyOfOpsiyonel
      • previewanyOfOpsiyonel
    • secretstringZorunlu
  • 422Validation Error
    • detailarrayOpsiyonel
POST /v1/api-keys | AIDE