Skip to content
Inkbox

Inkbox

ContactDocs
GuidesAPI Reference
GuidesAPI Reference

Jump to

Vault Secrets

A vault secret is an encrypted credential stored in your organization's vault. The server only stores ciphertext — all encryption and decryption happens client-side using your vault key.

Each secret has a secret_type that determines its payload structure: login, api_key, key_pair, ssh_key, or other.


Create secret POST

POST /vault/secrets

Store a new encrypted secret. The encrypted_payload field contains the client-side encrypted credential data.

Request body

FieldTypeRequiredDescription
namestringYesHuman-readable name for this secret. 1–255 chars.
descriptionstringNoOptional description
secret_typestringYesOne of: login, api_key, key_pair, ssh_key, other
encrypted_payloadstringYesClient-side encrypted payload (base64)

Request example

JSONJSON

Response (201)

JSONJSON

Error responses

StatusDescription
403Organization ID missing from token
422Missing or invalid fields

Code examples


List secrets GET

GET /vault/secrets

List all secrets (metadata only — no encrypted payloads). Optionally filter by secret type.

Query parameters

ParameterTypeDescription
secret_typestringFilter by type: login, api_key, key_pair, ssh_key, other

Response (200)

JSONJSON

Code examples


Get secret GET

GET /vault/secrets/{secret_id}

Get a single secret including its encrypted_payload. Use this to fetch the ciphertext for client-side decryption.

Path parameters

ParameterTypeDescription
secret_idUUIDSecret ID

Response (200)

JSONJSON

Code examples


Update secret PATCH

PATCH /vault/secrets/{secret_id}

Update a secret's name, description, or encrypted payload. Only supplied fields are modified.

Path parameters

ParameterTypeDescription
secret_idUUIDSecret ID

Request body

FieldTypeRequiredDescription
namestringNoUpdated name. 1–255 chars.
descriptionstringNoUpdated description
encrypted_payloadstringNoUpdated client-side encrypted payload (base64)

Request example

JSONJSON

Response (200)

Returns the updated secret object (without encrypted_payload).

Code examples


Delete secret DELETE

DELETE /vault/secrets/{secret_id}

Delete a secret. Returns 204 No Content on success.

Path parameters

ParameterTypeDescription
secret_idUUIDSecret ID

Code examples


Secret object

FieldTypeDescription
idUUIDUnique secret identifier
namestringHuman-readable name
descriptionstring | nullOptional description
secret_typestringType: login, api_key, key_pair, ssh_key, other
statusstringLifecycle status: active, deleted
created_atstringCreation timestamp (ISO 8601)
updated_atstringLast update timestamp (ISO 8601)

Secret detail object

Extends the secret object with the encrypted payload. Returned by the get endpoint.

FieldTypeDescription
...all secret fields
encrypted_payloadstringClient-side encrypted payload (base64)

Inkbox

Copyright © 2026 Inkbox

This site is protected by reCAPTCHA.

Google Privacy Policy and Terms of Service apply.

Website

Inkbox

Copyright © 2026 Inkbox

This site is protected by reCAPTCHA.

Google Privacy Policy and Terms of Service apply.

Website