Everything an AI agent can do with the 1Password API.

A reference guide for building AI agents: every method, how to authenticate, and the permissions each one needs.

Endpoints15
API versionv1
Last updated23 June 2026
Orientation

How the 1Password Connect API works.

The 1Password API is how an app or AI agent works with a team's vaults: listing the vaults it can reach, reading and creating items such as logins and API credentials, updating or deleting them, and downloading files attached to an item. Access is granted through a Connect server access token sent as a bearer token, and each token is scoped to specific vaults at a read or write level, so an agent reaches only the vaults that token was issued for. The Connect API does not push events; a separate Events API returns sign-in attempts, item usage, and audit events for review.

15Endpoints
5Capability groups
11Read
4Write
2Permissions
Authentication
Every Connect API call needs a Connect server access token, sent as 'Authorization: Bearer '. Tokens are minted against a deployed Connect server, and a token can be issued for a subset of the vaults the server itself can reach. A token cannot be used to create another token, and a token tied to a deleted account stops working.
Permissions
Access is scoped per vault, at a read or write level, and this is the whole permission model. A token can only read items from a vault it has been given read access to, and can only create, update, and delete items in a vault it has been given write access to. When a token is issued, each vault defaults to the same access the server has, and adding ',r' or ',w' after a vault name narrows that vault to read-only or write-only. A token can only be granted vaults the person issuing it already has.
Versioning
The Connect API is served under a single path version, v1, with no dated API version to pin. New fields, item categories, and fixes ship through dated releases of the Connect server, which is run inside the team's own infrastructure. The published API specification carries its own version number, 1.7.1 at the last check.
Data model
The API is resource-oriented JSON over HTTPS, answering by default on port 8080 of the host the Connect server runs on, under the /v1 path. Vaults hold items, items hold fields and attached files, and item endpoints nest under a vault as /v1/vaults/{vaultUuid}/items. Items belong to a category such as LOGIN, PASSWORD, API_CREDENTIAL, SERVER, or DATABASE. The PATCH method applies a JSON Patch (RFC 6902) document to change part of an item.
Connect & authenticate

Connection & authentication methods.

How an app or AI agent connects to 1Password determines what it can reach. The Connect API serves the vaults and items behind a self-hosted Connect server, while the Events API and the SCIM bridge are separate connection methods with their own purpose and their own token.

Ways to connect

Connect REST API

The Connect REST API serves vaults, items, and item files from a self-hosted Connect server, answering by default on port 8080 under the /v1 path. It is the route an app or AI agent uses to read or store secrets, governed by a Connect server access token scoped to specific vaults.

Best forConnecting an app or AI agent to 1Password vaults and items.
Governed byA Connect server access token, scoped per vault to read or write.
Docs ↗

Events API

The Events API is read-only reporting, returning sign-in attempts, item usage in shared vaults, and account audit events. Each endpoint is a POST that pulls recent events on a schedule, behind a bearer token whose feature decides which event type it can read. It is the audit stream, since the Connect API does not push events.

Best forPulling sign-in, item-usage, and audit events for monitoring.
Governed byAn Events API bearer token, scoped by feature (signinattempts, itemusages, auditevents).
Docs ↗

SCIM bridge

The SCIM bridge connects an identity provider such as Okta or Microsoft Entra ID to 1Password to automate provisioning: creating, confirming, and suspending users and managing group access. It is a separate self-hosted service with its own bearer token, not a way to read or write vault items.

Best forAutomated user and group provisioning from an identity provider.
Governed byA SCIM bridge bearer token issued for the provisioning integration.
Docs ↗

MCP server (Model Context Protocol)

1Password ships a first-party MCP server, in beta, for 1Password Environments with OpenAI Codex. It lets an agent create environments and list variable names while the secret values stay in 1Password and are injected at runtime, so the agent never sees them. It is not a route to the Connect API's vault and item endpoints.

Best forLetting OpenAI Codex act on 1Password Environments without seeing secrets.
Governed by1Password authorization prompts on the Mac or Linux app.
Docs ↗
Authentication

Connect server access token

A Connect server access token authenticates every Connect API call, sent as a bearer token. It is issued against a deployed Connect server and scoped to specific vaults, each at a read or write level, so it reaches only the vaults it was granted. It cannot be used to mint another token.

TokenConnect server access token (JWT bearer)
Best forProgrammatic read and write access to chosen vaults
Docs ↗

Events API bearer token

An Events API bearer token authenticates calls to the Events API and is scoped by feature, where signinattempts, itemusages, and auditevents each gate a different event type. It reads reporting data only and has no access to vault items.

TokenEvents API bearer token
Best forReading sign-in, item-usage, and audit events
Docs ↗
Endpoint reference

