Store a login (username, password, TOTP secret) for one or more sites
curl --request POST \
--url https://api.styne.ai/vault/items \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>",
"hosts": [
"<string>"
],
"site": "<string>",
"login_url": "<string>",
"fields": {
"username": "<string>",
"password": "<string>",
"totp_secret": "<string>"
},
"totp": {},
"profiles": [
"<string>"
]
}
'import requests
url = "https://api.styne.ai/vault/items"
payload = {
"label": "<string>",
"hosts": ["<string>"],
"site": "<string>",
"login_url": "<string>",
"fields": {
"username": "<string>",
"password": "<string>",
"totp_secret": "<string>"
},
"totp": {},
"profiles": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
label: '<string>',
hosts: ['<string>'],
site: '<string>',
login_url: '<string>',
fields: {username: '<string>', password: '<string>', totp_secret: '<string>'},
totp: {},
profiles: ['<string>']
})
};
fetch('https://api.styne.ai/vault/items', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"error_code": "<string>",
"origin": "<string>",
"request_id": "<string>"
}Store a login (username, password, TOTP secret) for one or more sites
POST
/
vault
/
items
Store a login (username, password, TOTP secret) for one or more sites
curl --request POST \
--url https://api.styne.ai/vault/items \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>",
"hosts": [
"<string>"
],
"site": "<string>",
"login_url": "<string>",
"fields": {
"username": "<string>",
"password": "<string>",
"totp_secret": "<string>"
},
"totp": {},
"profiles": [
"<string>"
]
}
'import requests
url = "https://api.styne.ai/vault/items"
payload = {
"label": "<string>",
"hosts": ["<string>"],
"site": "<string>",
"login_url": "<string>",
"fields": {
"username": "<string>",
"password": "<string>",
"totp_secret": "<string>"
},
"totp": {},
"profiles": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
label: '<string>',
hosts: ['<string>'],
site: '<string>',
login_url: '<string>',
fields: {username: '<string>', password: '<string>', totp_secret: '<string>'},
totp: {},
profiles: ['<string>']
})
};
fetch('https://api.styne.ai/vault/items', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"error_code": "<string>",
"origin": "<string>",
"request_id": "<string>"
}Authorizations
Body
application/json
Store a vault item.
Response
Success. The answer is described on https://docs.styne.ai/vault.