AuthnAuthzAPI
Get Started
Get Started
  1. Profile Management
  • Overview
  • Registration & Onboarding
    • Register a new user
      POST
    • Verify email address
      POST
    • Resend verification code
      POST
  • Authentication
    • Login user
      POST
    • Logout user
      POST
    • Request a password reset email
      POST
    • Verify password reset token
      POST
    • Update password
      POST
    • Refresh access token
      POST
    • Get current authenticated user
      GET
  • OAuth Authentication
    • OAuth authentication
      GET
    • OAuth callback
      GET
  • Session Management
    • Get all sessions
      GET
    • Revoke session
      DELETE
    • Revoke all sessions
      DELETE
  • Profile Management
    • View profile information
      GET
    • Update profile information
      PATCH
  1. Profile Management

View profile information

Developing
GET
/profile
Retrieves the complete profile information of the authenticated user, including personal details, account status, security settings, and linked OAuth providers. This endpoint enables users to view their account information, verify linked authentication methods, and display profile data within client applications.
The returned information represents the authenticated user's current account state and excludes sensitive data such as passwords, password hashes, authentication secrets, and refresh tokens.

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or

Responses

🟢200Success
application/json
Bodyapplication/json

🟠401Token Missing
🟠401Invalid Token
🟠401Token Expired
🟠403Account Not Exists
🟠403Account Soft Deleted
🟠403Account Deactivated
🟠403Account Locked
🟠403Account Not Verified
🟠401Session Not Found
🟠401Session Revoked
🟠401Session Expired
🟠429Rate Limit Exceeded
🔴500Internal Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'http://localhost:3000/api/v1/profile' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Example
{
    "status": "success",
    "message": "User information retrieved successfully.",
    "data": {
        "id": "4b4292347b38fbb30345594ba94e7e360b16a5c5",
        "name": "Ivan Kemmer",
        "email": "marlene12@gmail.com",
        "profile_picture": "https://avatars.githubusercontent.com/u/16847393",
        "role": {
            "id": "ae2869a16b50a6adebd00187e7f6cb56af5e5796",
            "name": "admin"
        },
        "account_status": "active",
        "email_verified": true,
        "email_verified_at": "2026-07-30T15:20:56.951Z",
        "two_factor_enabled": true,
        "last_login_geolocation": {
            "country_code": "SC",
            "country": "Libyan Arab Jamahiriya",
            "region": "Bashirianmouth",
            "city": "New Derickfield",
            "latitude": 69.9616,
            "longitude": 111.5398,
            "timezone": "Pacific/Saipan"
        },
        "created_at": "2026-07-30T15:20:56.957Z",
        "updated_at": "2026-07-30T15:20:56.957Z",
        "deleted_at": null,
        "login_methods": [
            {
                "method": "google",
                "email": "lonnie83@gmail.com",
                "linked_at": "2026-07-30T15:20:56.958Z"
            },
            {
                "method": "local",
                "email": "lucius_beer@yahoo.com",
                "linked_at": "2026-07-30T15:20:56.958Z"
            },
            {
                "method": "github",
                "email": "pedro.kub@hotmail.com",
                "linked_at": "2026-07-30T15:20:56.959Z"
            }
        ]
    }
}
Modified at 2026-07-30 15:08:48
Previous
Revoke all sessions
Next
Update profile information
Built with