Get Vault details and metadata
GET
/vaults/{vaultUuid}
const url = 'http://1password.local/vaults/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://1password.local/vaults/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” vaultUuid
required
string
The UUID of the Vault to fetch Items from
Responses
Section titled “ Responses ”OK
object
attributeVersion
The vault version
integer
contentVersion
The version of the vault contents
integer
createdAt
string format: date-time
description
string
id
string
items
Number of active items in the vault
integer
name
string
type
string
updatedAt
string format: date-time
Invalid or missing token
object
message
A message detailing the error
string
status
HTTP Status Code
integer
Example
{ "message": "Invalid token signature", "status": 401}Unauthorized access
object
message
A message detailing the error
string
status
HTTP Status Code
integer
Example
{ "message": "vault {vaultUuid} is not in scope", "status": 403}Vault not found
object
message
A message detailing the error
string
status
HTTP Status Code
integer
Example
{ "message": "vault {itemUuid} not found", "status": 404}