📄Post Information
Get All Posts
Get all posts by organization id.
Params
Query Parameter ⬇️
organization_id (required)
String
A unique identifier for organization/community to find related posts.
Header Parameter ⬇️
Bearer {{access_token}} (required)
String
Access tokens enable secure access to Matar Resources.
Sample Request ⬇️️
Responses ⬇️
Status Code: 🟢200 (200 denotes 'ok')
Status Code: 🔴404 (404 denotes 'Not found')
Note: The response is shortened for formatting purposes.
Get Posts with Children
Get children(answers) for a specified question post.
Params
Query Parameter ⬇️
post_id (required)
String
A unique identifier for a post to find children or answers for.
offset (optional)
String
Set this to show answers/replies or children starting from a specific page.
Header Parameter ⬇️
Bearer {{access_token}} (required)
String
Access tokens enable secure access to Matar Resources.
Body Parameter ⬇️
parent_post_id (required)
String
Required to view all replies/children post linked to parent/question post. Provide the post_id as parent_post_id.
Sample Request ⬇️️
Responses ⬇️
Status Code: 🟢200 (200 denotes 'ok')
Status Code: 🔴404 (404 denotes 'Not found')
Get Posts with Children(Offset)
Get limited number of children(answers) for a specified question post.
Params
Query Parameter ⬇️
post_id (required)
String
A unique identifier for a post to find children or answers for.
offset (optional)
String
Set this to show specific number of answers or children
Header Parameter ⬇️
Bearer {{access_token}} (required)
String
Access tokens enable secure access to Matar Resources.
Body Parameter ⬇️
parent_post_id (required)
String
Required to view all replies/children post linked to parent/question post. Provide the post_id as parent_post_id.
Sample Request ⬇️️
Responses ⬇️
Status Code: 🟢200 (200 denotes 'ok')
Status Code: 🔴404 (404 denotes 'Not found')
Get Posts by Category
Get posts by a specific category filter.
Params
Query Parameter ⬇️
category_id (required)
String
A unique identifier for a category to find relevant posts.
organization_id (required)
String
A unique identifier for identifying psts under an organization
Header Parameter ⬇️
Bearer {{access_token}} (required)
String
Access tokens enable secure access to Matar Resources.
Sample Request ⬇️️
Responses ⬇️
Status Code: 🟢200 (200 denotes 'ok')
Status Code: 🔴404 (404 denotes 'Not found')
Get User Posts
Get questions/posts asked by the specific user.
Params
Query Parameter ⬇️
user_questions (required)
Boolean
A unique boolean for a category to find relevant posts only related to user. Set to true to get only user posted questions.
organization_id (required)
String
A unique identifier for identifying relevant posts under an organization
Header Parameter ⬇️
Bearer {{access_token}} (required)
String
Access tokens enable secure access to Matar Server Resources.
Sample Request ⬇️️
Responses ⬇️
Status Code: 🟢200 (200 denotes 'ok')
Response Parameters Description Table
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 on network
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 linked 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.
total
Total number of child posts
chatgpt_query_id
A chatgpt unique dentifier 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 organization active or not.
is_chatgpt_enabled
Is chat gpt enabled to answer to question post in 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.
Last updated