This documentation provides information about all API endpoints found in Darflen's source code. If there are any missing endpoints or incorrect information, please let me know.
The base URL for all endpoints on this page is https://api.darflen.com. All paths on this page are for this URL.
multipart/form-data).
Also note that if there are any fields in a request that end in [], you can provide multiple of that field.
Authorization header, e.g., Authorization: Bearer YOUR_AUTH_TOKEN.
Additionally, for POST requests, a CSRF token (retrieved from the /data endpoint or implicitly handled by session cookies) is expected to be sent as a form field named csrf_token.
/activity
Sends a ping to the server to indicate active user presence, used for tracking online users.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/search/autocomplete?q=query
Provides autocomplete suggestions based on the search query.
None.
None.
/search?q=query&p=x
Executes a search for posts based on the query.
None.
None.
/search/render?q=query&p=x
Retrieves rendered HTML for search results, suitable for direct insertion into the DOM.
None.
None.
/auth/login
Authenticates a user and provides an authentication token for subsequent requests.
Content-Type: multipart/form-data
/auth/register
Registers a new user account.
Content-Type: multipart/form-data
/auth/logout
Logs out the current authenticated session.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/auth/logout/device
Logs out a specific device session associated with the user's account.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/auth/logout/devices
Logs out the user from all active device sessions.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/auth/username/change
Allows a logged-in user to change their username.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/auth/password/change
Allows a logged-in user to change their password.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/auth/email/change
Allows a logged-in user to change their email address.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/auth/email/verify
Sends a verification email to the user's email address.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/auth/password/forgot/start
Sends a password reset link or code to the user's email.
Content-Type: multipart/form-data
/auth/tokens/TOKEN_ID/discard
Invalidates a specific authentication token, effectively logging out that session. Can only be used by admins.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/users/USERNAME
Retrieves detailed profile information for a specific user.
None.
None.
/users/USERNAME/followers
Retrieves a list of users who are following the specified user.
None.
None.
/users/USERNAME/following
Retrieves a list of users that the specified user is following.
None.
None.
/users/USERNAME/posts
Retrieves a list of posts created by the specified user.
None.
None.
/users/USERNAME/communities
Retrieves a list of communities the specified user is a member of.
None.
None.
/users/USERNAME/loves
Retrieves a list of users that have loved the specified user's content.
None.
None.
/users/USERNAME/follow
Toggles the follow status for a specified user.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/users/USERNAME/block
Toggles the block status for a specified user.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/users/USER_ID/report
Submits a report against a specified user.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/posts/create
Creates a new post. Can include text, files, and poll options.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/posts/POST_ID/render
Retrieves the rendered HTML content of a specific post.
None.
None.
/posts/POST_ID
Retrieves detailed information about a specific post.
None.
None.
/posts/POST_ID/edit
Modifies the content and/or media of an existing post.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/posts/POST_ID/repost
Reposts a specific post, optionally adding text, files, or associating with a community.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/posts/POST_ID/report
Submits a report against a specified post.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/posts/POST_ID/love
Toggles the love status for a specified post.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/posts/POST_ID/pin
Toggles the pinned status of a post on the logged in user's profile.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/posts/POST_ID/delete
Deletes a specified post.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/posts/POST_ID/reposts
Retrieves a list of reposts associated with a specific post.
None.
None.
/posts/POST_ID/comments
Retrieves a list of comments for a specific post.
None.
None.
/posts/POST_ID/comment
Adds a new comment to a specified post.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/comments/COMMENT_ID/render
Retrieves the rendered HTML content of a specific comment.
None.
None.
/comments/COMMENT_ID
Retrieves detailed information about a specific comment.
None.
None.
/comments/COMMENT_ID/edit
Modifies the content and/or media of an existing comment.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/comments/COMMENT_ID/report
Submits a report against a specified comment.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/comments/COMMENT_ID/love
Toggles the love status for a specified comment.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/comments/COMMENT_ID/delete
Deletes a specified comment.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/comments/COMMENT_ID/replies
Retrieves a list of replies for a specific comment.
None.
None.
/comments/COMMENT_ID/reply
Adds a new reply to a specified comment.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/replies/REPLY_ID/render
Retrieves the rendered HTML content of a specific reply.
None.
None.
/replies/REPLY_ID
Retrieves detailed information about a specific reply.
None.
None.
/replies/REPLY_ID/edit
Modifies the content and/or media of an existing reply.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/replies/REPLY_ID/report
Submits a report against a specified reply.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/replies/REPLY_ID/love
Toggles the love status for a specified reply.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/replies/REPLY_ID/delete
Deletes a specified reply.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/communities/create
Creates a new community.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/communities/COMMUNITY
Retrieves detailed profile information for a specific community.
None.
None.
/communities/COMMUNITY/posts
Retrieves a list of posts published within a specific community.
None.
None.
/communities/COMMUNITY/loves
Retrieves a list of users that have loved posts within a community.
None.
None.
/communities/COMMUNITY/members
Retrieves a list of members of a specific community.
None.
None.
/communities/COMMUNITY/join
Toggles the membership status for the specified community.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/communities/COMMUNITY/report
Submits a report against a specified community.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/communities/COMMUNITY/settings/customization
Updates the icon, banner, description, and display name of a community.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/communities/COMMUNITY/settings/members/USER/role
Changes the role of a specific member within a community (e.g., from member to moderator).
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/communities/COMMUNITY/settings/visiblility
Changes the visibility setting of a community (e.g., public or private).
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/communities/COMMUNITY/settings/members/USER/kick
Removes a user from the community.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/communities/COMMUNITY/settings/members/USER/ban
Bans a user from the community, preventing them from rejoining.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/communities/COMMUNITY/settings/members/USER/unban
Unbans a user from the community, allowing them to rejoin.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/communities/COMMUNITY/settings/pinned
Sets a specific post as the pinned post for the community.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/communities/COMMUNITY/settings/invite
Sends an invitation to a user to join the community.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/communities/COMMUNITY/settings/transfer
Transfers the ownership of the community to another user.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/communities/COMMUNITY/settings/links
Updates the links associated with a specific community.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/explore/recent/render/PAGE
Retrieves rendered HTML for recent content in the explore section, paginated.
None.
None.
/explore/recent/get/PAGE
Retrieves structured JSON data for recent content in the explore section, paginated.
None.
None.
/explore/trending/render/PAGE
Retrieves rendered HTML for trending content in the explore section, paginated.
None.
None.
/explore/trending/get/PAGE
Retrieves structured JSON data for trending content in the explore section, paginated.
None.
None.
/explore/loved/render/PAGE
Retrieves rendered HTML for most loved content in the explore section, paginated.
None.
None.
/explore/loved/get/PAGE
Retrieves structured JSON data for most loved content in the explore section, paginated.
None.
None.
/explore/popular/render/PAGE
Retrieves rendered HTML for popular content in the explore section, paginated.
None.
None.
/explore/popular/get/PAGE
Retrieves structured JSON data for popular content in the explore section, paginated.
None.
None.
/feed/render?page=x
Retrieves rendered HTML for the authenticated user's feed, paginated.
Authorization: Bearer YOUR_AUTH_TOKEN
None.
/explore/communities/recent/render/PAGE
Retrieves rendered HTML for recently created communities in the explore section, paginated.
None.
None.
/explore/communities/activity/render/PAGE
Retrieves rendered HTML for communities with recent activity in the explore section, paginated.
None.
None.
/notification
Retrieves the number of unread notifications for the current user.
Authorization: Bearer YOUR_AUTH_TOKEN
None.
/notifications/render/PAGE
Retrieves a paginated list of rendered notifications for the current user.
Authorization: Bearer YOUR_AUTH_TOKEN
None.
/notifications/get/PAGE
Retrieves structured JSON data for a paginated list of notifications for the current user.
Authorization: Bearer YOUR_AUTH_TOKEN
None.
/settings/customization
Updates the display name, description, profile icon, and banner for the authenticated user.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/settings/theme
Changes the user's preferred theme.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/settings/language
Changes the user's preferred language.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/settings/notifications/loves
Enables or disables notifications for when content is loved.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
true to enable, false to disable./settings/notifications/posts
Enables or disables notifications when users you follow make posts.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
true to enable, false to disable./settings/notifications/pings
Enables or disables notifications when the user is pinged.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
true to enable, false to disable./settings/notifications/followers
Enables or disables notifications for new followers.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
true to enable, false to disable./settings/preferences/horizontal_content_scrolling
Sets the user's preference for horizontal content scrolling in the UI.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
true to enable, false to disable./settings/preferences/events_ui
Sets the user's preference for displaying special events in the UI.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
true to enable, false to disable./settings/referrals/generate
Generates a new referral link for the authenticated user.
Authorization: Bearer YOUR_AUTH_TOKEN
None.
/settings/links
Updates external links associated with the user's profile.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN
/bans/USER_ID/ban
Bans a usee. Requires admin authentication.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_MODERATOR_AUTH_TOKEN
/bans/USER_ID/unban
Unbans a user. Requires admin authentication.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_MODERATOR_AUTH_TOKEN
/bans/USER_ID/edit
Modifies the reason for an existing user ban. Requires admin authentication.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_MODERATOR_AUTH_TOKEN
/reports/REPORT_ID/discard
Discards a specific report, marking it as resolved or irrelevant. Requires moderator authentication.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_MODERATOR_AUTH_TOKEN
/settings/internal/USER_ID/customization
Allows internal administrators to modify user flags (e.g., administrator status, verified status, bug hunter status).
Content-Type: multipart/form-data
Authorization: Bearer YOUR_ADMIN_AUTH_TOKEN
true or false to set/unset administrator status.true or false to set/unset user verified status.true or false to set/unset bug hunter status./communities/COMMUNITY/settings/internal/customization
Allows internal administrators to modify community flags (e.g., verified status, disabled status).
Content-Type: multipart/form-data
Authorization: Bearer YOUR_ADMIN_AUTH_TOKEN
true or false to set/unset community verified status.true or false to enable/disable the community./interactions/internal/INTERACTION_ID/edit
Allows internal administrators to edit the content of any post, comment, or reply.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_ADMIN_AUTH_TOKEN
/statistics/interactions
Retrieves global data for interaction statistics (posts, comments, replies) over time.
None.
None.
/statistics/engagements
Retrieves global data for user engagement (e.g., loves, votes etc) over time.
None.
None.
/statistics/interactions?user=USERNAME
Retrieves interaction statistics (posts, comments, replies) for a specific user over time.
None.
None.
/statistics/engagements?user=USERNAME
Retrieves engagement statistics (e.g., content loved, votes cast etc) for a specific user over time.
None.
None.
/statistics/biggest_lovers
Retrieves a list of users who have loved the most content.
None.
None.
/statistics/biggest_posters
Retrieves a list of users who have created the most posts.
None.
None.
/polls/POST_ID/vote
Casts a vote on a specific poll.
Content-Type: multipart/form-data
Authorization: Bearer YOUR_AUTH_TOKEN