Frontend API
Update the current user’s profile information
cURL
curl --request POST \ --url https://api.wacht.dev/me \ --header 'Content-Type: application/x-www-form-urlencoded' \ --cookie session_id= \ --data first_name=John \ --data last_name=Doe \ --data username=johndoe \ --data primary_email_address_id=123456789012345678 \ --data primary_phone_number_id=987654321098765432 \ --data second_factor_policy=enforced \ --data remove_profile_picture=false
{ "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." } ] }
"John"
"Doe"
"johndoe"
"123456789012345678"
"987654321098765432"
none
enforced
"enforced"
false
User updated successfully
HTTP status code
200
Response message (empty on success)
""
Show child attributes
Minimal session info included in every response
Error details (null on success)
Was this page helpful?