`GET /api/proposals/count` -- number of pending proposals (topbar badge).
GET
/api/proposals/count
const url = 'https://example.com/api/proposals/count';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/proposals/countResponses
Section titled “Responses”Media typeapplication/json
Pending-count envelope for the topbar badge.
object
pending
required
integer
Examplegenerated
{ "pending": 1}