> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ntropy.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ntropy.com/_mcp/server.

# Request IDs

Every API request sent to the Ntropy API is assigned a unique request ID. This ID is included in the response headers under
the key `X-Request-ID`. Request IDs are crucial for debugging and support. 

When you encounter an issue or
unexpected behavior with the API, including the request ID in your bug report allows our support team to diagnose the
issue.

<Aside>

### On a successful request
```python
from ntropy_sdk import SDK

sdk = SDK("cd1H...Wmhl")
tx = sdk.transactions.get("xbx8YP14g565Xk") 
request_id = tx.request_id
```

### On an unexpected error

```python
from ntropy_sdk import SDK, NtropyHTTPError

sdk = SDK("cd1H...Wmhl")
try:
    tx = sdk.transactions.get("xbx8YP14g565Xk")
except NtropyHTTPError as err:
    request_id = err.req_id
```
</Aside>