const response = await fetch('https://api.aimlapi.com/threads/{threadId}/messages', {
method: 'POST',
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"role": "text",
"content": "text"
}),
});
const data = await response.json();