Skip to main content
POST
Create an item
An item holds one login. Agents whose browser environment binds the vault fill it on pages that match its urls. The response lists which fields are set, never their values. Read them back with Reveal an item. Returns 201 with the created item object.

Path parameters

string
required
The H-hosted vault’s id (UUID).

Request body

string
required
Label for the item, 1 to 255 characters.
string[]
required
The sites this item signs in to: 1 to 20 http or https URLs with a host. A page matches when its hostname equals, or is a subdomain of, one of them.
object
required
Secret values by field, at least one. Keys: username, password, email, totp, api_key. Each value is a string of 1 to 4096 characters.For totp, send the authenticator secret: base32, or an otpauth://totp/ URI. fill_secret_at types the current code and reveal returns it. The secret itself is never returned.

Examples

Response

Errors