Authentication
All requests require your site's API key in the X-JamWidgets-Key header.
curl https://jamwidgets.com/api/v1/comments/my-page \
-H "X-JamWidgets-Key: your-site-key"Base URL
https://jamwidgets.com/api/v1Endpoints
Comments
GET
/comments/{pageId}List comments for a page
POST
/comments/{pageId}Create a new comment
Reactions
GET
/reactions/{pageId}Get reaction counts for a page
POST
/reactions/{pageId}Add a reaction
DELETE
/reactions/{pageId}Remove a reaction
Forms
POST
/forms/{slug}/submitSubmit form data
Subscriptions
POST
/subscribeSubscribe an email address
GET
/subscribe/confirm/{token}Confirm subscription
GET
/unsubscribe/{token}Unsubscribe
Waitlist
POST
/waitlistJoin the waitlist
Feedback
POST
/feedbackSubmit feedback
Polls
GET
/polls/{pollId}Get poll data
POST
/polls/{pollId}/voteVote on a poll
Views
GET
/views/{pageId}Get view counts
POST
/views/{pageId}Record a view
Announcements
GET
/announcementsList active announcements
POST
/announcements/{id}/dismissDismiss an announcement
Posts
GET
/postsList published posts
GET
/posts/{slug}Get a single post
POST
/postsCreate a new post from markdown
Request body
{
"title": "My Post",
"slug": "my-post", // optional, auto-generated from title
"content": "# Hello\n...", // markdown
"excerpt": "...", // optional
"tags": ["news"], // optional
"status": "published", // optional, default "draft"
"metaTitle": "...", // optional
"metaDescription": "...", // optional
"coverImage": "..." // optional
}CORS & Origin Validation
You can configure allowed origins for your site in the dashboard. If set, requests must include a valid Origin header.
Leave allowed origins empty to accept requests from any origin.