Skip to main content
POST
Store a login (username, password, TOTP secret) for one or more sites

Authorizations

Authorization
string
header
required

Your Styne API key: Authorization: Bearer $STYNE_API_KEY.

Body

application/json

Store a vault item.

label
string

Free text, up to 200 characters.

hosts
string[]

1 to 5 sites the item may be typed into; *.example.com covers subdomains. Cannot change later.

site
string

One site, instead of hosts.

login_url
string

https address on one of the hosts where the sign-in starts.

fields
object

The secrets; they are sealed and never answered.

totp
object

type (totp, hotp, steam), digits (6, 7, 8), period (15, 30, 60), algorithm (SHA1, SHA256, SHA512) and, for hotp, the counter of the first code, when the secret does not carry them. A Steam code has 5 characters and 30 s.

profiles
string[]

Profile ids or end-user names to link; each profile signs in with one item.

Response

Success. The answer is described on https://docs.styne.ai/vault.