> ## 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.

# Migrate from the Events API v3 beta

> Move your integration to the new Events API v3 endpoint before the beta endpoint stops working on December 31, 2026.

The Events API v3 is now generally available at a new endpoint that uses OAuth. The beta endpoint (`events.1password.com/api/v3/auditevents`) will stop working on December 31, 2026. To keep receiving audit events, move your integration to the new endpoint before that date.

## Set up OAuth

The generally available endpoint uses OAuth 2.0 client credentials. You'll need permission to manage integrations in your 1Password account to create an OAuth application with the **View audit events** scope (`audit-events.view`).

> [!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.

Use your new client ID and client secret to request an OAuth access token from `/v1/oauth/token`. Replace `api.1password.com` with the host for your account's region if needed.

```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'
```

Replace the beta bearer token with the `access_token` from the response. Request a new access token when the current one expires after 15 minutes.

## Use the new host and path

Replace your beta host with the new host for your account's region. Use this host to request access tokens and retrieve audit events.

| Beta host | New host |
| - | - |
| `events.1password.com` | `api.1password.com` |
| `events.1password.ca` | `api.1password.ca` |
| `events.1password.eu` | `api.1password.eu` |
| `events.ent.1password.com` | `api.ent.1password.com` |

Update the request path from `GET /api/v3/auditevents` to `GET /v3/accounts/{account}/audit-events`. Replace `{account}` with your 1Password account ID or use `-` to select the account associated with your access token.

## Update how you read the response

### Read events from `results`

The audit events array has moved from `audit_events` to `results`.

### Read target fields and IDs

Read each target's fields from the key that matches its `type` with hyphens replaced by underscores. For example, `vault-item` fields are under `vault_item`. The `payload` key was removed. A target with no additional fields, such as `settings` or `billing`, has no nested key.

Field names inside targets use snake case at every level. The field `uuid` becomes `id`, suffixes `UUID` and `Uuid` become `_id`, and other camel case keys become snake case. For example, `sessionUUID` becomes `session_id`, and `tokenHash` becomes `token_hash`. Field values stay the same.

Read `id` alongside `type` on every target. Use the pair to identify a target. An integer ID is returned as a string, such as `"42"`. A target with no identifier has an empty string for `id`.

The following examples show selected fields from the same event before and after migration.

```json Beta response theme={null}
{
  "audit_events": [
    {
      "action": "vault-item.share.create",
      "targets": [
        { "type": "vault-item", "payload": { "uuid": "vaultItemUUID" } },
        { "type": "item-share", "payload": { "uuid": "itemShareUUID" } },
        { "type": "sso-settings", "payload": { "provider": "okta" } }
      ]
    }
  ]
}
```

```json Generally available response theme={null}
{
  "results": [
    {
      "action": "vault-item.share.create",
      "targets": [
        { "type": "vault-item", "id": "vaultItemUUID", "vault_item": { "id": "vaultItemUUID" } },
        { "type": "item-share", "id": "itemShareUUID", "item_share": { "id": "itemShareUUID" } },
        { "type": "sso-settings", "id": "", "sso_settings": { "provider": "okta" } }
      ]
    }
  ]
}
```

The nested identifier keeps its normalized name. For example, on a `delegated-session` target, `delegated_session.session_id` has the same value as the target's top-level `id`.

### Read sign-in attempt outcomes

Sign-in attempt events now include `outcome`. Read `outcome.result` to see whether an attempt succeeded or failed.

## Handle the new error and renamed field

If your integration reads `type` from a JSON error body, update it to read `code`. The `message` field contains a description of the error.

The new endpoint can return `403 Forbidden` with the code `permission_denied` if the access token lacks the `audit-events.view` scope or belongs to a different account. Check the application's scope and the account in the request path.

An expired access token can also return `403 Forbidden` with an empty body. Request a new token and retry.

## Test your integration

You can test both endpoints before you switch. Calls to both count toward the same limits of 600 requests per minute and 30,000 requests per hour for your account. If you get `429 Too Many Requests`, wait the number of seconds in `Retry-After` before sending another request.

Send a test request with the OAuth access token and the regional host you used to request it.

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

Confirm that you get `200 OK` and your integration reads events from `results`. If the array is empty, use an earlier `start_time` to check a period with known activity. If the response has a `next_page_token` value, send it as `page_token` in the next request. Omit `start_time` and `end_time` when you send `page_token`.

After you verify parsing and pagination, switch your integration to the new endpoint. If you poll continuously, finish processing the current beta query and use the last processed event's `insert_time` as `start_time` in your first query on the new endpoint.

## Download the OpenAPI specification

Download the new [Events API v3 OpenAPI specification ](https://www.1password.dev/static/files/events-api/events-api-v3_2026-12-01.yaml) to update generated clients or import the API into your tools.

The v3 documentation starts with [Get started with the Events API](https://www.1password.dev/events-api/v3/get-started.md). See the [Events API reference](https://www.1password.dev/events-api/v3/reference.md) for endpoint details.


## Related topics

- [Events API changelog](https://www.1password.dev/events-api/v3/changelog.md)
- [Migrate from the legacy Events API to the Events API v3](https://www.1password.dev/events-api/v3/migrate-from-v2.md)
- [Events API conventions](https://www.1password.dev/events-api/v2/conventions.md)
