Skip to content

Get a company's 1Password vault

GET
/clients/{id}/vault
Code sample: Shell / cURL
curl --request GET \
--url https://example.com/api/v1/clients/example/vault \
--header 'Authorization: Bearer <token>'

Returns the company’s 1Password vault link, or null, whether 1Password is connected, whether a create is under way or stopped before it finished (creationUnfinished: create it again, or link a vault), and where the access of the company’s teams stands: how many groups reach the vault, how many changes wait their turn, and what 1Password refused, in words an admin can act on. Reads only the database, never 1Password. Requires clients.view and a company inside the caller’s assignments (or clients.view_all). Never reads or returns anything stored in the vault.

id
required

Resource identifier (CUID2).

string
>= 1 characters

Resource identifier (CUID2).

The vault link.

Media typeapplication/json
object
data
required
object
access
required

Where the access of the company’s teams stands; null while it has no vault.

Any of:

Where the team groups’ access to the vault, or vaults, stands.

object
failed
required

The newest twenty refusals.

Array<object>

A team group 1Password refused on a vault.

object
accessLevel
required
string
Allowed values: VIEW EDIT MANAGE
attempts
required

Refused tries since the last success.

integer
>= -9007199254740991 <= 9007199254740991
error
required

Why 1Password refused the last change.

string
failedAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
groupId
required

The team’s 1Password group id.

string
teamName
required

The team whose group it is; null once that team was deleted.

string | null
vaultOwnerName
required

The company or team that owns the vault or, once it was unlinked, the vault’s title or id.

string
failedCount
required
integer
>= -9007199254740991 <= 9007199254740991
grantedCount
required
integer
>= -9007199254740991 <= 9007199254740991
pendingCount
required

Grants, level changes and removals waiting for their turn in 1Password.

integer
>= -9007199254740991 <= 9007199254740991
creationUnfinished

True when a create stopped before it finished and nothing tries it again. 1Password may hold the vault it started: creating it again adopts that vault or makes one. Absent on an older server, which never reports it.

boolean
isCreating
required

True while a create is in flight or its job waits to try again.

boolean
isOnePasswordConnected
required
boolean
vault
required
Any of:

A company’s 1Password vault: a link, never its contents.

object
linkedAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
openUrl
required

Opens the vault in 1Password.

string
origin
required
string
Allowed values: CREATED LINKED
title
required

The vault’s name, when the vault was created here; null when linked.

string | null
vaultId
required

The vault’s 1Password id.

string

Example

{
"data": {
"access": {
"failed": [
{
"accessLevel": "VIEW"
}
]
},
"vault": {
"origin": "CREATED"
}
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Not found.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.