Skip to main content
GET
/
user
Get authenticated user
curl --request GET \
  --url https://nextvisit.app/api/user \
  --header 'Authorization: Bearer <token>'
{
  "id": 1,
  "name": "John Doe",
  "email": "[email protected]",
  "created_at": "2023-01-15T08:30:00Z",
  "updated_at": "2023-01-15T08:30:00Z"
}

Authorizations

Authorization
string
header
required

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

Response

Successful operation

id
integer<int64>
required

Unique identifier for the user

Example:

12345

name
string
required

Full name of the user

Example:

"Dr. Sarah Johnson"

email
string<email>
required

Email address of the user

created_at
string<date-time>
required

Timestamp when the user was created

Example:

"2023-03-15T09:12:34Z"

updated_at
string<date-time>
required

Timestamp when the user was last updated

Example:

"2023-05-22T14:07:53Z"