curl --location -g --request POST 'http://dev-cn.your-api-server.com/v1/threads/create?GroupId=${GroupId}' \
--header 'Authorization: Bearer ${API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
"metadata": {
"key1": "value1",
"key2": "value2"
}
}'
{
"id": "thread_abc123",
"object": "thread",
"created_at": 1703245250,
"metadata": {
"key1": "value1",
"key2": "value2"
},
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
}