AIGateway

Create an AI Gateway key

Changed on

This endpoint may be changed or removed at any time. Don't use it in production environments.

The key value is returned only by this call and cannot be read back later.

post/project/{project}/ai-gateway/keys

Request

  • Base URL
    https://api.aiven.io/v1
  • URL
    https://api.aiven.io/v1/project/{project}/ai-gateway/keys
  • Auth
    HTTP bearer and OAuth 2
    Authorization code: https://console.aiven.io/oauth/authorize
    Token URL: https://api.aiven.io/v1/oauth2/token scopes: projects:write

Path parameters

projectstring required

Project name

Request body

descriptionstring

Longer description on how the key is used

expiry_timestring

Time the key expires, or null for a key that never expires

namestring required

Short human readable identifier for the key

Response

Response

create_timestring required

Time the key was created

descriptionstring

Longer description on how the key is used

expiry_timestring

Time the key expires

keystring required

The key

key_idstring required

Key ID

key_suffixstring required

Last characters of the key

namestring required

Short human readable identifier for the key

revocation_timestring

Time the key was revoked

Changes