Skip to main content
GET
/
me
Get current user
curl --request GET \
  --url https://api.wacht.dev/me \
  --cookie session_id=
{
  "status": 200,
  "message": "",
  "data": {
    "id": "123456789012345678",
    "first_name": "John",
    "last_name": "Doe",
    "username": "johndoe",
    "availability": "available",
    "email": "john@example.com",
    "profile_picture_url": "https://cdn.wacht.dev/avatars/123.jpg",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "primary_email_address_id": "<string>",
    "primary_phone_number_id": "<string>",
    "second_factor_policy": "none",
    "backup_codes_generated": true,
    "has_password": true,
    "has_passkeys": true,
    "disabled": true,
    "active_organization_membership_id": "<string>",
    "active_workspace_membership_id": "<string>",
    "public_metadata": {}
  },
  "session": {
    "id": "123456789012345678",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "errors": [
    {
      "code": "INVALID_CREDENTIALS",
      "message": "Invalid credentials. Please try again."
    }
  ]
}

Authorizations

session_id
string
cookie
required

Response

User profile retrieved successfully

status
integer

HTTP status code

Example:

200

message
string

Response message (empty on success)

Example:

""

data
object
session
object

Minimal session info included in every response

errors
object[] | null

Error details (null on success)