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

# endstate.requestWithMeta

> Same, plus request id, rate-limit headers, replay flag, and attempt count.

```ts theme={null}
requestWithMeta<Id extends SecretKeyOperationId>(operationId: Id, ...rest: RequestParams<Id, OptionsFor<Id>>): Promise<{
```

## Example

```ts theme={null}
const { data, meta } = await endstate.requestWithMeta("getUnit", {
  path: { unit_id: unitId },
});
meta.requestId;
```
