# API Errors

Below is the error structure returned by Dfns API.

| Field     | Description                                                                             | Type    |
| --------- | --------------------------------------------------------------------------------------- | ------- |
| `id`      | The error ID. You can share this with Dfns support to help troubleshoot your issue.     | String  |
| `status`  | [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status). | Integer |
| `message` | The error message.                                                                      | String  |
| `details` | Structured data that provides additional error context.                                 | Object  |

### Example

```json
{
  "error": {
    "id": "2038837570328299032",
    "status": 404,
    "message": "wallet not found",
    "details": {
      "walletId": "wa-1f04s-lqc9q-xxxxxxxxxxxxxxxx",
      "orgId": "or-195qp-opddr-xxxxxxxxxxxxxxxx"
    }
  }
}
```
