Skip to main content
useRequests and queryRequests read from GET /requests/v3, which requires a Relay API key sent via the x-api-key header. Because these hooks run in the browser, never ship your API key to the client — point baseApiUrl at a server-side proxy that injects x-api-key.

Parameters

Return Data

The hook returns an object with the base Tanstack Query response. The data property maps to the object returned in the aforementioned requests api.

Usage

Query Function