SDK reference
Mirage social
GET/
Your Feed: the age gate (gate: open, or why not: unchecked or under_16, with recheckAfter and what would open it, check: date_of_birth or estimation) and, once it's open, your social profile (visibility, public likes, muted words, pinned post, counts, unread activity and waiting follow requests). Always answers, so apps can show the gate. How strict the gate is is the platform's setting: off (everyone signed in, except someone known to be under 16), your date of birth, or a face check in ID (Australia's Social Media Minimum Age); while it's closed, every other social route answers 403 with code: "age_assurance", reason and check.
curl 'https://api.cactive.com.au/v1/messaging/social/me' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Declares your date of birth for the age gate: dateOfBirth (YYYY-MM-DD, from 1900, not in the future). Kept on your Cactive ID account, once: 409 once it's set (support corrects it). Under 16 keeps Feed closed until your 16th birthday, worked out when read. Answers as GET /me: the gate, and your social profile once it's open.
curl -X PUT 'https://api.cactive.com.au/v1/messaging/social/me/date-of-birth' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Changes your social settings: visibility (public; followers: people ask to follow; private: as followers, and hidden from search and suggestions, with requests only from people you share a server with or chat friends; going public approves waiting requests), likesPublic (others see your Likes tab) and mutedWords (up to 200; posts with them stay out of your feeds and activity).
curl -X PATCH 'https://api.cactive.com.au/v1/messaging/social/me' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Pins one of your posts to the top of your profile (postId; empty unpins).
curl -X PUT 'https://api.cactive.com.au/v1/messaging/social/me/pinned' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Someone's profile on Feed (a person's Cactive ID profile, or a page's): counts, when they joined, your follow (active, requested or null) and bell, whether they follow you, whether they're on your close friends or muted, and whether you can see their posts. 404 for people who aren't on Feed, were deactivated, or blocked you (or you them).
curl 'https://api.cactive.com.au/v1/messaging/social/people/{userId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
The posts your grid features at its top, in order (postIds, nine at most, your own photo and video posts; empty clears them).
curl -X PUT 'https://api.cactive.com.au/v1/messaging/social/me/featured' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A profile's posts, newest first: tab grid (their own photo and video posts; the first page also has the ones they feature, in their order, as featured), posts (posts, quotes and reposts), replies (everything), media (posts with photos or videos) or likes (theirs when they made likes public, or yours). 403 when only their followers see their posts. cursor for the next page.
curl 'https://api.cactive.com.au/v1/messaging/social/people/{userId}/posts' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Someone's followers, newest first, with your follow state toward each; hidden (403) when their posts are.
Parameters and answerscurl 'https://api.cactive.com.au/v1/messaging/social/people/{userId}/followers' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Who someone follows, with your follow state toward each; hidden (403) when their posts are.
Parameters and answerscurl 'https://api.cactive.com.au/v1/messaging/social/people/{userId}/following' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Follows someone (state: "active"), or asks to when their account is followers-only or private (requested; private accounts take requests only from people they share a server with or are chat friends with). notify: true turns on post notifications. Up to 5,000 accounts and 400 new follows a day (platform settings).
curl -X PUT 'https://api.cactive.com.au/v1/messaging/social/people/{userId}/follow' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Turns post notifications for someone you follow on or off (notify).
curl -X PATCH 'https://api.cactive.com.au/v1/messaging/social/people/{userId}/follow' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Unfollows someone, or withdraws a request. Their posts leave your Following timeline at once.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/messaging/social/people/{userId}/follow' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
People asking to follow you, newest first.
Parameters and answerscurl 'https://api.cactive.com.au/v1/messaging/social/requests' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Approves a follow request; they're told.
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/messaging/social/requests/{userId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Declines a follow request; they aren't told.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/messaging/social/requests/{userId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Removes one of your followers; they aren't told.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/messaging/social/followers/{userId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Your close friends: the people who see your close-friends posts and stories (when they follow you).
Parameters and answerscurl 'https://api.cactive.com.au/v1/messaging/social/close-friends' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Adds someone to your close friends.
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/messaging/social/close-friends/{userId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Takes someone off your close friends.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/messaging/social/close-friends/{userId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"curl 'https://api.cactive.com.au/v1/messaging/social/mutes' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Mutes someone: their posts and activity stay out of your feeds and notifications; they aren't told and their profile still shows them.
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/messaging/social/mutes/{userId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Unmutes someone.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/messaging/social/mutes/{userId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Where to PUT a photo (JPEG, PNG, WebP or GIF) or video (MP4, WebM or MOV) before posting it (name, mime, size; limits in the platform settings): answers mediaId, url and the headers to send. Then post with the media's mediaId, name, mime, size in pixels and alt text.
curl -X POST 'https://api.cactive.com.au/v1/messaging/social/uploads' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Posts: content (up to 4,000 characters; Markdown's chat profile, mentions as <@usr_…>, #hashtags), up to 10 media (each mediaId, name, mime, width, height, alt, a video's durationSecs and poster) or a poll (as in chat), audience (everyone, followers or close_friends) and replyPolicy (everyone, following or mentioned). replyTo makes a reply (within the post's reply controls), quoteOf a quote (of posts everyone can see), serverId a post in that server's feed, asPage posts as a page you run, event shares a server's scheduled event. Mentioned people who can see it are told; followers get it in their Following timeline. Up to 60 posts an hour (platform settings).
curl -X POST 'https://api.cactive.com.au/v1/messaging/social/posts' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A post as you see it: its author, media (presigned for an hour), poll, what it quotes or reposts, counts, and what you've done and may do. 404 when you can't see it.
Parameters and answerscurl 'https://api.cactive.com.au/v1/messaging/social/posts/{postId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Edits your post's content (and its media's alt text, alts by media id) within an hour of posting, up to 5 times (platform settings); the earlier version is kept.
curl -X PATCH 'https://api.cactive.com.au/v1/messaging/social/posts/{postId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Deletes your post (or a page's you run, or a group post as one of the server's moderators) with its likes, reposts, bookmarks and poll votes; replies stay.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/messaging/social/posts/{postId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A post with its conversation: the posts it replies to (oldest first; gap when one is gone or hidden from you), then its replies, the author's first (cursor for more).
curl 'https://api.cactive.com.au/v1/messaging/social/posts/{postId}/thread' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A post's earlier versions, oldest first, then as it is now.
Parameters and answerscurl 'https://api.cactive.com.au/v1/messaging/social/posts/{postId}/edits' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Posts quoting a post, newest first.
Parameters and answerscurl 'https://api.cactive.com.au/v1/messaging/social/posts/{postId}/quotes' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Who liked your post (only its author sees this), newest first.
Parameters and answerscurl 'https://api.cactive.com.au/v1/messaging/social/posts/{postId}/likes' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Likes a post (a repost's post); its author is told (grouped per post for a day). Answers the post as you now see it.
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/messaging/social/posts/{postId}/likes' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Takes your like back.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/messaging/social/posts/{postId}/likes' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Who reposted a post, newest first.
Parameters and answerscurl 'https://api.cactive.com.au/v1/messaging/social/posts/{postId}/reposts' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Reposts a post everyone can see: it shows on your profile and in your followers' Following timelines. Once per post.
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/messaging/social/posts/{postId}/reposts' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Undoes your repost.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/messaging/social/posts/{postId}/reposts' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Bookmarks a post (private: only the count shows).
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/messaging/social/posts/{postId}/bookmarks' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Removes a bookmark.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/messaging/social/posts/{postId}/bookmarks' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Votes in a post's poll (one answer each replaces your vote unless it takes several).
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/messaging/social/posts/{postId}/poll/answers/{answerId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Takes your vote back.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/messaging/social/posts/{postId}/poll/answers/{answerId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
"Not interested": the post leaves your For You, and its author and hashtags weigh less there for 30 days.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/messaging/social/posts/{postId}/not-interested' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Counts views: the posts (postIds, up to 50) that were on your screen for a second; each counts once a day per person.
curl -X POST 'https://api.cactive.com.au/v1/messaging/social/views' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Your Following timeline, newest first: posts, quotes and reposts from the people and pages you follow (and your own), as you may see them now. cursor (the last post's id) for older ones.
curl 'https://api.cactive.com.au/v1/messaging/social/feed/following' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
For You: recent posts from your timeline, your servers' feeds, likes people made public and what's popular, ranked by relevance and freshness (weights in the platform settings), each with why it's there. cursor continues the same ranking.
curl 'https://api.cactive.com.au/v1/messaging/social/feed/for-you' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Your bookmarks, newest first.
Parameters and answerscurl 'https://api.cactive.com.au/v1/messaging/social/bookmarks' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Posts with a hashtag, newest first (posts everyone can see).
Parameters and answerscurl 'https://api.cactive.com.au/v1/messaging/social/tags/{tag}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Explore: trending hashtags over the last day, popular posts, and people to follow (followed by people you follow, or in your servers; never private accounts).
Parameters and answerscurl 'https://api.cactive.com.au/v1/messaging/social/explore' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Searches posts (q: every word must match; #tags, from:usr_…, has:media, has:poll), newest first, or people by name (type=people). Only posts everyone can see are searchable.
curl 'https://api.cactive.com.au/v1/messaging/social/search' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
People to complete an @mention with (q): who you follow, who follows you, and people found by name.
curl 'https://api.cactive.com.au/v1/messaging/social/mention-candidates' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Shares a story: one photo or video (media, uploaded as for posts, with alt), an optional caption (up to 500) and closeFriends. It shows for 24 hours (platform settings) to your followers (close friends who follow you for close-friends stories; anyone on your profile when your account is public), then stays in your archive.
curl -X POST 'https://api.cactive.com.au/v1/messaging/social/stories' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Who has stories up for you: yourself first, then people whose stories you haven't seen, newest first, with how many and whether you've seen them all.
Parameters and answerscurl 'https://api.cactive.com.au/v1/messaging/social/stories/tray' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Every story you've shared, newest first (only you see this); cursor for more.
curl 'https://api.cactive.com.au/v1/messaging/social/stories/archive' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Whether a story is still up for you (active), whose it is and a still while it is: what a DM answering it shows. Others get 404 once it ends; its author always.
curl 'https://api.cactive.com.au/v1/messaging/social/stories/{storyId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Answers one of a story's interactive stickers (layerId, value): a poll's answer number, a slide from 0 to 1, words for a question, 1 for a countdown's reminder. Votes and slides are final; what the sticker shows you comes back.
curl -X POST 'https://api.cactive.com.au/v1/messaging/social/stories/{storyId}/responses' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Every answer to your story's stickers, newest first, with who answered. Only its author.
Parameters and answerscurl 'https://api.cactive.com.au/v1/messaging/social/stories/{storyId}/responses' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Marks a story seen; its author's view count goes up once per person.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/messaging/social/stories/{storyId}/views' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Likes a story; its author is told.
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/messaging/social/stories/{storyId}/likes' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Takes your like back.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/messaging/social/stories/{storyId}/likes' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Who saw your story and who liked it, newest first. Only its author.
Parameters and answerscurl 'https://api.cactive.com.au/v1/messaging/social/stories/{storyId}/viewers' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Deletes your story; it also leaves your highlights.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/messaging/social/stories/{storyId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Someone's stories up now that you may see, oldest first, with whether you've seen and liked each (and the view counts of your own).
Parameters and answerscurl 'https://api.cactive.com.au/v1/messaging/social/people/{userId}/stories' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Someone's highlights (named sets of their stories), with each one's cover and count; empty when their content is for followers only.
Parameters and answerscurl 'https://api.cactive.com.au/v1/messaging/social/people/{userId}/highlights' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A highlight's stories in order (close-friends stories only for their close friends).
Parameters and answerscurl 'https://api.cactive.com.au/v1/messaging/social/people/{userId}/highlights/{highlightId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Makes a highlight from your stories (name, up to 40 characters; storyIds, up to 100; optional coverStoryId). Up to 50 a profile.
curl -X POST 'https://api.cactive.com.au/v1/messaging/social/highlights' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Renames a highlight or changes its stories or cover.
Parameters and answerscurl -X PATCH 'https://api.cactive.com.au/v1/messaging/social/highlights/{highlightId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Deletes a highlight (its stories stay in your archive).
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/messaging/social/highlights/{highlightId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A server's posts feed (Facebook's groups): feed (off, members or public), posting (everyone who can send messages, or moderators with Manage Messages), and whether you're a member, can post and can change it. Members, or anyone on Feed when the feed is public.
curl 'https://api.cactive.com.au/v1/messaging/social/groups/{serverId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Turns a server's feed on (feed: members or public) or off, and chooses who posts (posting). Manage Server; in the server's audit log.
curl -X PATCH 'https://api.cactive.com.au/v1/messaging/social/groups/{serverId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A server's posts, newest first. Post to it with serverId on POST /social/posts; the server's AutoMod applies and its moderators (Manage Messages) can delete them. Public feeds' posts also reach their authors' followers.
curl 'https://api.cactive.com.au/v1/messaging/social/groups/{serverId}/posts' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A server's upcoming and live events you can see, as cards to share in a post (event on POST /social/posts).
curl 'https://api.cactive.com.au/v1/messaging/social/groups/{serverId}/events' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Says you're going to a server's event, interested in it, or neither (status: going, interested or null); its counts follow and people in the server see them change.
curl -X PUT 'https://api.cactive.com.au/v1/messaging/social/events/{serverId}/{eventId}/rsvp' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Sets an event's cover photo (media, uploaded as for posts), or removes it (null). Manage Events.
curl -X PUT 'https://api.cactive.com.au/v1/messaging/social/events/{serverId}/{eventId}/cover' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The pages you run (as their owner or an admin), with their follower counts.
Parameters and answerscurl 'https://api.cactive.com.au/v1/messaging/social/pages/mine' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Makes a page for a business, place or creator (name, category, about, website, accent, a picture as avatar); you're its owner. People follow it like a person; post as it with asPage. Up to 10 a person.
curl -X POST 'https://api.cactive.com.au/v1/messaging/social/pages' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Changes a page's details (null clears one). Its owner or admins.
curl -X PATCH 'https://api.cactive.com.au/v1/messaging/social/pages/{pageId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Deactivates a page: its profile and posts stop showing and it can't be followed. Its owner.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/messaging/social/pages/{pageId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Who runs a page: its owner and admins. For them.
Parameters and answerscurl 'https://api.cactive.com.au/v1/messaging/social/pages/{pageId}/admins' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Makes someone on Feed an admin of your page (up to 20). Its owner.
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/messaging/social/pages/{pageId}/admins/{userId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Removes an admin. Its owner.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/messaging/social/pages/{pageId}/admins/{userId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Your activity, newest first: follows, requests and approvals, likes and reposts (grouped per post), replies, quotes, mentions, new posts from people whose bell you turned on, and moderation notices; with unread and waiting requests. Open apps also hear social_activity over the socket.
curl 'https://api.cactive.com.au/v1/messaging/social/notifications' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Marks your activity seen.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/messaging/social/notifications/read' \
-H "Authorization: Bearer $CACTIVE_TOKEN"