GET
/api/v1/server/session-polls
Request
Response
200
Success
You can order by createdAt (default) or id.
Authorization
AuthorizationstringrequiredYour API token as
Bearer YOUR_TOKEN. Create one in your server's dashboard settings.Query parameters
pageintegerdefault: 11-based page number. Defaults to 1.
pageSizeintegerdefault: 10Items per page, clamped to 1-100. Defaults to 10.
orderBystringField to sort by. See the endpoint description for the accepted values.
sortstringSort direction. Defaults to
desc.Allowed values:
ascdescstatusstringOnly polls with this status.
active covers polls still voting and polls with enough votes that are waiting for the session to start.Allowed values:
activecancelledexpiredsessionStartedResponse
200 Success. Results are paged and also include page, pageSize, total and totalPages.
createdAtintegerrequiredWhen it was created.
createdBystringrequiredMember ID of who started it, or
SYSTEM.idstringrequiredUnique ID.
serverIdstringrequiredServer ID.
statusintegerrequired0 Voting, 1 Enough votes, 2 Cancelled, 3 Expired, 4 Session started.statusUpdatedAtintegerrequiredWhen
status last changed.voterDiscordIdsstring[]requiredDiscord IDs of everyone who voted.
votesintegerrequiredVotes so far.
votesRequiredintegerrequiredVotes needed before the session can start.
aopinteger | nullArea of play the session will use:
1 City, 2 County, 3 Highrock, 4 Custom (see aopCustomId).aopCustomIdstring | nullThe custom AOP, when
aop is 4.cancelledBystring | nullMember ID of who cancelled it.
channelIdstring | nullDiscord channel of the poll message.
messageIdstring | nullDiscord ID of the poll message.
Errors
| Status | Meaning |
|---|---|
400 | Invalid request. validation_failed lists each invalid field in details.fields. |
401 | Missing, invalid or expired token |
429 | Rate limited. See Retry-After and details. |
500 | Internal server error |