API reference
Visibility-gated public vote counts
Returns completed vote totals only for a publicly visible voting campaign, approved nominees and active categories when counts are explicitly public.
https://sparkglim.net/api/public/voting-counts/:campaignIdAccess model
- Access model
- Public access with validation
- Documented availability
- Implemented in source
Availability is verified from source, not a live production guarantee.
Return only the records permitted by account, campaign and visibility settings.
Parameters
| Name | Type | Validation |
|---|---|---|
campaignIdRequiredExisting campaign record within the caller’s account and any narrower campaign credential. | string | Validation: UUID or documented resource identifier. |
Request
Examples describe the contract and are not executed. Use authorized test records; never paste a real secret into these pages.
GET /api/public/voting-counts/11111111-1111-4111-8111-111111111111 HTTP/1.1
Host: sparkglim.netResponse
{
"success": true,
"data": {
"visible": false,
"voteCounts": {}
}
}{
"success": false
}Validation, permissions, unavailable records and temporary service failures use the handler’s HTTP status and error payload.
Limits & retries
This Web handler has no dedicated limiter in its source; upstream controls may apply.
Source compatibility
Authorized operations require account-specific testing.
app/api/public/voting-counts/[campaignId]/route.ts