# Handle responses and errors

> Parse Management API envelopes, stable error codes, and trace identifiers.

Canonical page: https://rpc.aurpay.net/docs/management-api/errors

Successful responses use the dashboard envelope:

```json
{"msg":"ok","data":{}}
```

Error responses provide these stable fields:

| Field | Use |
|---|---|
| `code` | Branch application logic on the machine-readable error code |
| `msg` | Display the human-readable summary |
| `details` | Read structured recovery context such as required scopes |
| `trace_id` | Correlate the request during escalation |

Provide the `trace_id` and a redacted response to your RPC Gateway administrator or existing support contact. Keep the PAT and other secrets in protected storage.
