v2 endpoints
These endpoints are paginated:Request
Response
pageNumber past the last page returns an empty items array.
Iterating through pages
Start atpageNumber=0 and stop when pageNumber + 1 >= totalPages:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
How to page through list endpoints with the pageSize and pageNumber query parameters.
| Endpoint | Order |
|---|---|
GET /organizations | Newest first. Your customer organizations. |
GET /organization/{organizationId}/payment_accounts | Oldest first. |
GET /orders | Newest first. The orders of your organization and all its customer organizations, or one organization’s with ?organizationId=. |
| Parameter | Default | Rule |
|---|---|---|
pageSize | 30 | Items per page, 1 to 100. Other values return 400 invalid-request. |
pageNumber | 0 | Which page to return. Starts at 0. |
curl "https://api.sand.etherfuse.com/orders?pageSize=50&pageNumber=0" \
-H "Authorization: <your_api_key>"
| Field | Type | Description |
|---|---|---|
items | array | The items on this page. |
totalItems | integer | Total items across all pages. |
pageSize | integer | Items per page. |
pageNumber | integer | Zero-based index of this page. |
totalPages | integer | Total number of pages. |
{
"items": [],
"totalItems": 42,
"pageSize": 30,
"pageNumber": 0,
"totalPages": 2
}
pageNumber past the last page returns an empty items array.
pageNumber=0 and stop when pageNumber + 1 >= totalPages:
const pageSize = 100;
const all = [];
for (let page = 0; ; page++) {
const res = await fetch(
`https://api.sand.etherfuse.com/orders?pageSize=${pageSize}&pageNumber=${page}`,
{ headers: { Authorization: apiKey } },
);
const { items, totalPages } = await res.json();
all.push(...items);
if (page + 1 >= totalPages) break;
}