Skip to main content
GET
/
user
/
details
cURL
curl --request GET \
  --url https://our-secret-api-url.com/user/details \
  --header 'Authorization: Bearer <token>'
{
  "id": 123,
  "username": "<string>",
  "name": "<string>",
  "image": "<string>",
  "email": "<string>",
  "phone": "<string>",
  "bio": "<string>",
  "verifiedAt": "2023-11-07T05:31:56Z",
  "role": "user"
}
This API is useful for updating the user’s details.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

object | null

The user's details

id
integer

User ID

username
string

Username of the user

name
string

Name of the user

image
string

Profile image URL

email
string

User's email

phone
string

User's phone

bio
string

User's bio

verifiedAt
string<date-time> | null

Verification timestamp if the user is verified

role
enum<string>

Role of the user

Available options:
user,
admin