Link an existing 1Password vault to a company
curl --request PUT \ --url https://example.com/api/v1/clients/example/vault \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "vault": "example" }'Links a vault that already exists in 1Password, by its id or its link. When 1Password is connected, the 1Password group of each team assigned to the company then gets access in the background, so linking also requires settings.manage; groups already on the vault stay until the backfill. A company has at most one vault: a vault still being created (409) or one already linked (409) is refused, while a create that stopped before it finished gives way to the link. A vault that belongs to another company or team is refused (409). Requires clients.edit, settings.manage and a company inside the caller’s assignments (or clients.view_all). Never reads or returns anything stored in the vault.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Request Body
Section titled “Request Body”object
The id of a vault that already exists in 1Password, or its 1Password link.
Example generated
{ "vault": "example"}Responses
Section titled “Responses”The linked vault.
object
A company’s 1Password vault: a link, never its contents.
object
Opens the vault in 1Password.
The vault’s name, when the vault was created here; null when linked.
The vault’s 1Password id.
Example
{ "data": { "origin": "CREATED" }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Conflict.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Invalid input.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC