API reference
Published article detail
Returns a published article and up to four related published posts, and increments the article view counter.
https://api.sparkglim.net/api/public/blog/:slugAccess model
- Access model
- Public access with validation
- Documented availability
- Implemented in source
Availability is verified from source, not a live production guarantee.
Open the returned checkout URL. SparkGlim Server owns prices, methods, payment verification and fulfillment; browser returns are navigation only.
Reading an article increments its view counter. This GET is not a mutation-free inspection probe.
Parameters
| Name | Type | Validation |
|---|---|---|
slugRequiredURL-friendly identifier for the existing campaign or published article. | string | Validation: public slug. |
Request
Examples describe the contract and are not executed. Use authorized test records; never paste a real secret into these pages.
GET /api/public/blog/example-campaign HTTP/1.1
Host: api.sparkglim.net
Response
{
"success": true,
"data": {
"post": {
"id": "11111111-1111-4111-8111-111111111111",
"slug": "example-article",
"title": "Example article",
"status": "published"
},
"relatedPosts": []
}
}{
"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/router.tsserver/src/api/routes/public.ts