Vaults

Create a vault credential

Changed on

Creates a vault credential. Secret values are write-only and are never returned. See vaults.

post/vaults/{vault_id}/credentials

Request

  • Base URL
    https://api.openai.com/v1
  • URL
    https://api.openai.com/v1/vaults/{vault_id}/credentials
  • Auth
    HTTP bearer

Path parameters

vault_idstring required

The ID of the vault.

Request body

namestring required

The name is trimmed before storage. It must contain 1 to 256 UTF-8 bytes after trimming.

metadataobject

Up to 16 string key-value pairs, with keys up to 64 and values up to 512 characters. Defaults to an empty map.

Response

The created vault credential without secret values.

idstring required

The ID of the credential.

object'vault.credential' required

The object type. Always vault.credential.

vault_idstring required

The ID of the vault containing this credential.

namestring required

The human-readable name of the credential.

metadataobject required

Application-defined key-value pairs associated with this credential.

created_atinteger required

The Unix timestamp, in seconds, when the credential was created.

updated_atinteger required

The Unix timestamp, in seconds, when the credential was last updated.

Changes

    • info

      added the new optional request property

    • info

      added the required property to the response with the status

    • breaking

      added to the response property oneOf list for the response status

    • info

      added environment_variable discriminator mapping keys to the request property

    • info

      added to the request property oneOf list

    • info

      added environment_variable discriminator mapping keys to the response property for the response status