Skip to main content

Current User Endpoint

Returns the user associated with the supplied Sanctum token.

  • Endpoint: /api/v1/user
  • Method: GET or POST
  • Authentication: Partner token and user bearer token.

Headers

HeaderValueRequiredDescription
Partner-Access-TokenBase64 StringYesPartner token.
AuthorizationBearer <token>YesUser Sanctum token.
Acceptapplication/jsonYes

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.