1Password Connect Server API reference
If you're new to 1Password Secrets Automation and 1Password Connect Server, learn how to get started with a Secrets Automation workflow.
You can use the Connect API to work with the vaults and items in your account, and to list API activity on a Connect server:
- List vaults
- Get vault details
- List items
- Add an item
- Get item details
- Replace an item
- Delete an item
- Update a subset of item attributes
- List files
- Get file details
- Get file content
- List API activity
To view the API in another tool, download the API specification file: 1password-connect-api.yaml
Requirements
Before you can use the 1Password Connect Server API, you'll need to:
- Sign up for 1Password.
- Set up a Secrets Automation workflow..
- Deploy 1Password Connect in your infrastructure.
Request headers
Each request to the API has to be authenticated with an access token. Provide it and specify the content type:
List vaults
Path parameters
No path parameters
Query parameters
Parameter | Type | Description |
---|---|---|
filter | string | Filter the vault collection using SCIM-style filters. Vaults can only be filtered by For example: name eq "Demo Vault" |
Responses
- 200
- Returns an array of vault names and IDs
- 401
- Invalid or missing token
Get vault details
Path parameters
Parameter | Type | Description |
---|---|---|
vaultUUID | string | The UUID of the vault to retrieve items from. |
Query parameters
No query parameters.
Responses
- 200
- Returns a Vault object
- 401
- Invalid or missing token
- 403
- Unauthorized access
- 404
- Vault not found
List items
Path parameters
Parameter | Type | Description |
---|---|---|
vaultUUID | string | The UUID of the vault to get the details of. |
Query parameters
Parameter | Type | Description |
---|---|---|
filter | string | Filter the item collection using SCIM-style filters . Items can only be filtered by For example: title eq "Example Item" or tag eq "banking" |
Responses
- 200
- Returns an array of Item objects that don't include sections and fields
- 401
- Invalid or missing token
- 404
- Vault not found
Add an item
The request must include a FullItem object, containing the information to create the item. For example:
Parameter | Type | Description |
---|---|---|
title | string | The title of the item. |
vault | object | An object containing an id property whose value is the UUID of the vault the item is in. |
category | string | The category of the item. One of:
You can't create items using the "CUSTOM" or "DOCUMENT" categories. |
urls | array | Array of URL objects containing URLs for the item. |
favorite | boolean | Mark the item as a favorite. |
tags | string | An array of strings of the tags assigned to the item. |
fields | array | An array of Field objects of the fields to include with the item. |
sections | array | An array of Section objects of the sections to include with the item. |
Path parameters
Parameter | Type | Description |
---|---|---|
vaultUUID | string | The UUID of the vault to create an item in. |
Query parameters
No query parameters.
Responses
- 200
- Returns Item object containing the new item
- 400
- Unable to create item due to invalid input
- 401
- Invalid or missing token
- 403
- Unauthorized access
- 404
- Item not found
Get item details
Path parameters
Parameter | Type | Description |
---|---|---|
vaultUUID | string | The UUID of the vault to retrieve the item from. |
itemUUID | string | The UUID of the item to retrieve. |
Query parameters
No query parameters.
Responses
- 200
- Returns an Item object
- 401
- Invalid or missing token
- 403
- Unauthorized access
- 404
- Item not found
Replace an item
Path parameters
Parameter | Type | Description |
---|---|---|
vaultUUID | string | The UUID of the vault to retrieve the item from. |
itemUUID | string | The UUID of the item to replace. |
Query parameters
No query parameters.
Responses
- 200
- Returns an Item object
- 400
- Unable to create item due to invalid input
- 401
- Invalid or missing token
- 403
- Unauthorized access
- 404
- Item not found
Delete an item
Path parameters
Parameter | Type | Description |
---|---|---|
vaultUUID | string | The UUID of the vault to retrieve the item from. |
itemUUID | string | The UUID of the item to delete. |
Query parameters
No query parameters.
Responses
- 204
- Successfully deleted an item
- 401
- Invalid or missing token
- 403
- Unauthorized access
- 404
- Item not found
Update a subset of item attributes
Applies an add
, remove
, or replace
operation on an item or the fields of an item. Uses the RFC6902 JSON Patch document standard.
Parameter | Type | Description |
---|---|---|
op | string | The kind of operation to perform. One of:
|
path | string | An RFC6901 JSON Pointer to the item, an item attribute, an item field by field ID, or an item field attribute. For example: "/fields/vy09gd8EXAMPLE/label" |
value | any | The new value to apply at the path. |
Path parameters
Parameter | Type | Description |
---|---|---|
vaultUUID | string | The UUID of the vault the item is in. |
itemUUID | string | The UUID of the item to update. |
Query parameters
No query parameters.
Responses
- 200
- Returns an Item object of the updated item.
- 401
- Invalid or missing token
- 403
- Unauthorized access
- 404
- Item not found
List files
Path parameters
Parameter | Type | Description |
---|---|---|
vaultUUID | string | The UUID of the vault to get the details of. |
itemUUID | string | The UUID of the item to retrieve. |
Query parameters
Parameter | Type | Description |
---|---|---|
inline_content | boolean | Whether to return the Base-64 encoded file content. The file size must be less than OP_MAX_INLINE_FILE_SIZE_KB , or 100 kilobytes if the file size isn't defined. Optional. |
Responses
- 200
- Returns an array of File objects
- 401
- Invalid or missing token
- 404
- Item not found
- 413
- File too large to display inline