Authentication
All requests require your site's public site 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
Site
/siteSite name, slug, and showPoweredBy, which is true when the plan requires the footer
Comments
/comments/{pageId}List comments for a page
/comments/{pageId}Create a new comment
Reactions
/reactions/{pageId}Get reaction counts for a page
/reactions/{pageId}Add a reaction
/reactions/{pageId}Remove a reaction
Forms
/forms/{slug}/submitSubmit form data
Subscriptions
/subscribeSubscribe an email address
/subscribe/confirm/{token}Confirm subscription
/unsubscribe/{token}Unsubscribe
Waitlist
/waitlistJoin the waitlist
Feedback
/feedbackSubmit feedback
Polls
/polls/{slug}Get poll data
/polls/{slug}/voteVote on a poll
Views
/views/{pageId}Get view counts
/views/{pageId}Record a view
/eRecord a pageview for analytics (no cookies). Body: { "path": "/post", "sessionId": "optional" }; returns 204
Announcements
/announcementsList active announcements
/announcements/{id}/dismissDismiss an announcement
Posts
/postsList published posts
/posts/{slug}Get a single post
Galleries
/galleriesList published galleries
/galleries/{slug}Get a gallery; add ?tag=portraits to filter photos
/galleries/{slug}/randomGet a random or seeded photo
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.