Create a new Item
curl --request POST \
--url http://localhost:8080/v1/vaults/{vaultUuid}/items \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"vault": {
"id": "<string>"
},
"id": "<string>",
"title": "<string>",
"urls": [
{
"primary": true,
"href": "https://example.com"
},
{
"href": "https://example.org"
}
],
"favorite": false,
"tags": [
"<string>"
],
"version": 123,
"sections": [
{
"id": "<string>",
"label": "<string>"
}
],
"fields": [
{
"id": "<string>",
"type": "STRING",
"section": {
"id": "<string>"
},
"label": "<string>",
"value": "<string>",
"generate": false,
"recipe": {
"length": 32,
"characterSets": [],
"excludeCharacters": "abc1"
}
}
],
"files": [
{
"id": "6r65pjq33banznomn7q22sj44e",
"name": "foo.txt",
"size": 35,
"content_path": "v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content",
"content": "VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo="
}
]
}
'import requests
url = "http://localhost:8080/v1/vaults/{vaultUuid}/items"
payload = {
"vault": { "id": "<string>" },
"id": "<string>",
"title": "<string>",
"urls": [{
"primary": True,
"href": "https://example.com"
}, { "href": "https://example.org" }],
"favorite": False,
"tags": ["<string>"],
"version": 123,
"sections": [
{
"id": "<string>",
"label": "<string>"
}
],
"fields": [
{
"id": "<string>",
"type": "STRING",
"section": { "id": "<string>" },
"label": "<string>",
"value": "<string>",
"generate": False,
"recipe": {
"length": 32,
"characterSets": [],
"excludeCharacters": "abc1"
}
}
],
"files": [
{
"id": "6r65pjq33banznomn7q22sj44e",
"name": "foo.txt",
"size": 35,
"content_path": "v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content",
"content": "VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo="
}
]
}
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({
vault: {id: '<string>'},
id: '<string>',
title: '<string>',
urls: [{primary: true, href: 'https://example.com'}, {href: 'https://example.org'}],
favorite: false,
tags: ['<string>'],
version: 123,
sections: [{id: '<string>', label: '<string>'}],
fields: [
{
id: '<string>',
type: 'STRING',
section: {id: '<string>'},
label: '<string>',
value: '<string>',
generate: false,
recipe: {length: 32, characterSets: [], excludeCharacters: 'abc1'}
}
],
files: [
{
id: '6r65pjq33banznomn7q22sj44e',
name: 'foo.txt',
size: 35,
content_path: 'v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content',
content: 'VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo='
}
]
})
};
fetch('http://localhost:8080/v1/vaults/{vaultUuid}/items', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/v1/vaults/{vaultUuid}/items",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'vault' => [
'id' => '<string>'
],
'id' => '<string>',
'title' => '<string>',
'urls' => [
[
'primary' => true,
'href' => 'https://example.com'
],
[
'href' => 'https://example.org'
]
],
'favorite' => false,
'tags' => [
'<string>'
],
'version' => 123,
'sections' => [
[
'id' => '<string>',
'label' => '<string>'
]
],
'fields' => [
[
'id' => '<string>',
'type' => 'STRING',
'section' => [
'id' => '<string>'
],
'label' => '<string>',
'value' => '<string>',
'generate' => false,
'recipe' => [
'length' => 32,
'characterSets' => [
],
'excludeCharacters' => 'abc1'
]
]
],
'files' => [
[
'id' => '6r65pjq33banznomn7q22sj44e',
'name' => 'foo.txt',
'size' => 35,
'content_path' => 'v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content',
'content' => 'VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo='
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/v1/vaults/{vaultUuid}/items"
payload := strings.NewReader("{\n \"vault\": {\n \"id\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"title\": \"<string>\",\n \"urls\": [\n {\n \"primary\": true,\n \"href\": \"https://example.com\"\n },\n {\n \"href\": \"https://example.org\"\n }\n ],\n \"favorite\": false,\n \"tags\": [\n \"<string>\"\n ],\n \"version\": 123,\n \"sections\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"fields\": [\n {\n \"id\": \"<string>\",\n \"type\": \"STRING\",\n \"section\": {\n \"id\": \"<string>\"\n },\n \"label\": \"<string>\",\n \"value\": \"<string>\",\n \"generate\": false,\n \"recipe\": {\n \"length\": 32,\n \"characterSets\": [],\n \"excludeCharacters\": \"abc1\"\n }\n }\n ],\n \"files\": [\n {\n \"id\": \"6r65pjq33banznomn7q22sj44e\",\n \"name\": \"foo.txt\",\n \"size\": 35,\n \"content_path\": \"v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content\",\n \"content\": \"VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo=\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:8080/v1/vaults/{vaultUuid}/items")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"vault\": {\n \"id\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"title\": \"<string>\",\n \"urls\": [\n {\n \"primary\": true,\n \"href\": \"https://example.com\"\n },\n {\n \"href\": \"https://example.org\"\n }\n ],\n \"favorite\": false,\n \"tags\": [\n \"<string>\"\n ],\n \"version\": 123,\n \"sections\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"fields\": [\n {\n \"id\": \"<string>\",\n \"type\": \"STRING\",\n \"section\": {\n \"id\": \"<string>\"\n },\n \"label\": \"<string>\",\n \"value\": \"<string>\",\n \"generate\": false,\n \"recipe\": {\n \"length\": 32,\n \"characterSets\": [],\n \"excludeCharacters\": \"abc1\"\n }\n }\n ],\n \"files\": [\n {\n \"id\": \"6r65pjq33banznomn7q22sj44e\",\n \"name\": \"foo.txt\",\n \"size\": 35,\n \"content_path\": \"v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content\",\n \"content\": \"VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo=\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/v1/vaults/{vaultUuid}/items")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"vault\": {\n \"id\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"title\": \"<string>\",\n \"urls\": [\n {\n \"primary\": true,\n \"href\": \"https://example.com\"\n },\n {\n \"href\": \"https://example.org\"\n }\n ],\n \"favorite\": false,\n \"tags\": [\n \"<string>\"\n ],\n \"version\": 123,\n \"sections\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"fields\": [\n {\n \"id\": \"<string>\",\n \"type\": \"STRING\",\n \"section\": {\n \"id\": \"<string>\"\n },\n \"label\": \"<string>\",\n \"value\": \"<string>\",\n \"generate\": false,\n \"recipe\": {\n \"length\": 32,\n \"characterSets\": [],\n \"excludeCharacters\": \"abc1\"\n }\n }\n ],\n \"files\": [\n {\n \"id\": \"6r65pjq33banznomn7q22sj44e\",\n \"name\": \"foo.txt\",\n \"size\": 35,\n \"content_path\": \"v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content\",\n \"content\": \"VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo=\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"vault": {
"id": "<string>"
},
"category": "LOGIN",
"id": "<string>",
"title": "<string>",
"urls": [
{
"primary": true,
"href": "https://example.com"
},
{
"href": "https://example.org"
}
],
"favorite": false,
"tags": [
"<string>"
],
"version": 123,
"state": "ARCHIVED",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"lastEditedBy": "<string>",
"sections": [
{
"id": "<string>",
"label": "<string>"
}
],
"fields": [
{
"id": "<string>",
"type": "STRING",
"section": {
"id": "<string>"
},
"purpose": "",
"label": "<string>",
"value": "<string>",
"generate": false,
"recipe": {
"length": 32,
"characterSets": [
"LETTERS"
],
"excludeCharacters": "abc1"
},
"entropy": 123
}
],
"files": [
{
"id": "6r65pjq33banznomn7q22sj44e",
"name": "foo.txt",
"size": 35,
"content_path": "v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content",
"content": "VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo="
}
]
}{
"status": 400,
"message": "Invalid item category"
}{
"status": 401,
"message": "Invalid token signature"
}{
"status": 403,
"message": "vault {vaultUuid} is not in scope"
}{
"status": 404,
"message": "vault {vaultUuid} not found"
}API Reference
Create a new Item
POST
/
vaults
/
{vaultUuid}
/
items
Create a new Item
curl --request POST \
--url http://localhost:8080/v1/vaults/{vaultUuid}/items \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"vault": {
"id": "<string>"
},
"id": "<string>",
"title": "<string>",
"urls": [
{
"primary": true,
"href": "https://example.com"
},
{
"href": "https://example.org"
}
],
"favorite": false,
"tags": [
"<string>"
],
"version": 123,
"sections": [
{
"id": "<string>",
"label": "<string>"
}
],
"fields": [
{
"id": "<string>",
"type": "STRING",
"section": {
"id": "<string>"
},
"label": "<string>",
"value": "<string>",
"generate": false,
"recipe": {
"length": 32,
"characterSets": [],
"excludeCharacters": "abc1"
}
}
],
"files": [
{
"id": "6r65pjq33banznomn7q22sj44e",
"name": "foo.txt",
"size": 35,
"content_path": "v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content",
"content": "VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo="
}
]
}
'import requests
url = "http://localhost:8080/v1/vaults/{vaultUuid}/items"
payload = {
"vault": { "id": "<string>" },
"id": "<string>",
"title": "<string>",
"urls": [{
"primary": True,
"href": "https://example.com"
}, { "href": "https://example.org" }],
"favorite": False,
"tags": ["<string>"],
"version": 123,
"sections": [
{
"id": "<string>",
"label": "<string>"
}
],
"fields": [
{
"id": "<string>",
"type": "STRING",
"section": { "id": "<string>" },
"label": "<string>",
"value": "<string>",
"generate": False,
"recipe": {
"length": 32,
"characterSets": [],
"excludeCharacters": "abc1"
}
}
],
"files": [
{
"id": "6r65pjq33banznomn7q22sj44e",
"name": "foo.txt",
"size": 35,
"content_path": "v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content",
"content": "VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo="
}
]
}
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({
vault: {id: '<string>'},
id: '<string>',
title: '<string>',
urls: [{primary: true, href: 'https://example.com'}, {href: 'https://example.org'}],
favorite: false,
tags: ['<string>'],
version: 123,
sections: [{id: '<string>', label: '<string>'}],
fields: [
{
id: '<string>',
type: 'STRING',
section: {id: '<string>'},
label: '<string>',
value: '<string>',
generate: false,
recipe: {length: 32, characterSets: [], excludeCharacters: 'abc1'}
}
],
files: [
{
id: '6r65pjq33banznomn7q22sj44e',
name: 'foo.txt',
size: 35,
content_path: 'v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content',
content: 'VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo='
}
]
})
};
fetch('http://localhost:8080/v1/vaults/{vaultUuid}/items', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/v1/vaults/{vaultUuid}/items",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'vault' => [
'id' => '<string>'
],
'id' => '<string>',
'title' => '<string>',
'urls' => [
[
'primary' => true,
'href' => 'https://example.com'
],
[
'href' => 'https://example.org'
]
],
'favorite' => false,
'tags' => [
'<string>'
],
'version' => 123,
'sections' => [
[
'id' => '<string>',
'label' => '<string>'
]
],
'fields' => [
[
'id' => '<string>',
'type' => 'STRING',
'section' => [
'id' => '<string>'
],
'label' => '<string>',
'value' => '<string>',
'generate' => false,
'recipe' => [
'length' => 32,
'characterSets' => [
],
'excludeCharacters' => 'abc1'
]
]
],
'files' => [
[
'id' => '6r65pjq33banznomn7q22sj44e',
'name' => 'foo.txt',
'size' => 35,
'content_path' => 'v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content',
'content' => 'VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo='
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/v1/vaults/{vaultUuid}/items"
payload := strings.NewReader("{\n \"vault\": {\n \"id\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"title\": \"<string>\",\n \"urls\": [\n {\n \"primary\": true,\n \"href\": \"https://example.com\"\n },\n {\n \"href\": \"https://example.org\"\n }\n ],\n \"favorite\": false,\n \"tags\": [\n \"<string>\"\n ],\n \"version\": 123,\n \"sections\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"fields\": [\n {\n \"id\": \"<string>\",\n \"type\": \"STRING\",\n \"section\": {\n \"id\": \"<string>\"\n },\n \"label\": \"<string>\",\n \"value\": \"<string>\",\n \"generate\": false,\n \"recipe\": {\n \"length\": 32,\n \"characterSets\": [],\n \"excludeCharacters\": \"abc1\"\n }\n }\n ],\n \"files\": [\n {\n \"id\": \"6r65pjq33banznomn7q22sj44e\",\n \"name\": \"foo.txt\",\n \"size\": 35,\n \"content_path\": \"v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content\",\n \"content\": \"VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo=\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:8080/v1/vaults/{vaultUuid}/items")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"vault\": {\n \"id\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"title\": \"<string>\",\n \"urls\": [\n {\n \"primary\": true,\n \"href\": \"https://example.com\"\n },\n {\n \"href\": \"https://example.org\"\n }\n ],\n \"favorite\": false,\n \"tags\": [\n \"<string>\"\n ],\n \"version\": 123,\n \"sections\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"fields\": [\n {\n \"id\": \"<string>\",\n \"type\": \"STRING\",\n \"section\": {\n \"id\": \"<string>\"\n },\n \"label\": \"<string>\",\n \"value\": \"<string>\",\n \"generate\": false,\n \"recipe\": {\n \"length\": 32,\n \"characterSets\": [],\n \"excludeCharacters\": \"abc1\"\n }\n }\n ],\n \"files\": [\n {\n \"id\": \"6r65pjq33banznomn7q22sj44e\",\n \"name\": \"foo.txt\",\n \"size\": 35,\n \"content_path\": \"v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content\",\n \"content\": \"VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo=\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/v1/vaults/{vaultUuid}/items")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"vault\": {\n \"id\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"title\": \"<string>\",\n \"urls\": [\n {\n \"primary\": true,\n \"href\": \"https://example.com\"\n },\n {\n \"href\": \"https://example.org\"\n }\n ],\n \"favorite\": false,\n \"tags\": [\n \"<string>\"\n ],\n \"version\": 123,\n \"sections\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"fields\": [\n {\n \"id\": \"<string>\",\n \"type\": \"STRING\",\n \"section\": {\n \"id\": \"<string>\"\n },\n \"label\": \"<string>\",\n \"value\": \"<string>\",\n \"generate\": false,\n \"recipe\": {\n \"length\": 32,\n \"characterSets\": [],\n \"excludeCharacters\": \"abc1\"\n }\n }\n ],\n \"files\": [\n {\n \"id\": \"6r65pjq33banznomn7q22sj44e\",\n \"name\": \"foo.txt\",\n \"size\": 35,\n \"content_path\": \"v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content\",\n \"content\": \"VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo=\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"vault": {
"id": "<string>"
},
"category": "LOGIN",
"id": "<string>",
"title": "<string>",
"urls": [
{
"primary": true,
"href": "https://example.com"
},
{
"href": "https://example.org"
}
],
"favorite": false,
"tags": [
"<string>"
],
"version": 123,
"state": "ARCHIVED",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"lastEditedBy": "<string>",
"sections": [
{
"id": "<string>",
"label": "<string>"
}
],
"fields": [
{
"id": "<string>",
"type": "STRING",
"section": {
"id": "<string>"
},
"purpose": "",
"label": "<string>",
"value": "<string>",
"generate": false,
"recipe": {
"length": 32,
"characterSets": [
"LETTERS"
],
"excludeCharacters": "abc1"
},
"entropy": 123
}
],
"files": [
{
"id": "6r65pjq33banznomn7q22sj44e",
"name": "foo.txt",
"size": 35,
"content_path": "v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content",
"content": "VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo="
}
]
}{
"status": 400,
"message": "Invalid item category"
}{
"status": 401,
"message": "Invalid token signature"
}{
"status": 403,
"message": "vault {vaultUuid} is not in scope"
}{
"status": 404,
"message": "vault {vaultUuid} not found"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The UUID of the Vault to create an Item in
Pattern:
^[\da-z]{26}$Body
application/json
Show child attributes
Show child attributes
Available options:
LOGIN, PASSWORD, API_CREDENTIAL, SERVER, DATABASE, CREDIT_CARD, MEMBERSHIP, PASSPORT, SOFTWARE_LICENSE, OUTDOOR_LICENSE, SECURE_NOTE, WIRELESS_ROUTER, BANK_ACCOUNT, DRIVER_LICENSE, IDENTITY, REWARD_PROGRAM, DOCUMENT, EMAIL_ACCOUNT, SOCIAL_SECURITY_NUMBER, MEDICAL_RECORD, SSH_KEY, CUSTOM Pattern:
^[\da-z]{26}$Show child attributes
Show child attributes
Example:
[
{
"primary": true,
"href": "https://example.com"
},
{ "href": "https://example.org" }
]
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
OK
Show child attributes
Show child attributes
Available options:
LOGIN, PASSWORD, API_CREDENTIAL, SERVER, DATABASE, CREDIT_CARD, MEMBERSHIP, PASSPORT, SOFTWARE_LICENSE, OUTDOOR_LICENSE, SECURE_NOTE, WIRELESS_ROUTER, BANK_ACCOUNT, DRIVER_LICENSE, IDENTITY, REWARD_PROGRAM, DOCUMENT, EMAIL_ACCOUNT, SOCIAL_SECURITY_NUMBER, MEDICAL_RECORD, SSH_KEY, CUSTOM Pattern:
^[\da-z]{26}$Show child attributes
Show child attributes
Example:
[
{
"primary": true,
"href": "https://example.com"
},
{ "href": "https://example.org" }
]
Available options:
ARCHIVED, DELETED Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?
⌘I