> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dfns.co/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> The current DFNS API specification is https://docs.dfns.co/openapi.yaml. Files under /openapi-versions/ are archives of past releases; do not use them for new code.
> Prefer the official DFNS SDKs to raw HTTP calls: they sign requests for you. See https://docs.dfns.co/sdks.md.
> Requests that change state need a User Action Signature in the X-DFNS-USERACTION header, in addition to the Authorization bearer token. See https://docs.dfns.co/guides/developers/signing-requests.md.
> Do not use appId or the X-DFNS-APPID header: applications are deprecated.
> For a summary of how to build on DFNS, read https://docs.dfns.co/skill.md.

# SIEM integration

> Stream your organization's audit events to your SIEM: what DFNS sends, when it sends it, the event format, and the list of forwarded operations.

DFNS can forward your organization's audit events to the SIEM (security information and event management) tool your security team already uses. Each time a user or service account performs a sensitive operation, such as a transfer, a policy change or a permission assignment, DFNS sends one event to your SIEM, where you can search it, keep it with your other security logs, and alert on it.

Supported SIEM tools:

> [card] [Datadog](https://docs.dfns.co/integrations/siem/datadog.md)
>
> Forward audit events to Datadog Logs and Cloud SIEM.

> [!NOTE]
>
> SIEM forwarding is enabled per organization. If the integration shows **Feature Disabled** in the dashboard, click **Activate** or contact DFNS support to enable it.

## What DFNS sends

DFNS sends a `user_action` event for each [signed request](https://docs.dfns.co/guides/developers/signing-requests.md) to one of the [forwarded operations](#forwarded-operations), once DFNS has answered it:

* **Successful and failed requests.** The event carries the HTTP status DFNS returned (`responseStatus`) and, for a failure, the error message (`responseError`). A rejected request is often the most useful event for security monitoring.
* **Requests held by a policy.** When a [policy](https://docs.dfns.co/core-concepts/policies.md) holds a request for approval, DFNS sends a first event with status `202`, then a second event with the final status once the approval completes: the request's own status when approved, `412` when rejected. Both events have the same `data.userActionId`. A request blocked by a policy right away gets one event with status `412`.
* **The full signed action.** The event includes the method, path and request body the user signed, so you can filter on any field of the request, such as a transfer's destination address or the network of a new wallet.

The event records the API request, not what happens on the blockchain after it. To follow a transfer until it is confirmed onchain, use [webhooks](https://docs.dfns.co/guides/developers/webhooks.md).

The forwarded operations are the ones DFNS has reviewed as never carrying a secret in their request body. The same operations return their full details from [Get Audit Log](https://docs.dfns.co/api-reference/auth/get-audit-log.md). Every signed action, forwarded or not, is in your organization's [audit log](https://docs.dfns.co/guides/export-audit-log.md).

## Event format

Every event has the same fields, whatever the SIEM tool. Each tool's page shows how they map to its own log format, with an example: see [Datadog](https://docs.dfns.co/integrations/siem/datadog.md#log-format).

**id** `string` *required*

Unique ID of the event. Use it to drop duplicates.

**kind** `string` *required*

Event kind. Always `user_action` today.

**orgId** `string` *required*

ID of your organization.

**date** `string` *required*

When DFNS created the event (ISO 8601).

**message** `string` *required*

Human-readable summary of the action, such as `Create Ethereum wallet.` When the action has no summary, `user_action` followed by the user action ID.

**data** `object` *required*

The user action and its outcome.

**properties**

**userActionId** `string` *required*

ID of the user action. Same ID as in the [audit log](https://docs.dfns.co/api-reference/auth/list-audit-logs.md).

**userId** `string`

ID of the user or service account that signed the request.

**action** `object` *required*

The action the user signed. Empty when DFNS cannot read the signed action as JSON: see `rawAction`.

**properties**

**method** `string`

HTTP method of the request.

**path** `string`

Path of the request, such as `/wallets/wa-.../transfers`.

**server** `string`

API host the request was sent to.

**payload** `object | string`

Request body, as a JSON object. A body that is not valid JSON stays a string.

**summary** `string`

Summary of the action shown to the user when signing.

**rawAction** `string`

The signed action as a string. Only present when DFNS cannot read it as JSON, so the event is never lost.

**summary** `string`

Summary of the action. Same text as `message`.

**actionPath** `string`

Path of the request.

**responseStatus** `string` *required*

Final HTTP status of the request, as a string (`"200"`, `"403"`).

**responseError** `string`

Error message, when the request failed.

**dateSigned** `string`

When the user signed the action (ISO 8601).

**datePerformed** `string`

When DFNS performed the request (ISO 8601).

**dateResolved** `string` *required*

When the request reached its final outcome (ISO 8601).

## Delivery

* **Retries.** When your SIEM is unreachable, rate-limits DFNS or returns a server error, DFNS retries the event. Because of retries, the same event can arrive more than once: use `id` to drop duplicates.
* **Rejected events.** When your SIEM rejects an event for good, for example because the API key is wrong, DFNS does not retry it. Check your settings if events stop arriving.
* **Setting changes.** A change to your SIEM settings, including turning the integration off, takes effect within a few minutes.
* **Separate from webhooks.** SIEM forwarding runs apart from [webhook](https://docs.dfns.co/guides/developers/webhooks.md) delivery: a SIEM outage does not delay your webhooks.

## Forwarded operations

DFNS sends an event for a signed request to these operations:

| Operation | Request |
| - | - |
| [Sign and Broadcast Transaction](https://docs.dfns.co/api-reference/wallets/sign-and-broadcast-transaction.md) | `POST /wallets/{walletId}/transactions` |
| [Create Wallet](https://docs.dfns.co/api-reference/wallets/create-wallet.md) | `POST /wallets` |
| [Transfer Asset](https://docs.dfns.co/api-reference/wallets/transfer-asset.md) | `POST /wallets/{walletId}/transfers` |
| [Create Key](https://docs.dfns.co/api-reference/keys/create-key.md) | `POST /keys` |
| [Delete Policy](https://docs.dfns.co/api-reference/policies/delete-policy.md) | `DELETE /v2/policies/{policyId}` |
| [Update Policy](https://docs.dfns.co/api-reference/policies/update-policy.md) | `PUT /v2/policies/{policyId}` |
| [Create Approval Decision](https://docs.dfns.co/api-reference/policies/create-approval-decision.md) | `POST /v2/policy-approvals/{approvalId}/decisions` |
| [Create Policy](https://docs.dfns.co/api-reference/policies/create-policy.md) | `POST /v2/policies` |
| [Archive Permission](https://docs.dfns.co/api-reference/permissions/archive-permission.md) | `PUT /permissions/{permissionId}/archive` |
| [Delete Permission](https://docs.dfns.co/api-reference/permissions/delete-permission.md) | `DELETE /permissions/{permissionId}` |
| [Update Permission](https://docs.dfns.co/api-reference/permissions/update-permission.md) | `PUT /permissions/{permissionId}` |
| [Assign Permission](https://docs.dfns.co/api-reference/permissions/assign-permission.md) | `POST /permissions/{permissionId}/assignments` |
| [Create Permission](https://docs.dfns.co/api-reference/permissions/create-permission.md) | `POST /permissions` |
| [Revoke Permission](https://docs.dfns.co/api-reference/permissions/revoke-permission.md) | `DELETE /permissions/{permissionId}/assignments/{assignmentId}` |
| [Activate User](https://docs.dfns.co/api-reference/auth/activate-user.md) | `PUT /auth/users/{userId}/activate` |
| [Deactivate User](https://docs.dfns.co/api-reference/auth/deactivate-user.md) | `PUT /auth/users/{userId}/deactivate` |
| [Delete User](https://docs.dfns.co/api-reference/auth/delete-user.md) | `DELETE /auth/users/{userId}` |
| [Update User](https://docs.dfns.co/api-reference/auth/update-user.md) | `PUT /auth/users/{userId}` |
| [Create User](https://docs.dfns.co/api-reference/auth/create-user.md) | `POST /auth/users` |
| [Invite Tenant User](https://docs.dfns.co/api-reference/auth/invite-tenant-user.md) | `POST /auth/users/invite` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.