1Password Item Usages API

Retrieve information about items in shared vaults that have been modified, accessed, or used, including the user who accessed the item, when it was accessed, and the vault where the item is stored.

Documentation

Specifications

Schemas & Data

Other Resources

OpenAPI Specification

1password-item-usages-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: 1Password Connect Server Accounts Item Usages API
  description: The 1Password Connect Server API provides secure access to 1Password items and vaults in your company's apps and cloud infrastructure through a private REST API. Connect Servers bridge the gap between 1Password and your infrastructure by enabling programmatic access to secrets stored in shared vaults. You can create, read, update, and delete items, manage vaults, and retrieve files attached to items.
  version: 1.8.1
  contact:
    name: 1Password Support
    url: https://support.1password.com/
  termsOfService: https://1password.com/legal/terms-of-service/
  license:
    name: MIT
    url: https://github.com/1Password/connect/blob/main/LICENSE
servers:
- url: http://localhost:8080
  description: Local Connect Server (default port 8080)
security:
- bearerAuth: []
tags:
- name: Item Usages
  description: Retrieve information about items in shared vaults that have been modified, accessed, or used, including the user who accessed the item, when it was accessed, and the vault where the item is stored.
paths:
  /api/v2/itemusages:
    post:
      operationId: listItemUsagesV2
      summary: 1Password List Item Usages
      description: Returns information about items in shared vaults that have been modified, accessed, or used. Each record includes the name and IP address of the user who accessed the item, when the item was accessed, the action performed, the vault where the item is stored, and item details. The request must include either a cursor from a previous response or a ResetCursor object with a start time.
      tags:
      - Item Usages
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EventRequest'
      responses:
        '200':
          description: Successfully retrieved item usages
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ItemUsageResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    Error:
      type: object
      description: Represents an error response from the Events API.
      properties:
        status:
          type: integer
          description: The HTTP status code.
        message:
          type: string
          description: A human-readable error message.
    EventRequest:
      type: object
      description: The request body for fetching events. Must include either a cursor string from a previous response to continue pagination, or a ResetCursor object to start fetching from a specific time.
      properties:
        limit:
          type: integer
          description: The maximum number of event records to return per page.
          minimum: 1
          maximum: 1000
          default: 100
        cursor:
          type: string
          description: A cursor from a previous response to continue fetching events from where the last request left off.
        start_time:
          type: string
          format: date-time
          description: An ISO 8601 timestamp to begin fetching events from a specific time. Used to create a new cursor starting from this point.
    ItemUsageResponse:
      type: object
      description: The response containing item usage records and a cursor for pagination.
      properties:
        cursor:
          type: string
          description: A cursor to use in the next request to continue fetching events.
        has_more:
          type: boolean
          description: Whether there are more events available to fetch using the cursor.
        items:
          type: array
          description: The list of item usage records.
          items:
            $ref: '#/components/schemas/ItemUsage'
    EventClient:
      type: object
      description: Information about the client application used in an event.
      properties:
        app_name:
          type: string
          description: The name of the 1Password application.
        app_version:
          type: string
          description: The version of the application.
        platform_name:
          type: string
          description: The name of the operating system platform.
        platform_version:
          type: string
          description: The version of the operating system.
        os_name:
          type: string
          description: The name of the operating system.
        os_version:
          type: string
          description: The version of the operating system.
        ip:
          type: string
          description: The IP address of the client.
    ItemUsage:
      type: object
      description: Represents a record of an item in a shared vault being accessed, modified, or used.
      properties:
        uuid:
          type: string
          format: uuid
          description: The unique identifier for the item usage record.
        timestamp:
          type: string
          format: date-time
          description: When the item was accessed.
        used_version:
          type: integer
          description: The version of the item that was used.
        vault_uuid:
          type: string
          format: uuid
          description: The UUID of the vault containing the item.
        item_uuid:
          type: string
          format: uuid
          description: The UUID of the item that was used.
        action:
          type: string
          description: The type of action performed on the item.
          enum:
          - fill
          - copy
          - reveal
          - sso-fill
          - secure-copy
        user:
          $ref: '#/components/schemas/EventUser'
        client:
          $ref: '#/components/schemas/EventClient'
        location:
          $ref: '#/components/schemas/EventLocation'
    EventUser:
      type: object
      description: Represents a user involved in an event.
      properties:
        uuid:
          type: string
          format: uuid
          description: The unique identifier of the user.
        name:
          type: string
          description: The name of the user.
        email:
          type: string
          format: email
          description: The email address of the user.
    EventLocation:
      type: object
      description: Geographic location information associated with an event.
      properties:
        country:
          type: string
          description: The two-letter ISO country code.
          minLength: 2
          maxLength: 2
        region:
          type: string
          description: The region or state.
        city:
          type: string
          description: The city name.
        latitude:
          type: number
          format: double
          description: The latitude coordinate.
        longitude:
          type: number
          format: double
          description: The longitude coordinate.
  responses:
    Unauthorized:
      description: Authentication credentials are missing or invalid
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TooManyRequests:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: A Connect server access token generated from 1Password. Each request must include this token in the Authorization header.
externalDocs:
  description: 1Password Connect Server API Reference
  url: https://developer.1password.com/docs/connect/api-reference/