/api/users/ and require a valid Bearer token.
All endpoints on this page require an
Authorization: Bearer <access_token> header. See Authentication for how to obtain a token.GET /api/users/me
Return the full profile of the currently authenticated user.UserResponse:
The OAuth provider used to create the account (
google, github), or null for password-based accounts.PATCH /api/users/me
Update the authenticated user’s profile. Only the fields you include in the request body are updated; omitted fields are left unchanged.UserResponse with updated fields:
POST /api/users/me/change-password
Change the password for the currently authenticated user. This endpoint is only available to accounts that were created with a password. OAuth-only accounts (social login only, no password set) must use the forgot-password flow to set an initial password.400 if the current password is incorrect, or if the account uses social login and has no password set.
POST /api/users/me/change-email
Request an email address change. The new address must not already be in use. After the change,is_verified is set to false and a new verification email is sent to the new address.
The user’s current password to confirm the change. Required for password-based accounts.
GET /api/users/me/export
Export all personal data stored for the authenticated user as a downloadable JSON file. This endpoint is provided for GDPR compliance.Content-Disposition: attachment JSON file with the following fields:
DELETE /api/users/me
Permanently delete the authenticated user’s account. This action is irreversible. For password-based accounts, you must supply the current password to confirm deletion. For OAuth-only accounts (no password), you must pass"confirm": "DELETE" instead.