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.
https://api.sparkglim.net/api/public/qr/ticket/:codeAccess 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
| Name | Type | Validation |
|---|---|---|
codeRequiredThe existing resource credential or verification code required by this endpoint; never publish a real OTP or ticket secret. | string | Validation: UUID or documented resource identifier. |
sizeOptionalRequested output QR image width bounded by the existing renderer. | integer | Validation: 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/EXAMPLE_TICKET_CREDENTIAL?size=512 HTTP/1.1
Host: api.sparkglim.netResponse
<binary PNG bytes>{
"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.tsapp/api/qr/ticket/[code]/route.ts