cURL
curl --request GET \ --url https://north.sh/api/v0/users/me \ --header 'Authorization: Bearer <token>'
{ "success": true, "code": 200, "locale": "en", "message": "OK", "data": { "id": "01jh1234abcd5678efgh", "name": "John Doe", "email": "[email protected]", "theme": "dark", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } }
Fetches the details of the currently authenticated user.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
User retrieved successfully
true
200
"en"
"OK"
Show child attributes