1Password API
  1. Activity
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. Activity

Retrieve a list of API Requests that have been made.

GET
/activity
Activity
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'http://localhost:8080/v1/activity'
响应示例响应示例
200 - 示例 1
[
  {
    "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
    "timestamp": "2019-08-24T14:15:22Z",
    "action": "READ",
    "result": "SUCCESS",
    "actor": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "account": "string",
      "jti": "string",
      "userAgent": "string",
      "requestIp": "string"
    },
    "resource": {
      "itemVersion": 0,
      "type": "ITEM",
      "vault": {
        "id": "string"
      },
      "item": {
        "id": "string"
      }
    }
  }
]

请求参数

Query 参数
limit
integer 
可选
How many API Events should be retrieved in a single request.
默认值:
50
示例值:
10
offset
integer 
可选
How far into the collection of API Events should the response start
默认值:
0
示例值:
50

返回响应

🟢200成功
application/json
OK
Headers
Content-Range
string 
可选
An decription of what part of the collection has been returned as well as the total size.
示例值:
1-50/1134
Body
array of:
requestId
string <uuid>
可选
The unique id used to identify a single request.
timestamp
string <date-time>
只读可选
The time at which the request was processed by the server.
action
enum<string> 
可选
枚举值:
READCREATEUPDATEDELETE
result
enum<string> 
可选
枚举值:
SUCCESSDENY
actor
object 
可选
id
string <uuid>
可选
account
string 
可选
jti
string 
可选
userAgent
string 
可选
requestIp
string 
可选
resource
object 
可选
itemVersion
integer 
可选
type
enum<string> 
可选
枚举值:
ITEMVAULT
vault
object 
可选
item
object 
可选
🟠401没有权限

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

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

扫码加入交流群
上一页
Retrieves sign-in attempts
下一页
Get all Vaults
Built with