Current User Endpoint
Returns the user associated with the supplied Sanctum token.
- Endpoint:
/api/v1/user - Method:
GETorPOST - Authentication: Partner token and user bearer token.
Headers
| Header | Value | Required | Description |
|---|---|---|---|
Partner-Access-Token | Base64 String | Yes | Partner token. |
Authorization | Bearer <token> | Yes | User Sanctum token. |
Accept | application/json | Yes |
Sample Response
{
"result": 1,
"message": "success",
"data": {
"id": 42,
"name": "John Doe",
"profile": null,
"first_name": "John",
"last_name": "Doe",
"address": "Bangkok",
"date_of_birth": "1995-06-15T00:00:00.000000Z",
"country": "Thailand",
"email": "user@example.com",
"phone": "800000000",
"tel_dial": "66",
"email_verified_at": null,
"created_at": "2026-08-20T08:00:00.000000Z",
"updated_at": "2026-08-20T08:00:00.000000Z",
"is_active": true,
"partner_id": 12,
"gender": "male",
"line": null,
"whatsapp": null,
"selected_country": null,
"selected_dial_code": null
}
}
Use this endpoint to restore the signed-in user when an application reloads.