Import replaces only the value of an existing name. Hosts change only from that line’s own allowed_hosts, never from top-level defaults. New lines use their own hosts or the top-level defaults. Per-line failures appear in failed under HTTP 200 (including SECRET_TOO_LARGE, VAULT_LIMIT_EXCEEDED and INVALID_PARAMS); other lines are still written. Lookup by an invalid name returns 404 SECRET_NOT_FOUND.
List secrets
GET /vault/v1/vaults/{vault_id}/secrets
Parameter
Location
Description
vault_id
path
ID of the vault in your account, returned when the vault is created.
cursor
query
next_cursor from the previous page.
limit
query
Items per page. (default: 50) (1–200)
include_archived
query
Include archived items. (default: false)
Response
HTTP 200
application/json
Field
Type / enum
Required
Description
data
Secret[]
yes
Result items
data[].id
string
yes
Object ID
data[].type
"vault_secret"
yes
Object type
data[].vault_id
string
yes
Vault ID
data[].name
string
yes
Secret name: 1–128 uppercase letters, digits or underscores; starts with a letter or underscore
data[].kind
"static" / "oauth"
yes
static: supplied value; oauth: authorized and refreshed by the platform
data[].allowed_hosts
string[]
yes
1–16 hosts, public IPv4 addresses or *.example.com (excluding the apex). Rejects IPv6, single-label hosts, localhost, *.internal, platform domains and loopback/link-local/private/CGNAT IPv4; normalized and deduplicated
data[].description
string / null
yes
Description; null clears it on update, omission preserves it
data[].metadata
object
yes
Up to 16 caller labels. System keys source and template are reserved and excluded from that limit
ID of the vault in your account, returned when the vault is created.
Request body
Field
Type / enum
Required
Description
name
string
yes
Secret name: 1–128 uppercase letters, digits or underscores; starts with a letter or underscore
value
string
yes
Write-only secret value, at most 16 KiB
allowed_hosts
string[]
no
1–16 hosts, public IPv4 addresses or *.example.com (excluding the apex). Rejects IPv6, single-label hosts, localhost, *.internal, platform domains and loopback/link-local/private/CGNAT IPv4; normalized and deduplicated
description
string / null
no
Description; null clears it on update, omission preserves it
metadata
object
no
Up to 16 caller labels. System keys source and template are reserved and excluded from that limit
template_id
"github" / "openai" / "anthropic" / "stripe"
no
Static template ID only; recorded as metadata.template
kind
"static"
no
Must be static; create OAuth secrets through authorization
Response
HTTP 200
application/json
Field
Type / enum
Required
Description
id
string
yes
Object ID
type
"vault_secret"
yes
Object type
vault_id
string
yes
Vault ID
name
string
yes
Secret name: 1–128 uppercase letters, digits or underscores; starts with a letter or underscore
kind
"static" / "oauth"
yes
static: supplied value; oauth: authorized and refreshed by the platform
allowed_hosts
string[]
yes
1–16 hosts, public IPv4 addresses or *.example.com (excluding the apex). Rejects IPv6, single-label hosts, localhost, *.internal, platform domains and loopback/link-local/private/CGNAT IPv4; normalized and deduplicated
description
string / null
yes
Description; null clears it on update, omission preserves it
metadata
object
yes
Up to 16 caller labels. System keys source and template are reserved and excluded from that limit
ID of the vault in your account, returned when the vault is created.
secret
path
Secret name, or its vsec_ ID.
Response
HTTP 200
application/json
Field
Type / enum
Required
Description
id
string
yes
Object ID
type
"vault_secret"
yes
Object type
vault_id
string
yes
Vault ID
name
string
yes
Secret name: 1–128 uppercase letters, digits or underscores; starts with a letter or underscore
kind
"static" / "oauth"
yes
static: supplied value; oauth: authorized and refreshed by the platform
allowed_hosts
string[]
yes
1–16 hosts, public IPv4 addresses or *.example.com (excluding the apex). Rejects IPv6, single-label hosts, localhost, *.internal, platform domains and loopback/link-local/private/CGNAT IPv4; normalized and deduplicated
description
string / null
yes
Description; null clears it on update, omission preserves it
metadata
object
yes
Up to 16 caller labels. System keys source and template are reserved and excluded from that limit
ID of the vault in your account, returned when the vault is created.
secret
path
Secret name, or its vsec_ ID.
Request body
Field
Type / enum
Required
Description
value
string
no
Write-only secret value, at most 16 KiB
allowed_hosts
string[]
no
1–16 hosts, public IPv4 addresses or *.example.com (excluding the apex). Rejects IPv6, single-label hosts, localhost, *.internal, platform domains and loopback/link-local/private/CGNAT IPv4; normalized and deduplicated
description
string / null
no
Description; null clears it on update, omission preserves it
metadata
object
no
Merge by key: strings upsert, null deletes, omitted keys remain; source and template are reserved
Response
HTTP 200
application/json
Field
Type / enum
Required
Description
id
string
yes
Object ID
type
"vault_secret"
yes
Object type
vault_id
string
yes
Vault ID
name
string
yes
Secret name: 1–128 uppercase letters, digits or underscores; starts with a letter or underscore
kind
"static" / "oauth"
yes
static: supplied value; oauth: authorized and refreshed by the platform
allowed_hosts
string[]
yes
1–16 hosts, public IPv4 addresses or *.example.com (excluding the apex). Rejects IPv6, single-label hosts, localhost, *.internal, platform domains and loopback/link-local/private/CGNAT IPv4; normalized and deduplicated
description
string / null
yes
Description; null clears it on update, omission preserves it
metadata
object
yes
Up to 16 caller labels. System keys source and template are reserved and excluded from that limit
POST /vault/v1/vaults/{vault_id}/secrets/{secret}/archive
Parameter
Location
Description
vault_id
path
ID of the vault in your account, returned when the vault is created.
secret
path
Secret name, or its vsec_ ID.
Response
HTTP 200
application/json
Field
Type / enum
Required
Description
id
string
yes
Object ID
type
"vault_secret"
yes
Object type
vault_id
string
yes
Vault ID
name
string
yes
Secret name: 1–128 uppercase letters, digits or underscores; starts with a letter or underscore
kind
"static" / "oauth"
yes
static: supplied value; oauth: authorized and refreshed by the platform
allowed_hosts
string[]
yes
1–16 hosts, public IPv4 addresses or *.example.com (excluding the apex). Rejects IPv6, single-label hosts, localhost, *.internal, platform domains and loopback/link-local/private/CGNAT IPv4; normalized and deduplicated
description
string / null
yes
Description; null clears it on update, omission preserves it
metadata
object
yes
Up to 16 caller labels. System keys source and template are reserved and excluded from that limit
POST /vault/v1/vaults/{vault_id}/secrets/{secret}/refresh
Parameter
Location
Description
vault_id
path
ID of the vault in your account, returned when the vault is created.
secret
path
Secret name, or its vsec_ ID.
Request body
Field
Type / enum
Required
Description
reason
"unauthorized"
no
unauthorized: the resource returned HTTP 401
Response
HTTP 200
application/json
Field
Type / enum
Required
Description
id
string
yes
Object ID
type
"vault_secret"
yes
Object type
vault_id
string
yes
Vault ID
name
string
yes
Secret name: 1–128 uppercase letters, digits or underscores; starts with a letter or underscore
kind
"static" / "oauth"
yes
static: supplied value; oauth: authorized and refreshed by the platform
allowed_hosts
string[]
yes
1–16 hosts, public IPv4 addresses or *.example.com (excluding the apex). Rejects IPv6, single-label hosts, localhost, *.internal, platform domains and loopback/link-local/private/CGNAT IPv4; normalized and deduplicated
description
string / null
yes
Description; null clears it on update, omission preserves it
metadata
object
yes
Up to 16 caller labels. System keys source and template are reserved and excluded from that limit
Secret name: 1–128 uppercase letters, digits or underscores; starts with a letter or underscore
kind
"static" / "oauth"
yes
static: supplied value; oauth: authorized and refreshed by the platform
allowed_hosts
string[]
yes
1–16 hosts, public IPv4 addresses or *.example.com (excluding the apex). Rejects IPv6, single-label hosts, localhost, *.internal, platform domains and loopback/link-local/private/CGNAT IPv4; normalized and deduplicated
description
string / null
yes
Description; null clears it on update, omission preserves it
metadata
object
yes
Up to 16 caller labels. System keys source and template are reserved and excluded from that limit