Get Basic User Information
User API
Get Basic User Information
API reference for fetching basic profile information of the authenticated user (/api/user).
GET
Get Basic User Information
Get Basic User Information
This endpoint retrieves basic profile information for the user associated with the provided access token.Authorization Headers
The Bearer token for authentication. Example:
Bearer {YOUR_ACCESS_TOKEN}Specifies the desired response format.
Required Scope
view-user
view-user scope during the OAuth authorization flow to access this endpoint. If the access token does not have this scope, a 403 Forbidden error will be returned.
Request Examples
JavaScript/Node.js
Python
PHP
cURL
Successful Response (200 OK)
A successful request returns a JSON object containing the user’s basic profile information. Response Fields:The unique identifier for the user.
The full name of the user.
The primary email address of the user. Note: This field may be
null if the user registered via WhatsApp and has not yet linked an email address.URL to the user’s profile picture. May be
null.The user’s chosen username. Defaults to a unique string or
null if not set.The gender of the user (e.g., “male”, “female”, “other”). May be
null.Example Successful Response
Error Responses
Common Error Responses
- 403 Forbidden
- 429 Too Many Requests
Rate Limiting
This endpoint is subject to rate limiting:- Limit: 100 requests per minute per access token
- Reset: Rate limit resets every minute
- Headers: Check
X-RateLimit-RemainingandX-RateLimit-Resetresponse headers
Testing the Endpoint
Using the API Playground
You can test this endpoint directly using the API playground above. Make sure you have:- A valid access token with
view-userscope - The token is not expired
- Your application is properly registered