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

# LastResponse

API response metadata for request tracking and debugging

This response follows the standard [BaseResponse](/grid/v1/sdk-reference/typescript/reference/v2.0.0/interfaces/BaseResponse) wrapper with `data` (response payload) and `lastResponse` (request metadata).

This provides metadata
about the API request for troubleshooting and support queries.

## Remarks

Use this metadata to:

* Track requests by requestId when contacting support
* Verify successful requests via statusCode
* Implement retry logic based on idempotencyKey
* Debug issues by inspecting response headers

## Example

```typescript theme={null}
const response = await gridClient.getAccount(address);

console.log('Request ID:', response.lastResponse?.requestId);
console.log('Status:', response.lastResponse?.statusCode);
console.log('All headers:', response.lastResponse?.headers);
```

## Properties

| Property                                    | Type                          | Description                                                                                                                                                     |
| ------------------------------------------- | ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <a id="requestid" /> `requestId`            | `string`                      | Unique identifier from x-request-id header Use this when contacting support to help identify the specific request.                                              |
| <a id="statuscode" /> `statusCode`          | `number`                      | HTTP status code (200, 201, 400, etc.) Indicates the success status of the request.                                                                             |
| <a id="idempotencykey" /> `idempotencyKey?` | `string`                      | Idempotency key from x-idempotency-key header Used to safely retry requests without duplicate effects. Only present if the request included an idempotency key. |
| <a id="headers" /> `headers`                | `Record`\<`string`, `string`> | All response headers as key-value pairs Contains all HTTP headers returned by the server.                                                                       |
