Endpoint: /
Method: GET
Description: Renders the documentation page.
Endpoint: /members/<space>
Method: GET
Description: Fetches unique voters for a given space. Optionally fetches on-chain members and delegates if onchain
parameter is provided.
space
(path parameter):
string
offchain_cursor
(query parameter, optional):
integer
onchain_cursor
(query parameter, optional):
integer
onchain
(query parameter, optional):
string
refresh
(query parameter, optional):
boolean
true
, forces a refresh of the cached data.200 OK
Content-Type: application/json
Description: Returns the list of unique voters, and optionally on-chain members and delegates, with pagination cursors.
{
"Members": {
"@context": "http://daostar.org/schemas",
"type": "DAO",
"name": "Example DAO",
"members": {
"offchain": {
"members": [
{"id": "0x123...", "type": "EthereumAddress"},
{"id": "0x456...", "type": "EthereumAddress"}
],
"offchain_cursor_str": 123456789
},
"onchain": {
"members": [
{"id": "0xabc...", "role": "member", "type": "EthereumAddress"},
{"id": "0xdef...", "role": "delegate", "type": "EthereumAddress"}
],
"onchain_cursor_str": 987654321
}
}
}
}
400 Bad Request
Content-Type: application/json
Description: Returns an error message if an invalid cursor is provided.
{
"error": "Invalid offchain cursor format. Cursor must be an integer."
}
URL: /members/ens.eth
Description: Fetches unique off-chain voters for the space "example-space"
.
URL: /members/ens.eth?offchain_cursor=12345
Description: Fetches unique off-chain voters with pagination, starting after cursor 12345
.
URL: /members/ens.eth?onchain=example-slug
Description: Fetches unique off-chain voters and on-chain members/delegates for the specified space and on-chain organization.
URL: /members/ens.eth?offchain_cursor=12345&onchain_cursor=67890&onchain=example-slug
Description: Fetches unique off-chain voters with pagination and on-chain members/delegates with pagination.
URL: /members/ens.eth?refresh=true
Description: Forces a refresh of cached data for the specified space.