Request Public Voter Key
Pepvote emails the voter their key. The key is never returned to the integrator.
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.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Send voterId or email. At least one is required.
voterIdstring
External voter ID.
- Length:
up to 200 characters
emailstring
Voter email.
- Length:
up to 320 characters
Response Body
application/json
application/json
curl -X POST "https://example.com/public/voting-events/string/voter-key/request" \ -H "User-Agent: my-app/1.0" \ -H "Content-Type: application/json" \ -d '{}'{
"data": {
"sent": true,
"maskedEmail": "string"
}
}{
"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