User Information

Get User ID

Retrieve the authenticated user's ID.

Endpoint: /api/user/id Method: GET Description: Returns the ID number of the authenticated user.

Response:

{
    "user_id": 12345
}

Get User Name

Retrieve the authenticated user's name.

Endpoint: /api/user/name Method: GET Description: Returns the name of the authenticated user.

Response:

{
    "name": "John Doe"
}

Get User Email

Retrieve the authenticated user's email.

Endpoint: /api/user/email Method: GET Description: Returns the email of the authenticated user.

Response:

{
    "email": "[email protected]"
}

Last updated