burgercat API documentation

for API endpoints that require authentication, you'll need to set the session_DO_NOT_SHARE cookie. key might expire after 180 days.

GET /api/frontpage - returns frontpage

POST /post - post ctas - authentication required
title, being the title of the post and file, being an image file.
Supported file extensions: "png", "apng", "jpg", "jpeg", "gif", "svg", "webp"

POST /api/comment - comment on posts - authentication required
title, being the title of the comment and id, being the ID of the post you want to comment on.

POST /api/delete - remove posts - authentication required
id, being the id of the post. you must be the owner of the post to delete.

POST /api/login - get authentication key
username, being the username and password, being the password.

GET /api/userinfo - authentication required - Returns user info, username, ID, and account creation date.

GET /api/post/1/comments - Returns comments of post. Replace 1 with the post ID.