CreateAPIKeyRequest

  • member_id
    Type: string
    required

    External ID of an active member in the current workspace. Required for every workspace type.

  • name
    Type: string
    min length:  
    1
    max length:  
    64
    required

    UTF-8 encoded, up to 64 bytes.

  • billing_type
    Type: string enum
    values
    • credit_balance
    • coding_plan
  • limits
    Type: object · APIKeyLimits

    Daily limit ≤ 7-day limit ≤ 30-day limit. USD limits allow at most two decimal places. Runtime limits cannot exceed the workspace hard limit.

    • concurrency_limit
      Type: integer | null
      min:  
      0

      Omit to retain the existing value. null or 0 uses the existing unlimited or inherited semantics, subject to the workspace hard limit.

    • d30_limit_usd
      Type: number | null
      min:  
      0
      multiple of:  
      0.01

      USD limit. null clears it. Omit it to retain the existing value (creation inherits the workspace default).

    • d7_limit_usd
      Type: number | null
      min:  
      0
      multiple of:  
      0.01

      USD limit. null clears it. Omit it to retain the existing value (creation inherits the workspace default).

    • day_limit_usd
      Type: number | null
      min:  
      0
      multiple of:  
      0.01

      USD limit. null clears it. Omit it to retain the existing value (creation inherits the workspace default).

    • rpm_limit
      Type: integer | null
      min:  
      0

      Omit to retain the existing value. null or 0 uses the existing unlimited or inherited semantics, subject to the workspace hard limit.

    • tpm_limit
      Type: integer | null
      min:  
      0

      Omit to retain the existing value. null or 0 uses the existing unlimited or inherited semantics, subject to the workspace hard limit.