Skip to content
Inkbox

Inkbox

ContactDocs
GuidesAPI Reference

Ctrl K

GuidesAPI Reference

Jump to

Payload Schemas

The encrypted_payload field in a vault secret contains a client-side encrypted JSON object. The plaintext structure depends on the secret_type. This page documents the schema for each type.

All encryption and decryption happens client-side using your vault key — the server only ever sees ciphertext.


API key

Stores API keys and tokens.

FieldTypeRequiredDescription
api_keystringYesAPI key or token
endpointstringNoAPI endpoint URL
notesstringNoFreeform notes
JSONJSON

Key pair

Stores AWS-style access key / secret key pairs.

FieldTypeRequiredDescription
access_keystringYesAccess key ID
secret_keystringYesSecret access key
endpointstringNoService endpoint URL
notesstringNoFreeform notes
JSONJSON

Login

Stores website or service credentials with optional two-factor authentication.

FieldTypeRequiredDescription
passwordstringYesPassword
usernamestringNoUsername
emailstringNoEmail address
urlstringNoLogin URL
notesstringNoFreeform notes
totpobjectNoTOTP configuration for two-factor authentication (see below)
JSONJSON

TOTP configuration

When a login secret includes a totp field, the SDK can generate time-based one-time passwords (RFC 6238) client-side. The TOTP secret is encrypted alongside the rest of the login payload — the server never sees it.

FieldTypeRequiredDefaultDescription
secretstringYesBase32-encoded shared secret
algorithmstringNosha1Hash algorithm: sha1, sha256, or sha512
digitsnumberNo6Code length: 6 or 8
periodnumberNo30Time step in seconds: 30 or 60
issuerstringNoIssuer name (e.g. "GitHub")
account_namestringNoAccount identifier (e.g. "user@example.com")

The TOTP config follows the Google Authenticator Key URI format. You can parse an otpauth://totp/... URI directly using the SDK's parse_totp_uri / parseTotpUri helper.


SSH key

Stores SSH key pairs and metadata.

FieldTypeRequiredDescription
private_keystringYesPrivate key (PEM format)
public_keystringNoPublic key
fingerprintstringNoKey fingerprint
passphrasestringNoPrivate key passphrase
notesstringNoFreeform notes
JSONJSON

Other

Freeform data for secrets that don't fit other types.

FieldTypeRequiredDescription
datastringYesFreeform data
notesstringNoFreeform notes
JSONJSON

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

Payload Schemas