📄Post Activity Type
Last updated
Last updated
Perform Activity Types (like, dislike, share, etc.) on any created audio post.
Post an Activity Type on an audio post.
Query Parameter ⬇️
organization_id (required)
String
6-Digit Alpha Numerical number for identifying a particular org.
Header Parameter ⬇️
Bearer {{access_token}} (required)
String
Access tokens enable secure access to Matar Resources.
Body Parameter ⬇️
post_activity_type (required)
String
Activity Type can be of 8 types reply, like, downvote, dislike, share, upvote, block, view.
To know more about activity types check the Activity Types API endpoint.
post_id (required)
String
Every created post has a unique identifier that identifies a particular audio post.
Sample Request ⬇️️
Responses ⬇️
Status Code: 🟢200 (200 denotes 'ok')
Status Code: 🔴404 (404 denotes 'Not found')
Response Parameters Description:
message
Server generated message when some new activity is detected on post
post_activity_id
A unique identifier linked to activity type on post.
post_activity_data
is active
Whether organization is active or not.
organization_id
Phone Number Linked to User Account
post_activity_type
Type of user activity on post.
post_id
Post ID linked to the post on which user activity is detected.
user_id
User ID linked to user from which activity is posted.
Get user activity type for questions and answers posts.
Query Parameter ⬇️
organization_id (required)
String
A unique identifier for organization in which question or answer is posted.
post_activity_type (optional)
String
Activity Type can be of 8 types reply, like, downvote, dislike, share, upvote, block, view. Provide any type to find the relevant type of posts.
Header Parameter ⬇️
Bearer {{access_token}} (required)
String
Access Token for securely accessing Matar server resources.
Sample Request ⬇️️
Responses ⬇️
Status Code: 🟢200 (200 denotes 'ok')
Response Parameters Description:
page_details_current_start
Current post page number.
page_details_next_offset
Set a particular page number to start for post-viewing via offset.
page_details _total
Total number of post pages available to view.
post_id
A unique identifier linked to posted audio question.
post_audio_text
Contains transcribed version of audio post.
post_audio_url
URL of where audio post is stored.
category_ids
A unique identifier containing the category in which question is posted.
child_posts
Contains list of child posts. A child post is a answer/reply post to the parent/question post.
child_posts_current_start
Current child post page number.
child_posts_cursor
child_posts_next_offset
Set a particular page number to start from for child post-viewing via offset.
total
Total number of child posts
chatgpt_query_id
A chatgpt identifier linked to audio question asked by users.
created_at
Post creation date
duration
Duration of audio post in minutes and seconds.
like
Total number of likes for the post.
is_active
Is the organization active or not.
is_chatgpt_enabled
Is chat gpt enabled to answer to question post inn an organization
organization_id
Organization in which the question is posted.
parent_post_id
If question post has replies or child post then the question has a valid parent_post_id. parent_post_id is set to null when question post has no replies.
sort_order
When there are multiple posts to display they are sorted by sort order and has a number assigned to it. If there is a single post to display the sort_order will be set to null.
text
Contains post text transcribed from audio.
user_id
User ID of the account from which audio is posted.
user image_url
Image URL containing the user account image.
user_name
Name for the user account.
user_post_activities
Any post activity performed by the linked user.
whisper_id
Used internally for speech-to-text tasks.