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

# Find a failed request

> Get the ID of a failed request, find it in traces to see what refused it, and give your admin the details they need.

When a request fails and the error doesn't say why, find it in traces to see which plugin or provider refused it. This topic shows you how to get the request's ID from the response, find the request in traces, and share the ID with an admin if you can't open traces yourself.

The gateway logs every request that reaches your configuration, but a trace exists only if the request was sampled and the data plane exports traces.

## Prerequisites

Before you begin, make sure you have the following:

* A request that you already sent through a route.
* Access to **Traces** in the console. If you can't see it, ask your admin to look up the request for you, as the last section describes.

## Get the request ID

Every response, including errors, carries an `X-Request-Id` header. In cURL, add `-i` to print the response headers.

```bash
curl -i "BASE_URL/v1/models" \
  -H "fg-api-key: GATEWAY_KEY"
```

## Find the request in traces

To find the request, do the following:

1. In the console sidebar, select **Traces** to see requests for the current namespace. If you're an admin, you can also select **Admin** and then **Traces** to see requests across your whole organization.
2. Select a time range, and filter by **Route**, **Connection**, or **Status**.
3. Select the row that matches your request, and open its span view.

On a route with a [model router](/configure/routing/model-router), you can also read the `x-fabric-model` response header to see which provider and model answered. To read the details of a trace, including plugin timing and the upstream attempt, see [Inspect traces](/use/monitor/traces).

## Ask an admin to look it up

If you can't open **Traces**, send your admin the `X-Request-Id` value, the time you sent the request, and the route. They can find the trace and tell you why the request failed or what a plugin did to it.

## Next steps

* [Troubleshoot access](/use/access-denied)
* [Troubleshoot Fabric AI Gateway](/help/troubleshooting)
* [Handle errors and retries](/use/errors)