Get Public Quadratic Credits
Reads the visitor's credit balance for one quadratic position, creating it with the base budget on first read.
Authorization
bearerAuth AuthorizationBearer <token>
A key in the form pepvote_api_ followed by 32 hexadecimal characters.
In: header
Header Parameters
User-Agentstringrequired
Name and version of the calling integration. Required on every request.
Path Parameters
idOrCodestringrequired
Voting event ID or code.
Query Parameters
positionIdstringrequired
A quadratic position.
visitorIdstringrequired
The same visitorId used to cast.
- Pattern:
^vi_[0-9a-fA-F]{16,128}$
Response Body
application/json
application/json
curl -X GET "https://example.com/public/voting-events/string/quadratic-credits?positionId=string&visitorId=string" \ -H "User-Agent: my-app/1.0"{
"data": {
"positionId": "string",
"balance": 0,
"baseCredits": 0,
"purchased": 0,
"spent": 0,
"expired": 0,
"topUps": 0
}
}{
"error": {
"code": "bad_request",
"message": "string",
"details": {
"field": "string",
"parameter": "string",
"limit": 0,
"retryAfterSeconds": 0,
"feature": "string",
"plan": "string"
}
}
}Was this helpful?
Last updated September 6, 2026