User
Retrieve the currently signed-in user.
Responses
200
The currently signed-in user.
application/json
idstringRequiredExample:
The ID of the user.
981ba079-62a6-442c-8dfb-a72af6e96b8cnamestringRequiredExample:
The name of the user.
Jane DoeemailstringRequiredExample:
The email of the user.
janedoe@example.comprofile_picturestringRequiredExample:
The profile picture of the user.
https://example.com/profile.jpgmetadataobjectRequiredExample:
The metadata of the user.
{"signupStatus":"COMPLETED"}referral_creditnumberRequiredExample:
The amount of referral credit the user has accrued.
10000created_atstringRequiredExample:
The date and time the user was created.
2021-01-01T00:00:00.000Zupdated_atstringRequiredExample:
The date and time the user was updated.
2021-01-01T00:00:00.000Z401
The user is not authenticated.
get/auth/user
GET /api/v1/auth/user HTTP/1.1
Accept: */*
{
"id": "981ba079-62a6-442c-8dfb-a72af6e96b8c",
"name": "Jane Doe",
"email": "janedoe@example.com",
"profile_picture": "https://example.com/profile.jpg",
"metadata": {
"signupStatus": "COMPLETED"
},
"referral_credit": 10000,
"created_at": "2021-01-01T00:00:00.000Z",
"updated_at": "2021-01-01T00:00:00.000Z"
}Last updated