Reactions
There are nine endpoints for reaction information. Four public endpoint and five private endpoints that require a Pro account.
GET /reactions/flags/all
Public endpoint. Lists all the flags that have been created on the system. The meta information will provide pagination info.
Endpoint Example
Below is a live example that can be copy and pasted.
curl https://sandbox.sellinpublic.com/api/v0/reactions/flags/all -u "demo:sip_api_sand_01234demo56789_key"
Below is the expected result from that cURL call:
{ "status": "success", "messages": [], "meta": { "pagination": { "total_results": 1, "total_pages": 1, "page_previous": 1, "page_next": 1, "page_current": 1, "current_page": 1, "current_result": 1, "current_result_first": 1, "current_result_last": 1, "url_next": "/api/v0/reactions/flags/all?page=1", "url_previous": "/api/v0/reactions/flags/all?page=1" } }, "data": [ { "id": 1, "user_id": 1, "post_id": 6, "type": "flag", "content": null, "created_at": "2024-03-23T09:04:50+00:00", "updated_at": "2024-03-23T09:04:50+00:00", "post": { "id": 6, "user_id": 4, "conversation_id": 6, "parent_id": 0, "original_id": 0, "post": "Sometimes bad posts make it through moderation. If that happens they can be flagged. This post was flagged by the demo user.", "status": "published", "type": "post", "depth": 0, "sort_order": null, "attachment_count": 0, "replies": 1, "reposts": 0, "quotes": 0, "stars": 0, "flags": 1, "reactions": 0, "bumps": 0, "created_at": "2024-03-23T07:37:50+00:00", "updated_at": "2024-03-23T09:07:50+00:00", "published_at": "2024-03-23T07:37:50+00:00", "sorted_at": "2024-03-23T09:04:50+00:00", "username": "bad", "replied": false, "flagged": true, "starred": false, "attachments": [], "user": { "user_id": 4, "username": "bad", "display_name": "Bad", "bio": "", "profile_image_url": "https://sandbox.sellinpublic.com/media/alphabet/b.png" } }, "user": { "user_id": 1, "username": "demo", "display_name": "Demo", "bio": "", "profile_image_url": "https://sandbox.sellinpublic.com/media/alphabet/d.png" } } ] }
GET /reactions/flags/{post_id}
Public endpoint. Lists all the flags for a specific post. The meta information will provide pagination info.
URL params
post_id: integer
The id of the post.
Endpoint Example
Below is a live example that can be copy and pasted.
curl https://sandbox.sellinpublic.com/api/v0/reactions/flags/6 -u "demo:sip_api_sand_01234demo56789_key"
Below is the expected result from that cURL call:
{ "status": "success", "messages": [], "meta": { "pagination": { "total_results": 1, "total_pages": 1, "page_previous": 1, "page_next": 1, "page_current": 1, "current_page": 1, "current_result": 1, "current_result_first": 1, "current_result_last": 1, "url_next": "/api/v0/reactions/flags/6?page=1", "url_previous": "/api/v0/reactions/flags/6?page=1" } }, "data": [ { "id": 1, "user_id": 1, "post_id": 6, "type": "flag", "content": null, "created_at": "2024-03-23T09:04:50+00:00", "updated_at": "2024-03-23T09:04:50+00:00", "post": { "id": 6, "user_id": 4, "conversation_id": 6, "parent_id": 0, "original_id": 0, "post": "Sometimes bad posts make it through moderation. If that happens they can be flagged. This post was flagged by the demo user.", "status": "published", "type": "post", "depth": 0, "sort_order": null, "attachment_count": 0, "replies": 1, "reposts": 0, "quotes": 0, "stars": 0, "flags": 1, "reactions": 0, "bumps": 0, "created_at": "2024-03-23T07:37:50+00:00", "updated_at": "2024-03-23T09:07:50+00:00", "published_at": "2024-03-23T07:37:50+00:00", "sorted_at": "2024-03-23T09:04:50+00:00", "username": "bad", "replied": false, "flagged": true, "starred": false, "attachments": [], "user": { "user_id": 4, "username": "bad", "display_name": "Bad", "bio": "", "profile_image_url": "https://sandbox.sellinpublic.com/media/alphabet/b.png" } }, "user": { "user_id": 1, "username": "demo", "display_name": "Demo", "bio": "", "profile_image_url": "https://sandbox.sellinpublic.com/media/alphabet/d.png" } } ] }
GET /reactions/stars/all
Public endpoint. Lists all the stars that have been created on the system. The meta information will provide pagination info.
Endpoint Example
Below is a live example that can be copy and pasted.
curl https://sandbox.sellinpublic.com/api/v0/reactions/stars/all -u "demo:sip_api_sand_01234demo56789_key"
Below is the expected result from that cURL call:
{ "status": "success", "messages": [], "meta": { "pagination": { "total_results": 2, "total_pages": 1, "page_previous": 1, "page_next": 1, "page_current": 1, "current_page": 1, "current_result": 1, "current_result_first": 1, "current_result_last": 2, "url_next": "/api/v0/reactions/stars/all?page=1", "url_previous": "/api/v0/reactions/stars/all?page=1" } }, "data": [ { "id": 3, "user_id": 1, "post_id": 2, "type": "star", "content": null, "created_at": "2024-03-23T09:06:50+00:00", "updated_at": "2024-03-23T09:06:50+00:00", "post": { "id": 2, "user_id": 1, "conversation_id": 2, "parent_id": 0, "original_id": 0, "post": "Welcome to the Sandbox server where you can test the interface and API interactions!", "status": "published", "type": "post", "depth": 0, "sort_order": null, "attachment_count": 0, "replies": 3, "reposts": 0, "quotes": 0, "stars": 1, "flags": 0, "reactions": 0, "bumps": 0, "created_at": "2024-03-23T05:07:50+00:00", "updated_at": "2024-03-23T09:07:50+00:00", "published_at": "2024-03-23T05:07:50+00:00", "sorted_at": "2024-03-23T09:06:50+00:00", "username": "demo", "replied": false, "flagged": false, "starred": true, "attachments": [], "user": { "user_id": 1, "username": "demo", "display_name": "Demo", "bio": "", "profile_image_url": "https://sandbox.sellinpublic.com/media/alphabet/d.png" } }, "user": { "user_id": 1, "username": "demo", "display_name": "Demo", "bio": "", "profile_image_url": "https://sandbox.sellinpublic.com/media/alphabet/d.png" } }, { "id": 2, "user_id": 1, "post_id": 7, "type": "star", "content": null, "created_at": "2024-03-23T09:05:50+00:00", "updated_at": "2024-03-23T09:05:50+00:00", "post": { "id": 7, "user_id": 2, "conversation_id": 7, "parent_id": 0, "original_id": 0, "post": "The Sandbox server is regenerated every 24 hours.", "status": "published", "type": "post", "depth": 0, "sort_order": null, "attachment_count": 0, "replies": 0, "reposts": 0, "quotes": 0, "stars": 1, "flags": 0, "reactions": 0, "bumps": 0, "created_at": "2024-03-23T08:37:50+00:00", "updated_at": "2024-03-23T09:07:50+00:00", "published_at": "2024-03-23T08:37:50+00:00", "sorted_at": "2024-03-23T09:05:50+00:00", "username": "sandbox", "replied": false, "flagged": false, "starred": true, "attachments": [], "user": { "user_id": 2, "username": "sandbox", "display_name": "Sandbox", "bio": "", "profile_image_url": "https://sandbox.sellinpublic.com/media/alphabet/s.png" } }, "user": { "user_id": 1, "username": "demo", "display_name": "Demo", "bio": "", "profile_image_url": "https://sandbox.sellinpublic.com/media/alphabet/d.png" } } ] }
GET /reactions/stars/{post_id}
Public endpoint. Lists all the stars for a specific post. The meta information will provide pagination info.
URL params
post_id: integer
The id of the post.
Endpoint Example
Below is a live example that can be copy and pasted.
curl https://sandbox.sellinpublic.com/api/v0/reactions/stars/2 -u "demo:sip_api_sand_01234demo56789_key"
Below is the expected result from that cURL call:
{ "status": "success", "messages": [], "meta": { "pagination": { "total_results": 1, "total_pages": 1, "page_previous": 1, "page_next": 1, "page_current": 1, "current_page": 1, "current_result": 1, "current_result_first": 1, "current_result_last": 1, "url_next": "/api/v0/reactions/stars/2?page=1", "url_previous": "/api/v0/reactions/stars/2?page=1" } }, "data": [ { "id": 3, "user_id": 1, "post_id": 2, "type": "star", "content": null, "created_at": "2024-03-23T09:06:50+00:00", "updated_at": "2024-03-23T09:06:50+00:00", "post": { "id": 2, "user_id": 1, "conversation_id": 2, "parent_id": 0, "original_id": 0, "post": "Welcome to the Sandbox server where you can test the interface and API interactions!", "status": "published", "type": "post", "depth": 0, "sort_order": null, "attachment_count": 0, "replies": 3, "reposts": 0, "quotes": 0, "stars": 1, "flags": 0, "reactions": 0, "bumps": 0, "created_at": "2024-03-23T05:07:50+00:00", "updated_at": "2024-03-23T09:07:50+00:00", "published_at": "2024-03-23T05:07:50+00:00", "sorted_at": "2024-03-23T09:06:50+00:00", "username": "demo", "replied": false, "flagged": false, "starred": true, "attachments": [], "user": { "user_id": 1, "username": "demo", "display_name": "Demo", "bio": "", "profile_image_url": "https://sandbox.sellinpublic.com/media/alphabet/d.png" } }, "user": { "user_id": 1, "username": "demo", "display_name": "Demo", "bio": "", "profile_image_url": "https://sandbox.sellinpublic.com/media/alphabet/d.png" } } ] }
GET /reactions/stars
Private endpoint. Lists all the stars for the current user. The meta information will provide pagination info.
Endpoint Example
Below is a live example that can be copy and pasted.
curl https://sandbox.sellinpublic.com/api/v0/reactions/stars -u "demo:sip_api_sand_01234demo56789_key"
Below is the expected result from that cURL call:
{ "status": "success", "messages": [], "meta": { "pagination": { "total_results": 2, "total_pages": 1, "page_previous": 1, "page_next": 1, "page_current": 1, "current_page": 1, "current_result": 1, "current_result_first": 1, "current_result_last": 2, "url_next": "/api/v0/reactions/stars?page=1", "url_previous": "/api/v0/reactions/stars?page=1" } }, "data": [ { "id": 3, "user_id": 1, "post_id": 2, "type": "star", "content": null, "created_at": "2024-03-23T09:06:50+00:00", "updated_at": "2024-03-23T09:06:50+00:00", "post": { "id": 2, "user_id": 1, "conversation_id": 2, "parent_id": 0, "original_id": 0, "post": "Welcome to the Sandbox server where you can test the interface and API interactions!", "status": "published", "type": "post", "depth": 0, "sort_order": null, "attachment_count": 0, "replies": 3, "reposts": 0, "quotes": 0, "stars": 1, "flags": 0, "reactions": 0, "bumps": 0, "created_at": "2024-03-23T05:07:50+00:00", "updated_at": "2024-03-23T09:07:50+00:00", "published_at": "2024-03-23T05:07:50+00:00", "sorted_at": "2024-03-23T09:06:50+00:00", "username": "demo", "replied": false, "flagged": false, "starred": true, "attachments": [], "user": { "user_id": 1, "username": "demo", "display_name": "Demo", "bio": "", "profile_image_url": "https://sandbox.sellinpublic.com/media/alphabet/d.png" } }, "user": { "user_id": 1, "username": "demo", "display_name": "Demo", "bio": "", "profile_image_url": "https://sandbox.sellinpublic.com/media/alphabet/d.png" } }, { "id": 2, "user_id": 1, "post_id": 7, "type": "star", "content": null, "created_at": "2024-03-23T09:05:50+00:00", "updated_at": "2024-03-23T09:05:50+00:00", "post": { "id": 7, "user_id": 2, "conversation_id": 7, "parent_id": 0, "original_id": 0, "post": "The Sandbox server is regenerated every 24 hours.", "status": "published", "type": "post", "depth": 0, "sort_order": null, "attachment_count": 0, "replies": 0, "reposts": 0, "quotes": 0, "stars": 1, "flags": 0, "reactions": 0, "bumps": 0, "created_at": "2024-03-23T08:37:50+00:00", "updated_at": "2024-03-23T09:07:50+00:00", "published_at": "2024-03-23T08:37:50+00:00", "sorted_at": "2024-03-23T09:05:50+00:00", "username": "sandbox", "replied": false, "flagged": false, "starred": true, "attachments": [], "user": { "user_id": 2, "username": "sandbox", "display_name": "Sandbox", "bio": "", "profile_image_url": "https://sandbox.sellinpublic.com/media/alphabet/s.png" } }, "user": { "user_id": 1, "username": "demo", "display_name": "Demo", "bio": "", "profile_image_url": "https://sandbox.sellinpublic.com/media/alphabet/d.png" } } ] }
POST /flag/{post_id}
Private endpoint. Flag a post as spam or abusive content.
URL params
post_id: integer
The id of the post.
Endpoint Example
Below is a live example that can be copy and pasted.
curl -X POST https://sandbox.sellinpublic.com/api/v0/flag/8 -u "demo:sip_api_sand_01234demo56789_key"
Below is the expected result from that cURL call:
{ "status": "success", "messages": [], "meta": {}, "data": { "id": 8, "user_id": 1, "conversation_id": 8, "parent_id": 0, "original_id": 0, "post": "The Sandbox was regenerated five minutes after the time of this post.", "status": "published", "created_at": "2024-03-23T09:02:50+00:00", "updated_at": "2024-03-23T09:22:32+00:00", "published_at": "2024-03-23T09:02:50+00:00", "username": "demo", "display_name": "Demo", "bio": "" } }
POST /star/{post_id}
Private endpoint. Mark a post with a star. Starring a post is kind of a cross between liking a post and bookmarking a post. It will notify the author of the post that it has been starred and all starred posts for a user account are available to retrieve.
URL params
post_id: integer
The id of the post.
Endpoint Example
Below is a live example that can be copy and pasted.
curl -X POST https://sandbox.sellinpublic.com/api/v0/star/8 -u "demo:sip_api_sand_01234demo56789_key"
Below is the expected result from that cURL call:
{ "status": "success", "messages": [], "meta": {}, "data": { "id": 8, "user_id": 1, "conversation_id": 8, "parent_id": 0, "original_id": 0, "post": "The Sandbox was regenerated five minutes after the time of this post.", "status": "published", "created_at": "2024-03-23T09:02:50+00:00", "updated_at": "2024-03-23T09:23:22+00:00", "published_at": "2024-03-23T09:02:50+00:00", "username": "demo", "display_name": "Demo", "bio": "" } }
POST /unflag/{post_id}
Private endpoint. Remove a flag from a post that the user previously flagged.
URL params
post_id: integer
The id of the post.
Endpoint Example
Below is a live example that can be copy and pasted.
curl -X POST https://sandbox.sellinpublic.com/api/v0/unflag/8 -u "demo:sip_api_sand_01234demo56789_key"
Below is the expected result from that cURL call:
{ "status": "success", "messages": [], "meta": {}, "data": { "id": 8, "user_id": 1, "conversation_id": 8, "parent_id": 0, "original_id": 0, "post": "The Sandbox was regenerated five minutes after the time of this post.", "status": "published", "created_at": "2024-03-23T09:02:50+00:00", "updated_at": "2024-03-23T09:23:56+00:00", "published_at": "2024-03-23T09:02:50+00:00", "username": "demo", "display_name": "Demo", "bio": "" } }
POST /unstar/{post_id}
Private endpoint. Remove a star from a post that the user previously starred.
URL params
post_id: integer
The id of the post.
Endpoint Example
Below is a live example that can be copy and pasted.
curl -X POST https://sandbox.sellinpublic.com/api/v0/unstar/8 -u "demo:sip_api_sand_01234demo56789_key"
Below is the expected result from that cURL call:
{ "status": "success", "messages": [], "meta": {}, "data": { "id": 8, "user_id": 1, "conversation_id": 8, "parent_id": 0, "original_id": 0, "post": "The Sandbox was regenerated five minutes after the time of this post.", "status": "published", "created_at": "2024-03-23T09:02:50+00:00", "updated_at": "2024-03-23T09:24:34+00:00", "published_at": "2024-03-23T09:02:50+00:00", "username": "demo", "display_name": "Demo", "bio": "" } }