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

# Error 1005: Invalid request

> Resolve Relay error 1005.

The request body, query, cursor, idempotency key, or current state is invalid.

## Response

```json theme={null}
{
  "error": {
    "status": 400,
    "code": 1005,
    "message": "The request body, query, cursor, idempotency key, or current state is invalid.",
    "doc_url": "https://docs.relayapp.im/error/codes/1xxx/1005"
  },
  "success": false,
  "trace_id": "b923d71e50be43ba9e0fe1e34a7676c2"
}
```

## Fix

1. Compare the request with the generated API Reference.
2. Correct the field or state named in error.message before retrying.

## Retry

Do not retry the same request unchanged.

## Related

* [Error overview](/error)
* [Debugging](/guides/platform/debugging)
