# Profile and workspace resources

GET `/me` reads your profile; PATCH updates first name, last name and personal role. GET `/me/photo` downloads your photo; POST or DELETE replaces or removes it through the native image pipeline (PNG/JPEG, at least 96 × 96 pixels, at most 3 MiB). Email, passwords and linked sign-in changes require interactive identity verification and are not exposed here.

Customers support list, get, create, replace and delete; clients with invoices cannot be deleted. Wallets and bank accounts support list, get, create and replace. List payment networks or add a custom network. Organization details, invoice numbering, invoice defaults, templates and routing use their corresponding GET and PUT endpoints. DELETE `/routing` turns routing off. Template assets and organization logos have upload endpoints; save returned asset URLs through invoice settings.

Members can discover teammates, groups and invoice defaults for invoice sharing; client assignments in the member directory are visible only to admins. Admins can invite members, resend/revoke invitations, change member roles and assigned clients, remove members, and create permission groups. Owner and last-admin rules match the app. Notifications are derived from accessible invoices; read/unread state remains browser-local. GET `/organizations` lists your account membership summaries. POST `/organizations` creates a business organization with the native onboarding requirement and limits (3 attempts per day, 10 active creations); your current key stays bound to its original organization. POST `/organization/leave` and DELETE `/organization` operate only on the key’s organization, preserving owner/last-admin/remaining-organization safeguards. Deletion requires its exact name as `confirmation`. After leaving/deleting, that key loses access; a retry may return an authentication/access error. Account security remains interactive.
