Base interface for all API responses with data and metadata All successful API responses follow this wrapper pattern for consistency and debugging. Errors throw GridError instead of returning error objects.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.
Remarks
The BaseResponse wrapper provides:- data: The actual response payload from the API
- lastResponse: Request metadata for debugging and tracking
- Access response data via the
dataproperty - Track requests using
lastResponse.requestIdfor support queries - Debug issues with status codes and headers
- Implement idempotency using
lastResponse.idempotencyKey
Note: Errors are NOT returned in the response. Instead, they throw GridError with similar metadata.
Examples
Extended by
TransactionResponseInitAuthResponseCompleteAuthResponseCompleteAuthAndCreateAccountResponseGetAccountResponseAccountBalancesResponseGetTransactionsResponseTransactionSubmissionResponseTransferResponseCreateSpendingLimitResponseSpendingLimitTransactionResponseSpendingLimitResponseSpendingLimitsResponseGetPasskeysResponseAddPasskeyResponseRemovePasskeyResponseCreatePaymentIntentResponseKycLinkResponseKycStatusResponseRefreshSessionResponseCreateProposalResponseVoteProposalResponseExecuteProposalResponseCreateTradeSmartTransactionResponseGetTradeQuoteResponseTradeSmartTransactionQuoteResponsePrepareTradeSmartTransactionResponseGetTradeSmartTransactionResponseVirtualAccountResponseVirtualAccountsResponseCreateStandingOrderResponseStandingOrderResponseStandingOrdersResponseAuthorizePasskeySessionResponseSubmitPasskeySessionResponseFindPasskeyAccountResponseGetPasskeySessionResponseGetPasskeyAccountResponseCreatePasskeyAccountResponse
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
T | any | Type of response data |
Properties
| Property | Type | Description |
|---|---|---|
data | T | Response data from API Contains the actual payload returned by the API endpoint. The type varies based on the specific response interface. |
lastResponse? | LastResponse | Response metadata with request ID and status code Useful for debugging and tracking requests. Contains: - requestId: Unique identifier for this request - statusCode: HTTP status code (200, 201, etc.) - headers: All response headers - idempotencyKey: Key for idempotent requests (if applicable) See LastResponse |