Skip to content

Create a company's 1Password vault

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

Queues the creation of a 1Password vault named after the company, keeping administrators’ access; it is created in the background, never in this request, and the 1Password group of each team assigned to the company then gets its access level as the hour’s 1Password changes allow. A create that did not finish is tried again, adopting the vault 1Password may have made for it. Answers 202 when queued, or 200 with queued: false when the company already has a vault. Needs 1Password connected in Settings (409). Requires clients.edit 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 company already has a vault.

Media typeapplication/json
object
data
required
object
queued
required

False when the company or team already has a vault and nothing was queued.

boolean

Example generated

{
"data": {
"queued": true
}
}

The vault is queued.

Media typeapplication/json
object
data
required
object
queued
required

False when the company or team already has a vault and nothing was queued.

boolean

Example generated

{
"data": {
"queued": true
}
}

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"
}
}

Conflict.

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.