List accessible accounts
Retrieve a paginated list of accounts the authenticated principal can access. Identity-token callers receive every active account in their organization so they can pick one to supply via the X-Odus-Merchant header; access-key callers receive only their current account.
Query parameters
Sort direction. Defaults to ASC.
Field to sort by. Defaults to createdAt.
Page number for offset pagination. Defaults to 1.
Number of items per page for offset pagination. Defaults to 10.
Opts into cursor pagination and sets the page size. When provided, "page"/"pageSize" are ignored and the response returns a "nextCursor" instead of a total count.
Opaque cursor from a previous cursor-paginated response. Used together with "limit" to fetch the next page.
Response
OK
Example response
{
"pagination": {
"mode": "offset",
"pageSize": 10,
"hasPreviousPage": true,
"page": 2,
"itemCount": 11,
"pageCount": 2
},
"data": [
{
"createdAt": "2024-02-18T12:00:00Z",
"updatedAt": "2024-02-21T12:15:00Z",
"metadata": {
"key1": "value1",
"key2": "value2"
},
"name": "Zezima Studios"
}
]
}Changes
No recorded changes to this endpoint across all 1 revision of this API.