Authorization: Bearer ********************curl --location '/threads' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"messages": [
{
"role": "user",
"content": "string",
"attachments": [
{
"file_id": "string",
"tools": [
{
"type": "code_interpreter"
}
]
}
],
"metadata": {
"property1": "string",
"property2": "string"
}
}
],
"tool_resources": {
"code_interpreter": {
"file_ids": []
},
"file_search": {}
},
"metadata": {
"property1": "string",
"property2": "string"
}
}'{
"id": "string",
"object": "thread",
"created_at": 0,
"tool_resources": {
"code_interpreter": {
"file_ids": []
},
"file_search": {
"vector_store_ids": [
"string"
]
}
},
"metadata": {
"property1": "string",
"property2": "string"
}
}