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"
}Query and update the status of a user
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
+ sign).{
"id": "573001234567",
"names": "John Doe",
"botId": "bot-12345",
"groupId": "grp-67890",
"state": "auto"
}
POST https://api.jelou.ai/v1/users/state
+ sign)."manual" or "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 state, the bot stops responding automatically and manual messages must be sent using the send endpoints. Make sure to coordinate the state change with your support team.400 - Could not get or update the user’s status.401 - Invalid or missing credentials.404 - User or bot not found.Was this page helpful?