> ## Documentation Index
> Fetch the complete documentation index at: https://www.1password.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get started with the 1Password Events API

> Learn how to set up an OAuth application and make your first requests to the 1Password Events API.

You can use the 1Password Events API to retrieve audit events from your business or enterprise account and send them to your security information and event management (SIEM) system.

Follow this guide to request an access token, use it to authorize your first Events API request, and retrieve the next page of audit events.

## Requirements

Before you get started with the Events API, you'll need the following.

* A [1Password Business](https://1password.com/business-security) or [1Password Enterprise Password Manager](https://1password.com/product/enterprise-password-manager) account (not included with 1Password Teams).
* Permissions to manage integrations in your 1Password account. For example, you can be an [owner](https://support.1password.com/groups/#owners), an [administrator](https://support.1password.com/groups/#administrators), an [External Account Manager](https://support.1password.com/msp-technician-permissions/), or a member of the [Security group](https://support.1password.com/groups/#security).

## Step 1: Create an OAuth application in your 1Password account

Create an OAuth application in your 1Password account to get the client ID and client secret your integration uses to request an access token.

> [!NOTE]
>
> An OAuth application's scopes are set when you create it. If your integration needs different scopes, create a new application.

1. [Sign in](https://start.1password.com/signin) to your account on 1Password.com.

2. Select [**Integrations**](https://start.1password.com/integrations/directory) in the sidebar. If you've set up other integrations in your account, select **Directory** on the Integrations page.

3. Select **Events reporting**.

4. Select **Continue with OAuth**.

5. Configure your OAuth application:

   * **Application Name**: Enter a name to help you identify the integration.
   * **Scopes**: Check that **View audit events** is selected.
   * **Description**: (Optional) Add a description with additional information about your OAuth application.

   When you're finished, select **Next** to generate your client ID and client secret.

   > [!WARNING]
   >
   > 1Password shows the client secret once. Save it before you continue.

6. Select **Save in 1Password** and choose a vault for the client ID and client secret. Then select **View integration**.

When you select **Events reporting** in the directory, 1Password chooses the **Client credentials** grant type for you and marks that step as complete. If you select **Directory** > **OAuth Application**, choose **Client credentials** as the grant type, then select the **View audit events** scope.

Learn more about [how to manage OAuth 2.0 authorization](https://www.1password.dev/events-api/v3/manage-integrations.md).

## Step 2: Request an access token

After you create the OAuth application in your 1Password account, you'll need an access token to make your first call to the Events API.

Using [curl](https://curl.se/) on the command line, make a POST call to the [`/v1/oauth/token` endpoint](https://www.1password.dev/users-api/request-access-token). Pass your client ID and client secret in the `--user` option so curl can encode your credentials and send them in the HTTP Basic header. Use the [base URL](https://www.1password.dev/events-api/v3/conventions.md#base-urls) that matches your account's region. For example:

```shell theme={null}
curl --request POST https://api.1password.com/v1/oauth/token \
  --header "Content-Type: application/x-www-form-urlencoded" \
  --user "<client_id>:<client_secret>" \
  --data "grant_type=client_credentials"
```

A successful response includes an access token and the scopes granted to it. For example:

```json theme={null}
{
  "access_token": "<access_token>",
  "token_type": "Bearer",
  "expires_in": 900,
  "scope": "audit-events.view"
}
```

Access tokens expire after 15 minutes. The `expires_in` value is in seconds. Request a new token when the current one expires.

Learn more about [OAuth 2.0 authorization](https://www.1password.dev/events-api/v3/manage-integrations.md) in the Events API.

## Step 3: Send a test request to the Events API

Use your access token in the `Authorization` header to authorize a request to the Events API. Make sure the token has the [`audit-events.view` scope](https://www.1password.dev/events-api/v3/manage-integrations#scopes).

Use the same [base URL](https://www.1password.dev/events-api/v3/conventions.md#base-urls) you used to request the access token. The `-` in the path selects the account associated with the token. In this example, `max_page_size=1` limits the response to one audit event.

The `User-Agent` header is optional. Include it in the format `<CompanyOrProductName>/<version>` to identify requests from your integration.

```shell theme={null}
curl --request GET \
  --url "https://api.1password.com/v3/accounts/-/audit-events?max_page_size=1" \
  --header "Authorization: Bearer <YOUR_ACCESS_TOKEN>" \
  --header "User-Agent: <CompanyOrProductName>/<version>"
```

A successful request returns a JSON response with a `results` array. If more pages are available, the response includes a `next_page_token`. This example shows a vault access update.

```json Example response expandable theme={null}
{
  "results": [
    {
      "id": "A5K6COGVRVEJXJW3XQZGS7VAMM",
      "create_time": "2026-11-15T18:36:31Z",
      "insert_time": "2026-11-15T18:36:31.883698939Z",
      "context": {
        "account": {
          "id": "VZSYVT2LGHTBWBQGUJAIZVRABM",
          "name": "Acme"
        },
        "origin": "Admin Console",
        "session": {
          "id": "X6TARAEE2NGKFLMK5POQBZ4U2Q",
          "login_time": "2026-11-15T18:29:46.871840158Z"
        },
        "location": {
          "ip_address": "192.0.2.254",
          "region_code": "CA",
          "city": "Toronto",
          "latitude": 43.6425,
          "longitude": -79.387
        },
        "device": {
          "id": "xa2p3x45d6vbk7noqnom89rxqm",
          "model": "149.0.7827.22",
          "name": "Chrome extension"
        },
        "client": {
          "name": "1Password Extension",
          "version": "81224010"
        },
        "os": {
          "name": "MacOSX",
          "version": "26.5.0"
        },
        "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36"
      },
      "actor": {
        "type": "user",
        "id": "4HCGRGYCTRQFBMGVEGTABYDU2V",
        "name": "Wendy Appleseed",
        "email": "wendy@example.com"
      },
      "category": "vault",
      "action": "vault.access.update",
      "targets": [
        {
          "type": "vault",
          "id": "lc5fqgbrcm4plajd8mwncv2b3u",
          "vault": {
            "id": "lc5fqgbrcm4plajd8mwncv2b3u",
            "type": "U",
            "type_description": "user-created"
          }
        },
        {
          "type": "user",
          "id": "OYBARQG5SNEFZHGYT4NDXCHGNI",
          "user": {
            "id": "OYBARQG5SNEFZHGYT4NDXCHGNI",
            "name": "Patrick Appleseed",
            "email": "patrick@example.com"
          }
        }
      ],
      "diff": {
        "type": "user-vault-access-change",
        "old_value": {
          "acl": 15730672,
          "aclDescription": [
            "read-item"
          ]
        },
        "new_value": {
          "acl": 15730674,
          "aclDescription": [
            "manage",
            "reveal-password",
            "read-item",
            "update-item",
            "create-item",
            "archive-item",
            "delete-item",
            "view-item-history",
            "send-item"
          ]
        }
      },
      "correlation_id": "BENRUNBI3JCPPLFFRZTQA6XWIZ",
      "outcome": {
        "result": "success"
      }
    }
  ],
  "next_page_token": "<NEXT_PAGE_TOKEN>"
}
```

The request covers the past hour by default. If `results` is empty, use an earlier `start_time` to [expand the time range](https://www.1password.dev/events-api/v3/conventions.md#filtering).

If you have more pages of results, take the `next_page_token` from the response and use it in the `page_token` query parameter to fetch the next page. Use the same base URL as the first request.

```shell theme={null}
curl --get \
  --url "https://api.1password.com/v3/accounts/-/audit-events" \
  --header "Authorization: Bearer <YOUR_ACCESS_TOKEN>" \
  --header "User-Agent: <CompanyOrProductName>/<version>" \
  --data-urlencode "page_token=<NEXT_PAGE_TOKEN>"
```

Repeat with the token from each response until `next_page_token` is empty. Learn more about [pagination](https://www.1password.dev/events-api/v3/conventions.md#pagination) and [continuous polling](https://www.1password.dev/events-api/v3/conventions.md#continuous-polling).

## Step 4: Connect your 1Password account to your SIEM

After you've confirmed that you can retrieve audit events, use the [API reference](https://www.1password.dev/events-api/v3/reference.md) and [API conventions](https://www.1password.dev/events-api/v3/conventions.md) to build an integration that sends events to your SIEM.

Some SIEM vendors offer built-in integrations with 1Password Events Reporting. Check the [1Password Marketplace](https://marketplace.1password.com/?category=event-reporting) for your platform, then confirm which Events API version your vendor supports.

## Try out more examples

You can use the [Retrieve audit events](https://www.1password.dev/events-api/v3/reference/retrieve-audit-events.md) reference page to find more code examples. To send a request from the API playground, select **Try it** in the endpoint header, enter your values, then select **Send**.

> [!WARNING]
>
> Requests from the API playground go through the documentation platform's proxy service. To send requests directly from your system to 1Password, copy a code example and run it with your own tools.

To use a code example with another tool, choose a language from the dropdown menu. Select copy , then paste the example into your tool.

You can also download the [OpenAPI specifications](https://www.1password.dev/events-api/v3/reference.md#openapi-specifications) to use with code-generation tools, create mock servers, or import into API clients.

## Learn more

* [Authorize your integrations using OAuth 2.0](https://www.1password.dev/events-api/v3/manage-integrations.md)
* [API conventions](https://www.1password.dev/events-api/v3/conventions.md)
* [Events API reference](https://www.1password.dev/events-api/v3/reference.md)
* [Audit events catalog](https://www.1password.dev/events-api/v3/audit-events.md)


## Related topics

- [Retrieve audit events](https://www.1password.dev/events-api/v3/reference/retrieve-audit-events.md)
- [Authorize your integrations using OAuth 2.0](https://www.1password.dev/events-api/v3/manage-integrations.md)
- [API conventions](https://www.1password.dev/events-api/v3/conventions.md)
