curl --request POST \
--url https://api.jelou.ai/v1/rooms/{roomId}/message \
--header 'Authorization: Basic <Base64Encoded clientId:clientSecret>' \
--header 'Content-Type: application/json' \
--data '{
"senderId": "agent-12345",
"messages": [
{
"type": "text",
"text": "Hello 👋, this is a test message."
}
]
}'
{
"message": "<string>",
"statusMessage": "<string>",
"status": 123,
"error": {
"code": "<string>",
"key": "<string>",
"description": "<string>",
"developerMessages": {},
"clientMessages": {}
},
"validationError": {}
}Envie mensagens para usuários dentro de uma sala de conversa especificando o tipo de conteúdo.
curl --request POST \
--url https://api.jelou.ai/v1/rooms/{roomId}/message \
--header 'Authorization: Basic <Base64Encoded clientId:clientSecret>' \
--header 'Content-Type: application/json' \
--data '{
"senderId": "agent-12345",
"messages": [
{
"type": "text",
"text": "Hello 👋, this is a test message."
}
]
}'
{
"message": "<string>",
"statusMessage": "<string>",
"status": 123,
"error": {
"code": "<string>",
"key": "<string>",
"description": "<string>",
"developerMessages": {},
"clientMessages": {}
},
"validationError": {}
}curl --request POST \
--url https://api.jelou.ai/v1/rooms/{roomId}/message \
--header 'Authorization: Basic <Base64Encoded clientId:clientSecret>' \
--header 'Content-Type: application/json' \
--data '{
"senderId": "agent-12345",
"messages": [
{
"type": "text",
"text": "Hello 👋, this is a test message."
}
]
}'
Esta página foi útil?