Skip to documentation
SparkGlimSparkGlim Developer
Search all documentation

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

    API reference

    Ticket QR image

    Returns a branded binary PNG for the supplied ticket credential at a bounded image size; rendering does not grant ticket ownership.

    GEThttps://api.sparkglim.net/api/public/qr/ticket/:code

    Access model

    Access model
    Public access with validation
    Documented availability
    Implemented in source

    Availability is verified from source, not a live production guarantee.

    Binary PNG response, not JSON. Possessing or rendering a code does not authorize check-in.

    Parameters

    NameTypeValidation
    codeRequired

    The existing resource credential or verification code required by this endpoint; never publish a real OTP or ticket secret.

    stringValidation: UUID or documented resource identifier.
    sizeOptional

    Requested output QR image width bounded by the existing renderer.

    integerValidation: 128–1024 default512.

    Request

    Examples describe the contract and are not executed. Use authorized test records; never paste a real secret into these pages.

    GET /api/public/qr/ticket/:code
    http
    GET /api/public/qr/ticket/EXAMPLE_TICKET_CREDENTIAL?size=512 HTTP/1.1
    Host: api.sparkglim.net

    Response

    Success response · HTTP 200
    text
    <binary PNG bytes>
    Error response · HTTP 400
    json
    {
      "success": false,
      "error": "<ERROR_MESSAGE>"
    }

    Validation, permissions, unavailable records and temporary service failures use the handler’s HTTP status and error payload.

    Limits & retries

    Default Server limit: 100 requests per IP per 60 seconds. Resource-specific controls also apply.

    Source compatibility

    Authorized operations require account-specific testing.

    • server/src/api/routes/public.ts
    • app/api/qr/ticket/[code]/route.ts