Every 1Password Connect API method.

Filter by method, access, or permission, or search any path. Select a row for version detail, rate limits, the related webhook event, and the source.

MethodEndpointWhat it doesAccessPermissionVersion

Vaults

List the vaults the token can reach and read a single vault's details and metadata.2

Returns only the vaults the token was scoped for. A filter parameter matches a vault by name using SCIM eq syntax.

Acts onvault
Permission (capability)vault: read
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Needs read access to that vault.

Acts onvault
Permission (capability)vault: read
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Items

List, read, create, replace, patch, and delete the items inside a vault, including logins, passwords, and API credentials.6

Returns item overviews without field secrets. A filter parameter matches an item by title using SCIM eq syntax.

Acts onitem
Permission (capability)vault: read
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Needs write access to that vault. The body sets the item category, such as LOGIN, PASSWORD, or API_CREDENTIAL, and its fields.

Acts onitem
Permission (capability)vault: write
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

This is the call that returns the secret field values, so read access to the vault exposes its secrets.

Acts onitem
Permission (capability)vault: read
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Needs write access. PUT replaces the whole item, so any field not sent is dropped.

Acts onitem
Permission (capability)vault: write
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Needs write access. Changes only the fields named in the patch, leaving the rest of the item intact.

Acts onitem
Permission (capability)vault: write
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Needs write access. Removes the item and its secrets.

Acts onitem
Permission (capability)vault: write
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Item files

List the files attached to an item, read a file's details, and download its content.3

Needs read access to the vault holding the item.

Acts onfile
Permission (capability)vault: read
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Returns file metadata. An inline_content parameter can include the content up to a default of about 100KB.

Acts onfile
Permission (capability)vault: read
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

File content can hold secret material such as private keys or certificates. Requesting content over the inline size limit returns 413.

Acts onfile
Permission (capability)vault: read
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Activity

List the API requests that have been made to this Connect server.1

Pages through limit and offset parameters, where limit defaults to 50 and offset to 0.

Acts onapi request
Permission (capability)None required
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Health & metrics

Check that the server is alive, read its state and its dependencies, and read its Prometheus metrics.3

Liveness check, returned without vault data. Served outside the /v1 path.

Acts onserver
Permission (capability)None required
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Reports server and dependency state. Served outside the /v1 path.

Acts onserver
Permission (capability)None required
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Operational metrics in Prometheus format. Served outside the /v1 path.

Acts onserver
Permission (capability)None required
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply
No endpoints match those filters.
Webhooks

Webhook events.

The Connect API does not push events. The separate Events API is the audit stream: it returns sign-in attempts, item usage in shared vaults, and account audit events, pulled on a schedule rather than delivered to a receiver URL.

EventWhat it signalsTriggered by
No events match that search.
Rate limits & pagination

Rate limits, pagination & request size.

The Connect server runs inside a team's own infrastructure and answers locally, so 1Password publishes no per-request rate limit for it. The sync that keeps it current, and the separate Events API, do have their own limits.

Request rate

The Connect server runs inside a team's own network and answers requests from a local cache, so 1Password publishes no fixed per-request rate limit for the Connect API itself. The background sync that keeps the cache current talks to 1Password.com and is subject to that service's limits, and the separate Events API has its own documented rate limits. Practical throughput therefore depends on how the server is deployed and how often it must reach back to 1Password.com.

Pagination

The activity endpoint pages through the limit and offset query parameters, where limit defaults to 50 and offset defaults to 0. The vault and item list endpoints return the full collection and instead support a filter parameter using SCIM eq syntax, to match a vault by name or an item by title.

Request size

Requests and responses are JSON. File content is returned from a dedicated content endpoint; a file can be requested inline up to a default of about 100KB, and larger files are downloaded from the content endpoint instead. A request for content that exceeds the size limit returns 413.

Errors

Status codes & error handling.

The status codes an agent should handle, and what to do about each.

StatusCodeMeaningWhat to do
400Bad RequestThe request body is invalid, such as a malformed item on a create or update, or an invalid JSON Patch document on a PATCH.Correct the body against the item schema and resend.
401UnauthorizedThe Connect token is missing, malformed, or invalid.Send a valid token in the Authorization Bearer header.
403ForbiddenThe token is valid but not scoped for this vault or this action, such as writing to a vault it only has read access to.Issue or use a token with the right vault and the right read or write level.
404Not FoundThe vault, item, or file does not exist, or the token has no access to it.Check the vault, item, and file identifiers, and confirm the token is scoped for that vault.
413Payload Too LargeFile content was requested inline but exceeds the inline size limit, around 100KB by default.Download the file from the content endpoint instead of requesting it inline.
Versioning & freshness

