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
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

gatewayId, string uuid required

Contains a unique identifier used for this resource.

Example:5f9fd312-a987-4628-b4c5-bb4f4fddd5f7

The unique ID of the AI Gateway.

configStoreIdOrName, string uuid required

Contains a unique identifier used for this resource.

Example:5f9fd312-a987-4628-b4c5-bb4f4fddd5f7

The unique ID of the AI Gateway Config Store.

Request body

CreateAIGatewayConfigStoreSecretRequest required
key, string required

The unique key identifying the secret within the Config Store.

value, string 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.

AIGatewayConfigStoreSecret required
key, string required

The unique key identifying the secret within the Config Store.

created_at, string date-time required

An ISO-8601 timestamp representation of entity creation date.

updated_at, string 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

      the value request property's minLength was increased from 0 to 1

    • breaking

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

    • warning

      added the new key_invalid enum value to the invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule response property for the response status

    1 more change in this revision