1Password Connect
API version: 1.5.7
Auth
Bearer bearer
Base URL
http://localhost:8080/v1
Setup
- 1. Set Authorization header with your Bearer token
- GET /activity -- verify access
- POST /vaults/{vaultUuid}/items -- create first items
Endpoints
15 endpoints across 5 groups. See references/api-spec.lap for full details.
activity
| Method | Path | Description |
|---|
| GET | /activity | Retrieve a list of API Requests that have been made. |
vaults
| Method | Path | Description |
|---|
| GET | /vaults | Get all Vaults |
| GET |
/vaults/{vaultUuid} | Get Vault details and metadata |
| GET | /vaults/{vaultUuid}/items | Get all items for inside a Vault |
| POST | /vaults/{vaultUuid}/items | Create a new Item |
| GET | /vaults/{vaultUuid}/items/{itemUuid} | Get the details of an Item |
| PUT | /vaults/{vaultUuid}/items/{itemUuid} | Update an Item |
| DELETE | /vaults/{vaultUuid}/items/{itemUuid} | Delete an Item |
| PATCH | /vaults/{vaultUuid}/items/{itemUuid} | Update a subset of Item attributes |
| GET | /vaults/{vaultUuid}/items/{itemUuid}/files | Get all the files inside an Item |
| GET | /vaults/{vaultUuid}/items/{itemUuid}/files/{fileUuid} | Get the details of a File |
| GET | /vaults/{vaultUuid}/items/{itemUuid}/files/{fileUuid}/content | Get the content of a File |
heartbeat
| Method | Path | Description |
|---|
| GET | /heartbeat | Ping the server for liveness |
health
| Method | Path | Description |
|---|
| GET | /health | Get state of the server and its dependencies. |
metrics
| Method | Path | Description |
|---|
| GET | /metrics | Query server for exposed Prometheus metrics |
Common Questions
Match user requests to endpoints in references/api-spec.lap. Key patterns:
- - "List all activity?" -> GET /activity
- "List all vaults?" -> GET /vaults
- "Get vault details?" -> GET /vaults/{vaultUuid}
- "List all items?" -> GET /vaults/{vaultUuid}/items
- "Create a item?" -> POST /vaults/{vaultUuid}/items
- "Get item details?" -> GET /vaults/{vaultUuid}/items/{itemUuid}
- "Update a item?" -> PUT /vaults/{vaultUuid}/items/{itemUuid}
- "Delete a item?" -> DELETE /vaults/{vaultUuid}/items/{itemUuid}
- "Partially update a item?" -> PATCH /vaults/{vaultUuid}/items/{itemUuid}
- "List all files?" -> GET /vaults/{vaultUuid}/items/{itemUuid}/files
- "Get file details?" -> GET /vaults/{vaultUuid}/items/{itemUuid}/files/{fileUuid}
- "List all content?" -> GET /vaults/{vaultUuid}/items/{itemUuid}/files/{fileUuid}/content
- "List all heartbeat?" -> GET /heartbeat
- "List all health?" -> GET /health
- "List all metrics?" -> GET /metrics
- "How to authenticate?" -> See Auth section
Response Tips
- - Check response schemas in references/api-spec.lap for field details
- List endpoints may support pagination; check for limit, offset, or cursor params
- Create/update endpoints typically return the created/updated object
CLI
CODEBLOCK0
References
- - Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas
Generated from the official API spec by LAP
1Password Connect
API版本:1.5.7
认证
Bearer令牌
基础URL
http://localhost:8080/v1
设置
- 1. 使用您的Bearer令牌设置Authorization标头
- GET /activity -- 验证访问权限
- POST /vaults/{vaultUuid}/items -- 创建第一个条目
端点
共5组15个端点。完整详情请参见references/api-spec.lap。
活动
| 方法 | 路径 | 描述 |
|---|
| GET | /activity | 检索已发出的API请求列表。 |
保险库
| 方法 | 路径 | 描述 |
|---|
| GET | /vaults | 获取所有保险库 |
| GET |
/vaults/{vaultUuid} | 获取保险库详情和元数据 |
| GET | /vaults/{vaultUuid}/items | 获取保险库内的所有条目 |
| POST | /vaults/{vaultUuid}/items | 创建新条目 |
| GET | /vaults/{vaultUuid}/items/{itemUuid} | 获取条目详情 |
| PUT | /vaults/{vaultUuid}/items/{itemUuid} | 更新条目 |
| DELETE | /vaults/{vaultUuid}/items/{itemUuid} | 删除条目 |
| PATCH | /vaults/{vaultUuid}/items/{itemUuid} | 更新条目的部分属性 |
| GET | /vaults/{vaultUuid}/items/{itemUuid}/files | 获取条目内的所有文件 |
| GET | /vaults/{vaultUuid}/items/{itemUuid}/files/{fileUuid} | 获取文件详情 |
| GET | /vaults/{vaultUuid}/items/{itemUuid}/files/{fileUuid}/content | 获取文件内容 |
心跳
| 方法 | 路径 | 描述 |
|---|
| GET | /heartbeat | Ping服务器检查存活状态 |
健康
| 方法 | 路径 | 描述 |
|---|
| GET | /health | 获取服务器及其依赖项的状态。 |
指标
| 方法 | 路径 | 描述 |
|---|
| GET | /metrics | 查询服务器暴露的Prometheus指标 |
常见问题
将用户请求匹配到references/api-spec.lap中的端点。关键模式:
- - 列出所有活动? -> GET /activity
- 列出所有保险库? -> GET /vaults
- 获取保险库详情? -> GET /vaults/{vaultUuid}
- 列出所有条目? -> GET /vaults/{vaultUuid}/items
- 创建条目? -> POST /vaults/{vaultUuid}/items
- 获取条目详情? -> GET /vaults/{vaultUuid}/items/{itemUuid}
- 更新条目? -> PUT /vaults/{vaultUuid}/items/{itemUuid}
- 删除条目? -> DELETE /vaults/{vaultUuid}/items/{itemUuid}
- 部分更新条目? -> PATCH /vaults/{vaultUuid}/items/{itemUuid}
- 列出所有文件? -> GET /vaults/{vaultUuid}/items/{itemUuid}/files
- 获取文件详情? -> GET /vaults/{vaultUuid}/items/{itemUuid}/files/{fileUuid}
- 列出所有内容? -> GET /vaults/{vaultUuid}/items/{itemUuid}/files/{fileUuid}/content
- 列出所有心跳? -> GET /heartbeat
- 列出所有健康? -> GET /health
- 列出所有指标? -> GET /metrics
- 如何认证? -> 参见认证部分
响应提示
- - 查看references/api-spec.lap中的响应模式以获取字段详情
- 列表端点可能支持分页;检查limit、offset或cursor参数
- 创建/更新端点通常返回创建/更新后的对象
CLI
bash
将此规范更新到最新版本
npx @lap-platform/lapsh get 1password-connect -o references/api-spec.lap
搜索相关API
npx @lap-platform/lapsh search 1password-connect
参考
- - 完整规范:参见references/api-spec.lap获取完整的端点详情、参数表和响应模式
由LAP从官方API规范生成