Get Profile
Retrieves authenticated user and partner profile information, including 2FA status.
Endpoint
GET/v2/auth/profile
Link
Request
Headers
Authorization
Bearer <JWT>
Yes
Accept
application/json
Yes
Response (200 OK)
Returns user and partner details in a structured JSON object.
Response Fields
1. Partner Object
id
string
Unique partner ID.
"a2813d61-51a3-487f-b5bb-3aea43dd2581"
name
string
Partner company name.
"Acme Inc."
phone
string
Partner contact phone.
"+1234567890"
2. User Object
id
string
Unique user ID.
"2e325799-392d-41d4-8dd6-6cea890c6982"
name
string
User's full name.
"John Doe"
phone
string
User's phone number.
"+1987654321"
is2FA
boolean
2FA enabled status (true/false).
true
Example Response:
Error Responses
Invalid/Missing Token:
Expired Token:
Notes
Permissions:
Requires an active session (valid JWT).
Partner details are only included for business accounts.
2FA Status:
is2FA: truemeans the user must provide OTP codes for login.
Examples
Real request
Real response
200 OK
Last updated

