curl --request GET \
--url https://api.jelou.ai/v1/users/{userId}/state \
--header 'Authorization: Basic <encoded-value>'{
"id": "<string>",
"names": "<string>",
"botId": "<string>",
"groupId": "<string>",
"state": "auto"
}Consulta y actualiza el estado de un usuario
curl --request GET \
--url https://api.jelou.ai/v1/users/{userId}/state \
--header 'Authorization: Basic <encoded-value>'{
"id": "<string>",
"names": "<string>",
"botId": "<string>",
"groupId": "<string>",
"state": "auto"
}GET https://api.jelou.ai/v1/users/{userId}/state
+).{
"id": "573001234567",
"names": "John Doe",
"botId": "bot-12345",
"groupId": "grp-67890",
"state": "auto"
}
POST https://api.jelou.ai/v1/users/state
+)."manual" o "auto".curl --request POST \
--url https://api.jelou.ai/v1/users/state \
--header 'Authorization: Basic <Base64Encoded clientId:clientSecret>' \
--header 'Content-Type: application/json' \
--data '{
"ttl": 3600,
"botId": "bot-12345",
"userId": "573001234567",
"state": "manual"
}'
{
"id": "573001234567",
"names": "John Doe",
"botId": "bot-12345",
"groupId": "grp-67890",
"state": "manual"
}
manual, el bot deja de responder automáticamente y es necesario enviar mensajes manuales usando los endpoints de envío. Asegúrate de coordinar el cambio de estado con tu equipo de soporte.400 - No se pudo obtener o actualizar el estado del usuario.401 - Credenciales inválidas o faltantes.404 - Usuario o bot no encontrados.Was this page helpful?