1Password API
  1. Items
1Password API
  • auth
    • Performs introspection of the provided Bearer JWT token
      GET
  • api-v1
    • Retrieves item usages
      POST
    • Retrieves sign-in attempts
      POST
  • Activity
    • Retrieve a list of API Requests that have been made.
      GET
  • Vaults
    • Get all Vaults
      GET
    • Get Vault details and metadata
      GET
  • Items
    • Get all items for inside a Vault
      GET
    • Create a new Item
      POST
    • Get the details of an Item
      GET
    • Update an Item
      PUT
    • Delete an Item
      DELETE
    • Update a subset of Item attributes
      PATCH
  • Files
    • Get all the files inside an Item
      GET
    • Get the content of a File
      GET
    • Get the details of a File
      GET
  • Health
    • Ping the server for liveness
      GET
    • Get state of the server and its dependencies.
      GET
  • Metrics
    • Query server for exposed Prometheus metrics
      GET
  1. Items

Get all items for inside a Vault

GET
/vaults/{vaultUuid}/items
Items
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'http://localhost:8080/v1/vaults//items'
响应示例响应示例
200 - 示例 1
[
  {
    "id": "string",
    "title": "string",
    "favorite": false,
    "version": 0,
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "lastEditedBy": "string",
    "category": "LOGIN",
    "tags": [
      "string"
    ],
    "state": "ARCHIVED",
    "vault": {
      "id": "string"
    },
    "urls": [
      {
        "primary": true,
        "href": "https://example.com"
      },
      {
        "href": "https://example.org"
      }
    ]
  }
]

请求参数

Path 参数
vaultUuid
string 
必需
The UUID of the Vault to fetch Items from
正则匹配:
^[\da-z]{26}$
Query 参数
filter
string 
可选
Filter the Item collection based on Item name using SCIM eq filter
示例值:
title eq "Some Item Name"

返回响应

🟢200成功
application/json
OK
Body
array of:
id
string 
可选
正则匹配:
^[\da-z]{26}$
title
string 
可选
favorite
boolean 
可选
默认值:
false
version
integer 
可选
createdAt
string <date-time>
只读可选
updatedAt
string <date-time>
只读可选
lastEditedBy
string 
只读可选
category
enum<string> 
必需
枚举值:
LOGINPASSWORDAPI_CREDENTIALSERVERDATABASECREDIT_CARDMEMBERSHIPPASSPORTSOFTWARE_LICENSEOUTDOOR_LICENSESECURE_NOTEWIRELESS_ROUTERBANK_ACCOUNTDRIVER_LICENSEIDENTITYREWARD_PROGRAMDOCUMENTEMAIL_ACCOUNTSOCIAL_SECURITY_NUMBERMEDICAL_RECORDSSH_KEYCUSTOM
tags
array[string]
可选
state
enum<string> 
只读可选
枚举值:
ARCHIVEDDELETED
vault
object 
必需
id
string 
必需
正则匹配:
^[\da-z]{26}$
urls
array [object {3}] 
可选
示例值:
[{"primary":true,"href":"https://example.com"},{"href":"https://example.org"}]
label
string 
可选
primary
boolean 
可选
href
string <url>
必需
🟠401没有权限
🟠404记录不存在

【1Password】API开发者 微信交流群

用微信扫右侧二维码,加入【1Password】API开发者 交流群,互助沟通

扫码加入交流群
上一页
Get Vault details and metadata
下一页
Create a new Item
Built with