burgercat API documentation
for API endpoints that require authentication, you'll need to set thesession_DO_NOT_SHARE
cookie. key might expire after 180 days.GET
/api/frontpage
- returns frontpagePOST
/post
- post ctas - authentication requiredtitle
, 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 requiredtitle
, 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 requiredid
, being the id of the post. you must be the owner of the post to delete.POST
/api/login
- get authentication keyusername
, 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.