AI Gateway Config Stores

Create an AI Gateway Config Store Secret

Changed on

Creates a secret for an AI Gateway Config Store.

post/v1/ai-gateways/{gatewayId}/config-stores/{configStoreIdOrName}/secrets

Request

  • Base URL: https://global.api.konghq.com
  • URL: https://global.api.konghq.com/v1/ai-gateways/{gatewayId}/config-stores/{configStoreIdOrName}/secrets
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer
    • HTTP bearer
    • HTTP bearer

Request body

keystring required

The unique key identifying the secret within the Config Store.

valuestring required

The secret value. Once stored, this value cannot be retrieved.

Example request

{
  "key": "my-secret-key",
  "value": "my-secret-value"
}

Response

AI Gateway Config Store Secret created successfully.

keystring required

The unique key identifying the secret within the Config Store.

created_atstring date-time required

An ISO-8601 timestamp representation of entity creation date.

updated_atstring date-time required

An ISO-8601 timestamp representation of entity update date.

Example response

{
  "key": "my-secret-key",
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

Changes

    • breaking

      added to the / response property oneOf list for the response status

    • warning

      added the new key_invalid enum value to the ////// response property for the response status

    • warning

      added the new unique enum value to the ////// response property for the response status

    • info

      the request property's maxLength was increased from 5120 to 8192