Skip to documentation
SparkGlimSparkGlim Developer
Search all documentation

Try a topic in your language or an exact API path.

    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.

    GEThttps://sparkglim.net/api/public/voting-counts/:campaignId

    Access 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

    NameTypeValidation
    campaignIdRequired

    Existing campaign record within the caller’s account and any narrower campaign credential.

    stringValidation: 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/:campaignId
    http
    GET /api/public/voting-counts/11111111-1111-4111-8111-111111111111 HTTP/1.1
    Host: sparkglim.net

    Response

    Success response · HTTP 200
    json
    {
      "success": true,
      "data": {
        "visible": false,
        "voteCounts": {}
      }
    }
    Error response · HTTP 400
    json
    {
      "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