curl --request POST \
--url https://app.myhero.so/ai-agent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"chatMessages": [
{
"text": "<string>",
"metadata": {}
}
],
"context": {
"documentId": "<string>",
"projectId": "<string>",
"workspaceId": "<string>",
"organizationId": "<string>",
"mentions": [
"<unknown>"
]
},
"options": {
"provider": "<string>",
"model": "<string>"
},
"attachments": [
{
"filename": "<string>",
"mimeType": "<string>",
"base64": "<string>",
"size": 1
}
],
"sessionId": "<string>",
"documentRefs": [
{
"documentId": "<string>",
"addedAt": 123
}
]
}
'