Docuflex

Docuflex › E-signature › API › Auth

API reference: Auth

Session endpoints used by the web app; dev-login is never available in production.

Create a Docuflex account Read the API reference Connect your AI agent

MethodPathWhat it does
POST/v1/auth/dev-loginDev-only login (mints a session without Google/Clerk)
404 unless AUTH_DEV_LOGIN_ENABLED; never available in production.
POST/v1/auth/logoutRevoke the current web session and clear the cookie
GET/v1/auth/meCurrent principal + user + memberships (account switcher)
POST/v1/auth/clerk/syncEnsure Clerk-user provisioning ran; returns the me payload
Provisioning (user + personal account + owner membership) happens on first authenticated request; this endpoint exists so the web app can force it after sign-up.

Conventions