Version history.

The Connect API is served under a single path version, v1, and ships through dated releases of the Connect server itself rather than a dated API version. The reference is generated from a published specification that carries its own version number.

Version history

What changed, and when

Latest versionv1
v1Current version
Connect API, served under the v1 path

The Connect API is served under a single path version, v1, with no dated API version. It is delivered by the Connect server, which a team runs in its own infrastructure, and new fields, item categories, and fixes arrive through dated releases of that server rather than a new API version. The reference is generated from a published OpenAPI specification, version 1.7.1 at the last check.

What changed
  • Stable /v1 path for vaults, items, item files, activity, and health
  • Items support categories including LOGIN, PASSWORD, API_CREDENTIAL, SERVER, DATABASE, SECURE_NOTE, and SSH_KEY
  • PATCH applies a JSON Patch (RFC 6902) document to change part of an item
2025-09-12Feature update
Connect server 1.8.1

Connect server release 1.8.1, which prevents concurrent sync of the same file across connect-sync instances. The Connect server is what serves the v1 API inside a team's infrastructure, so server releases, not API versions, carry its changes. Released on 12 September 2025.

What changed
  • Prevented concurrent sync of the same file across connect-sync instances
2025-09-09Feature update
Connect server 1.8.0

Connect server release 1.8.0, adding multi-file reference support and improved error handling for unsynced files. Released on 9 September 2025.

What changed
  • Added multi-file reference support
  • Improved error handling for unsynced files

An integration calls the stable v1 path; new fields and item types arrive through Connect server releases.

1Password Connect changelog ↗
Questions

1Password Connect API, answered.

How is a Connect token scoped to vaults?+
Each Connect server access token is granted access to specific vaults, and to each vault at a read or write level. A token can only read items from a vault it was given read access to, and can only create, update, or delete items in a vault it was given write access to. By default a vault is granted at the same level the server itself has; adding ',r' or ',w' after the vault name narrows that vault to read-only or write-only. A token can only ever be granted vaults the person issuing it already has access to, so it cannot exceed its creator's reach.
Does the Connect API have webhooks?+
No. The Connect API does not push events to a receiver URL. The separate Events API is the audit stream: a request to its sign-in attempts, item usage, or audit events endpoint returns recent events, which an integration pulls on a schedule. Item usage covers items in shared vaults that were accessed, modified, or used, including who accessed them and from which IP address.
What can an agent create through the API?+
An agent with write access to a vault can create an item there, set its fields, and attach files. Items belong to a category, such as LOGIN, PASSWORD, API_CREDENTIAL, SERVER, DATABASE, SECURE_NOTE, or SSH_KEY. The PATCH method changes part of an existing item by sending a JSON Patch document, which lists add, remove, or replace operations rather than resending the whole item; PUT replaces the whole item instead.
Is there a first-party 1Password MCP server?+
1Password ships a first-party MCP (Model Context Protocol) server, currently in beta and for 1Password Environments with OpenAI Codex, not for the Connect API. It is built so the agent never sees the secret values: 1Password injects them at runtime and the server returns variable names and structure rather than the secrets themselves. For programmatic vault and item access today, the Connect API is the route.
What's the difference between the Connect API, the Events API, and the SCIM bridge?+
The Connect API reads and writes the items inside vaults, and is the one an agent uses to fetch or store secrets. The Events API is read-only reporting: sign-in attempts, item usage, and audit events, each behind a token feature of its own. The SCIM bridge is for provisioning, connecting an identity provider such as Okta or Microsoft Entra ID to create, confirm, and suspend users and manage group access. They are separate services with separate tokens.
Where does the Connect server run, and what does that mean for limits?+
The Connect server is deployed inside the team's own infrastructure, as two containers that share an encrypted copy of the vault data, with one container serving the REST API and the other syncing with 1Password.com. Because the API answers from that local cache, there is no published per-request rate limit on the Connect API itself. The sync and the separate Events API have their own limits.
Related

More security API guides for agents

What is Bollard AI?

Control what every AI agent can do in 1Password.

Bollard AI sits between a team's AI agents and 1Password. Grant each agent exactly the access it needs, read or write, vault by vault, and every call is checked and logged.

  • Set read, write, or full access per agent, never a shared Connect token.
  • Denied by default, so an agent reaches only the vaults that have been explicitly allowed.
  • Every call recorded in plain English: who, what, where, and the decision.
1Password
Secrets Agent
Read items in Shared vault ResourceOffReadFull use
Create items in CI vault ActionOffReadFull use
Delete items ActionOffReadFull use
Download item files ActionOffReadFull use
Per-agent access, set in Bollard AI, not in 1Password