Migrate a vendor-managed integration
Ask your security information and event management (SIEM) vendor which version of its integration supports the Events API v3 endpoint with OAuth, when that version will be available, and how to switch without interrupting event collection. Plan to complete the migration before June 30, 2027. When your vendor’s update is available, create an OAuth application, configure the updated integration with its client credentials, and confirm that new events arrive in your SIEM before you disable the legacy integration. To find an integration guide for your SIEM, see Events Reporting integrations in the 1Password Marketplace.Migrate a custom integration
Create an OAuth application
You’ll need permission to manage integrations in your 1Password account. For example, you can be an owner, an administrator, an External Account Manager, or a member of the Security group. Create an OAuth application for your Events API integration even if you already use OAuth for another 1Password API. Use the Client credentials grant type and the View audit events scope (audit-events.view).
An OAuth application’s scopes are set when you create it. If your integration needs different scopes, create a new application.
- Sign in to your account on 1Password.com.
- Select Integrations in the sidebar. If you’ve set up other integrations in your account, select Directory on the Integrations page.
- Select Events reporting.
- Select Continue with OAuth.
-
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.
- Select Save in 1Password and choose a vault for the client ID and client secret. Then select View integration.
api.1password.com with the host for your account’s region if needed.
access_token from the response in the Authorization: Bearer header in place of your legacy token. The access token expires after 15 minutes (900 seconds). Request another access token with the same client credentials when it expires.
Remove calls to the legacy token introspection endpoint (/api/v2/auth/introspect or /api/auth/introspect). To check whether a v3 OAuth access token is active, call POST /v1/oauth/introspect with the same client credentials you used to request the token. You can also use expires_in from the token response to track when the token expires.
Send requests to the new endpoint
Use the same new host to request access tokens and retrieve events.
Replace POST requests to
auditevents, itemusages, and signinattempts with GET /v3/accounts/{account}/audit-events. Use your account ID for {account}, or use - to select the account associated with your access token.
Leave the request body empty and send parameters in the query string. Replace limit with max_page_size, which has a maximum of 1,000. Omit max_page_size or set it to 0 for the default of 100. Unknown or repeated query parameters return 400 Bad Request.
Send a test request. A 200 OK response contains a results array, which can be empty. To test your parser with known activity, set start_time to an earlier insertion time.
Update pagination and polling
In Events API v3,start_time and end_time are exclusive and filter on insert_time, when 1Password stored the event. Use create_time to see when the event occurred. The API can retrieve events from the last 120 days, subject to when each event type became available.
The legacy Events API filters events by when they occurred. The same time range can return different events in v3 because 1Password can store an event after it occurs. To find events that occurred within a specific time range, query a wider range by insertion time and filter the results by
create_time.- Start a query with
start_timeand, for a bounded query,end_time. Use RFC 3339 format for both values. Leaveend_timeunset when polling for new events. - Process the events in
results. Ifnext_page_tokenhas a value, send it aspage_tokenin the query string on the next request. Omitstart_timeandend_timewhen you sendpage_token. - Repeat until
next_page_tokenis empty. After you’ve processed every page, save the last processed event’sinsert_timeat full precision. If the query returned no events, keep your previous starting point. - On the next poll, start a fresh query using that timestamp as
start_time.
insert_time across pages. A new query excludes events at its start_time. To recheck for events that became searchable after a poll, use a start_time before the saved timestamp and skip events you’ve already stored by id. Learn more about continuous polling.
Update event parsing and rules
Read events fromresults instead of items. Some fields can be present with an empty string ("") or zero (0). For example, a target without an identifier has id set to "". Check the field’s value before you use it in a rule or a lookup.
The endpoint returns events from all categories in the requested time range in a single stream. Use category to route events in your integration. For example, filter for vault-item-usage to collect item usage or sign-in to collect sign-in attempts.
For sign-in attempts, read outcome.result. The possible values are success, failure, timeout when a second-factor challenge expires, and report when a firewall rule reports the sign-in and allows it to proceed.
Update your alerts, saved searches, and dashboards that use legacy action values. v3 uses dotted actions such as report.view and a separate category such as report. Some legacy action values map to the same v3 action. For example, delete and autodel both map to user.delete. To find automatic deletions, filter for actor.type set to system. Use diff to distinguish other changes where available. See Audit event data availability for action mappings and history by event type.
Each entry in targets represents an affected entity. Read its type and id together to identify it. Read additional fields from the key that matches type with hyphens replaced by underscores. For example, a vault-item target has its fields under vault_item. A target without additional fields omits the nested object.
Audit event field mapping
If you use a legacy
/api/v1/ endpoint, context.account.id, actor.type, and actor.linked_account.id are new fields. For example, when a managed service provider (MSP) technician acts in a customer’s account from the provider’s account, actor.linked_account identifies the provider’s account. Events API v3 returns the actor’s ID from their original account. Use actor.linked_account to identify the account where that ID belongs.
Update error handling and rate limits
Handle errors by HTTP status. When the API returns a JSON error body, readcode and message in place of Error.Message.
All v3 integrations for an account share limits of 600 requests per minute and 30,000 per hour. Budget requests across integrations that poll the same account. See API conventions for other errors and rate limit headers.
Test and switch to Events API v3
- Keep the legacy integration sending events to production. Set
start_timebefore the planned switch so the two streams cover some of the same activity. Start the v3 integration and send its events to a test destination. Keep the legacy cursors and the v3 checkpoint separately. - Compare both streams over the same period. Use the legacy
timestampand v3create_timeto compare when events occurred. Check that v3 includes the categories and event details you need and that your alert rules trigger as expected. Event IDs can differ between versions, so use the action mappings and event details such as the actor and affected entity to compare events. - Stop legacy delivery to production and retain the last legacy cursors. Compare the staged v3 events around the switch with the events legacy already delivered. Forward the missing events to production and skip confirmed duplicates. Use the same check for late arrivals from the overlap period.
- Send new v3 events to production. Resume polling from the last v3 checkpoint for which you’ve processed every page and accounted for every event. Confirm that events arrive and that your alerts, searches, and dashboards work. Then turn off the legacy integration and revoke its bearer token if no other consumer uses it.