cURL
curl --request POST \ --url https://app.sure.am/api/v1/chats/{chat_id}/messages \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "content": "<string>", "model": "<string>" } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "type": "user_message", "role": "user", "content": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "chat_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "model": "<string>", "tool_calls": [ { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "function_name": "<string>", "function_arguments": {}, "created_at": "2023-11-07T05:31:56Z", "function_result": {} } ], "ai_response_status": "pending", "ai_response_message": "<string>" }
Bearer token with write scope
Chat ID
message created
user_message
assistant_message
user
assistant
Show child attributes
pending
complete
failed