Get all Vaults
GET
/vaults
const url = 'http://1password.local/vaults?filter=name%20eq%20%22Some%20Vault%20Name%22';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?filter=name%20eq%20%22Some%20Vault%20Name%22' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”filter
string
Example
name eq "Some Vault Name"Filter the Vault collection based on Vault name using SCIM eq filter
Responses
Section titled “Responses”OK
Media typeapplication/json
Array<object>
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
Example
[ { "type": "USER_CREATED" }]Invalid or missing token
Media typeapplication/json
object
message
A message detailing the error
string
status
HTTP Status Code
integer
Example
{ "message": "Invalid token signature", "status": 401}