Stories, WIP
NOTE
This page is a work in progress. Endpoints below haven't been fully researched.
Create story
Requires Authorization.
POST /v1/storiesBody:
text— string, caption, optionalaudience— array of strings,["EVERYONE"]or any of"NEARBY","FAVORITES","MESSAGED","ALBUM_SHARED"media— array with one imagetype— string,"image_v1"data— objectid— long integer,mediaIdfrom POST /v2/media/upload
Response:
story— MyStory ornull
Get stories inbox, WIP
Requires Authorization.
Profiles with active stories.
GET /v1/stories/inboxQuery (optional):
pageNumber— integer, starts at1, optionalpageSize— integer, number of posters per page, optional
Response:
posters— array of objects ornullprofileId— long integerdisplayName— string ornullmediaHash— string, See Media -> Public CDN files -> Profile Images ornullonlineUntil— unix timestamp in milliseconds ornullunseenStories— booleanisFavorite— booleanrightNowStatus— string,"NOT_ACTIVE","HOSTING"or"NOT_HOSTING", ornull
Errors:
404— Returned with an empty body; appears to mean Stories are not enabled for the account (nostories-v1assignment).
Get my stories, WIP
Requires Authorization.
GET /v1/stories/mineResponse:
stories— array of MyStory ornullremaining— integer, stories we can still post, ornull
Errors:
404— Returned with an empty body; appears to mean Stories are not enabled for the account (nostories-v1assignment).
Get story
Requires Authorization.
GET /v1/stories/{storyId}Response:
story— Story ornull
Errors:
404— Story not found or no longer available.
Delete story
Requires Authorization.
DELETE /v1/stories/{storyId}Record story view
Requires Authorization.
POST /v1/stories/{storyId}/viewsGet story reactions
Requires Authorization.
Lists the reactions that can be sent to a story.
GET /v1/stories/reactionsResponse:
reactions— array of objectsid— long integertype— string,"UNICODE"value— string, space-separated code points such asU+1F525
Get profile stories
Requires Authorization.
GET /v1/stories/profiles/{profileId}Response:
stories— array of Story ornull
StoryMedia
mediaId— long integer, optionalthumbnailUrl— string, optionalfullImageUrl— string, optionalstate— string,"PENDING","APPROVED","REJECTED","DELETED"ornull, optionalreason— string ornull, optionalisRejectAutomated— boolean ornull, optionalshouldBlur— boolean, optionalisNsfw— boolean, optional
Story
id— long integer, optionalprofileId— long integer, optionaldisplayName— string ornull, optionalmediaHash— string, See Media -> Public CDN files -> Profile Images ornull, optionalonlineUntil— unix timestamp in milliseconds ornull, optionaldistanceMeters— integer, meters, ornull, optionalmedia— StoryMedia ornull, optionalcaption— object ornull, optionaltext— string ornull
posted— unix timestamp in milliseconds ornull, optionalexpiration— unix timestamp in milliseconds ornull, optionalviewed— boolean, optional
MyStory
id— long integer, optionalstatus— string,"PENDING","ACTIVE","REJECTED","EXPIRED"ornull, optionalmedia— array of StoryMedia ornull, optionalcaption— object ornull, optionaltext— string ornulltextStatus— string,"AWAITING_MODERATION","MODERATION_APPROVED","MODERATION_FAILED"ornullrejectReasons— array of strings:"BULLYING","SELF_HARM","DRUG_PATTERNS","HATE_SPEECH","SOL_SEX","SPAM_DISRUPT","UNDERAGE"ornull
audience— array of strings, seeaudienceof Create story, ornull, optionalcreatedAt— unix timestamp in milliseconds ornull, optionalposted— unix timestamp in milliseconds ornull, optionalexpiration— unix timestamp in milliseconds ornull, optionalviews— array of objects ornull, optionalprofileId— long integertimestamp— unix timestamp in milliseconds