📄Post a New Question
Post a New Question for audio conversations.
Post new Question
Params
Query Parameter ⬇️
Query Parameter | Data Type | Description |
---|---|---|
organization_id (required) | String | Organization ID in which post has to be created |
Header Parameter ⬇️
Header Parameter | Data Type | Description |
---|---|---|
Bearer {{access_token}} (required) | String | Access tokens securely contain details for the user posting the question as an audio file. |
Body Parameter ⬇️
Body Parameter | Data Type | Description |
---|---|---|
file (required) | String | Audio file to post. Audio Format Supported types: flac single channel mono audio. Max audio duration: 120 seconds |
category_id (required) | String | A category ID in which an audio post has to be uploaded. Some categories are science, happiness, society, fitness, etc. To see a list of known Categories with respect to Category ID mapping check Get all Categories API Endpoint. |
Sample Request ⬇️️
Responses ⬇️
Status Code: 🟢200 (200 denotes 'ok')
Status Code: 🔴400 (400 denotes 'Bad request')
Response Parameters Description:
Response Parameter | Description |
---|---|
message | A response message displayed by servers when a question is successfully posted. |
post_id | A unique identifier generated in map to posted 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. |
chatgpt_query_id | A chatgpt unique identifier linked to audio question asked by users. |
created_at | Post creation date |
duration | Duration of audio post in minutes and seconds. |
is_active | Is organization active or not. |
is_chatgpt_enabled | Is chat gpt enabled to answer to post. |
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. |
whisper_id | Used internally for speech-to-text tasks. |
Create a Child Post.
Params
Query Parameter ⬇️
Body Parameter | Data Type | Description |
---|---|---|
organization_id (required) | String | Organization ID in which post has to be created |
Header Parameter ⬇️
Header Parameter | Data Type | Description |
---|---|---|
Bearer {{access_token}} (required) | String | Access tokens securely contain details for the user posting the question as an audio file. |
Body Parameter ⬇️
Header Parameter | Data Type | Description |
---|---|---|
file (required) | String | Audio file containing the answer. Audio Format Supported types: flac single channel mono audio. Max audio duration: 120 seconds |
category_id (required) | String | A category ID in which a post is uploaded. Some categories are science, happiness, society, fitness, etc. To see a list of known Categories with respect to Category ID mapping check Get all Categories API Endpoint. |
parent_post_id (required) | String | Parent Post ID is the Post ID of the posted Question to link child/answer post. |
Sample Request ⬇️️
Responses ⬇️
Status Code: 🟢200 (200 denotes 'ok')
Status Code: 🔴400 (400 denotes 'Bad request')
Response Parameters Description:
Response Parameter | Description |
---|---|
message | A response message displayed by servers when a question is successfully posted. |
post_id | A unique identifier generated in map to posted 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. |
chatgpt_query_id | |
created_at | Post creation date |
duration | Duration of audio post in minutes and seconds. |
is_active | |
is_chatgpt_enabled | Is chat gpt enabled to answer to post. |
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. |
whisper_id | Used internally for speech-to-text tasks. |
Last updated