Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ✨ Added ping endpoint to get the status of the WhatsApp account #750

Closed

Conversation

jcardenas3
Copy link

The new endpoint _matrix/provision/v1/ping?user_id=@user1:domain.com returns the status of the WhatsApp account with the next structure:

{
    "whatsapp": {
        "has_session": true,
        "management_room": "!roomfoo:domain.com",
        "conn": {
             "is_connected": true,
             "is_logged_in": true,
         },
        "jid":  "573001111111:[email protected]",
       "phone": "+573001111111",
       "platform": "foo",
    },
    "mxid": "@user1:domain.com",
}

@dbedoya
Copy link
Contributor

dbedoya commented Feb 25, 2025

Hi @tulir Do you have any comments about this PR ?

@tulir
Copy link
Member

tulir commented Feb 25, 2025

The legacy provisioning API is legacy (as the name suggests), so it won't get any new endpoints. The whoami endpoint in the megabridge provisioning API includes status of all of the user's logins

@tulir tulir closed this Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants