curl --location -g --request POST 'https://localhost/api/v1/agents//train?workspace_uuid={{workspace_uuid}}' \
--header 'Accept: application/json' \
--header 'X-Multiplai-Authorization;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"provider": "openai",
"model": "gpt-4.1-mini",
"messages": [
{
"content": "Hi",
"role": "user"
}
]
}'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"role": "assistant",
"content": "string",
"metadata": {
"tool_calls": [
{}
]
}
}