curl --request GET \
--url http://localhost:8000/api/v1/chat/{thread_id}/messages \
--header 'Authorization: Bearer <token>'[
{
"role": "<string>",
"content": "<string>",
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"frontend_actions": []
}
]Get the messages of the chat thread with the given ID.
Args:
thread_id (str): The .thread_id of the chat thread
limit__last_n (int | None): Limit to the last N messages
offset (int | None): Offset for pagination
approved_user (User): The current approved user
Returns: Dict containing the messages of the chat thread
curl --request GET \
--url http://localhost:8000/api/v1/chat/{thread_id}/messages \
--header 'Authorization: Bearer <token>'[
{
"role": "<string>",
"content": "<string>",
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"frontend_actions": []
}
]The access token received from the authorization server in the OAuth 2.0 flow.
Successful Response
The Front-end actions.
enable_submit_button, disable_submit_button, update_campaign_draft, set_campaign_draft_step_1, set_campaign_draft_step_2, set_campaign_draft_step_3, set_campaign_draft_step_4