Profile
Check account
Get profile data for your own account or for another number / LID
GET
Check account
Auth:
Envelope:
TokenAccount or TokenInstance • Rate limit: Global (100/min) • Idempotent: yes (read-only)
Description
Returns profile data for the connected account itself (picture, name, status, JID, LID). Optionally, looks up the profile of another number via?number=. Without the parameter, returns the profile of the instance itself.
Examples
Own account
Without the query parameter: returns the profile of the connected instance itself (picture, name, status, JID, and LID). A direct way to verify who is connected to that session.Another number
Looks up the public profile of a third party by number (?number=5511988887777). Useful for verifying that the number exists on WhatsApp and getting their publicly visible picture / name / status.
By LID
Looks up the profile using a LID (@lid) instead of a number. Useful when the source event only exposes the anonymous LID (in newer WhatsApp communities / channels), without the corresponding phone number.
Success response
Returnsprofile with the target’s data: profilePicture (WhatsApp CDN URL, always present, becomes null if the account has no picture or the lookup timed out), profileName (push name or business name), profileStatus (“About” text), phoneNumber (digits only), jid (<number>@s.whatsapp.net), and lid (@lid format, when available). All fields except profilePicture use omitempty and may not appear if WhatsApp didn’t return that data.
200 OK
200 OK (no picture)
Path parameters
Instance name.
Headers
TokenAccount or TokenInstance.Query
Number (
5511999999999, +5511999999999, 5511999999999@s.whatsapp.net) or LID (52399087550579@lid). If omitted, returns the profile of the instance itself.Notes
- For BR numbers (
55...), the service automatically tries variations with and without the 9th digit. - Automatic sanitization of
+,-,(,), and spaces:(11) 99999-9999becomes11999999999. profilePictureis the only field that always appears (may benull); the others useomitempty.- The picture URL is temporary (WhatsApp CDN). If the lookup exceeds 10s, the field comes back
null. - For your own account, prefer
number="", passing your own number returns data “as others see you”.
Errors
| HTTP | Message |
|---|---|
| 400 | Number not found or not registered on WhatsApp |
| 400 | invalid LID format |
| 400 | Instance is not connected to WhatsApp |
| 500 | timeout ao buscar foto (>10s) |