Get Detailed User Information
User API
Get Detailed User Information
API reference for fetching detailed profile information of the authenticated user (/api/user/details). Requires special permissions.
GET
Get Detailed User Information
Get Detailed User Information
This endpoint retrieves more sensitive and detailed profile information for the user associated with the provided access token. Access to this endpoint is restricted and requires specific permissions beyond basic user authentication.Authorization Headers
The Bearer token for authentication. Example:
Bearer {YOUR_ACCESS_TOKEN}Specifies the desired response format.
Required Scope & Special Approval
- Scope:
detail-user - Admin Approval: Access to the
detail-userscope (and thus this endpoint) requires explicit administrative approval for your client application. Requesting thedetail-userscope during the OAuth flow is not sufficient on its own.
Request Examples
JavaScript/Node.js
Python
PHP
cURL
Successful Response (200 OK)
A successful request returns a JSON object containing the user’s detailed profile information. This includes all fields from the Basic User Information endpoint, plus the additional sensitive fields listed below. Additional Response Fields:A short biography or description from the user. May be
null.The user’s verified phone number. This is the primary identifier for WhatsApp-registered users. May be
null if not provided.The user’s place of birth. May be
null.The user’s date of birth in YYYY-MM-DD format. May be
null.The user’s physical address. May be
null.The availability of these fields depends on what information the user has provided to Mubarokah ID and the specific permissions granted. For WhatsApp-only registration,
email in basic info will be null, while phone_number here will be populated.Example Successful Response
Error Responses
Common Error Responses
- 403 Forbidden - Insufficient Scope
- 403 Forbidden - Unapproved Scope
- 429 Too Many Requests
Rate Limiting
This endpoint has stricter rate limiting due to the sensitive nature of the data:- Limit: 50 requests per minute per access token (lower than basic endpoints)
- Reset: Rate limit resets every minute
- Headers: Check
X-RateLimit-RemainingandX-RateLimit-Resetresponse headers
Testing and Development
Development Checklist
Before testing this endpoint, ensure:Basic Integration Working
Your application can successfully authenticate users and access the basic
/api/user endpointAdmin Approval
Your application has been approved for the
detail-user scope through the administrative process