curl --request POST \
--url http://localhost:8000/api/v1/chat/{thread_id}/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"role": "<string>",
"content": "<string>"
}
'[
{
"role": "<string>",
"content": "<string>",
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"frontend_actions": []
}
]Create a message in the chat thread with the given ID.
Args:
thread_id (str): The .thread_id of the chat thread
message (AssistantChatMessageCreateSchema): The message to create
approved_user (User): The current user
Returns: Dict containing the created message
curl --request POST \
--url http://localhost:8000/api/v1/chat/{thread_id}/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"role": "<string>",
"content": "<string>"
}
'[
{
"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