Skip to main content
POST
Create Credential
Every request requires ?beta=true.

Authorizations

X-Api-Key
string
header
default:sk-ant-local-default
required

OMA workspace API key.

Headers

anthropic-version
string
anthropic-beta
string

Path Parameters

vault_id
string
required

Path parameter vault_id

Query Parameters

beta
enum<boolean>
required

Selects the beta API contract for this endpoint. Must be true.

Available options:
true

Body

application/json
auth
object
required

Authentication configuration for the credential.

Example:
display_name
string | null

Human-readable name for the credential. Up to 255 characters.

Maximum string length: 255
Example:

"Example credential"

metadata
object

Arbitrary key-value metadata to attach to the credential. Maximum 16 pairs, keys up to 64 chars, values up to 512 chars.

Example:

Response

Successful response (OK)

A credential stored in a vault. Sensitive fields are never returned in responses.

type
enum<string>
required
Available options:
vault_credential
Example:

"vault_credential"

id
string
required

Unique identifier for the credential.

Example:

"vcrd_011CZkZEMt8gZan2iYOQfSkw"

vault_id
string
required

Identifier of the vault this credential belongs to.

Example:

"vlt_011CZkZDLs7fYzm1hXNPeRjv"

metadata
object
required

Arbitrary key-value metadata attached to the credential.

Example:
created_at
string<date-time>
required

A timestamp in RFC 3339 format

Example:

"2026-03-15T10:00:00Z"

updated_at
string<date-time>
required

A timestamp in RFC 3339 format

Example:

"2026-03-15T10:00:00Z"

archived_at
string<date-time> | null
required

When the credential was archived. Null if not archived.

Example:

null

auth
object
required

Authentication configuration for this credential.

Example:
display_name
string | null

Human-readable name for the credential.

Example:

"Example credential"