POST Public
Starts a password reset by emailing a reset link.
Handler: handle_forgot_password()
No parameters declared in the route registration.
curl Copycurl -X POST "https://example.com/wp-json/davo/v1/auth/forgot-password" src/domains/auth/routes.php:82
GET Public
Returns the initial auth state the front end needs to render sign-in and sign-up.
Handler: handle_initial_state()
No parameters declared in the route registration.
curl Copycurl "https://example.com/wp-json/davo/v1/auth/initial-state" src/domains/auth/routes.php:147
POST Access check: guest_only
Signs a user in with a login and password, with an optional remember flag.
Handler: handle_login()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/auth/login" src/domains/auth/routes.php:56
POST Access check: require_login
Signs out the current session.
Handler: handle_logout()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/auth/logout" src/domains/auth/routes.php:159
POST Access check: require_login
Signs the user out of every session.
Handler: handle_logout_all()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/auth/logout-all" src/domains/auth/routes.php:171
POST Public
Emails a one-time sign-in link.
Handler: handle_request_magic_link()
No parameters declared in the route registration.
curl Copycurl -X POST "https://example.com/wp-json/davo/v1/auth/magic-link" src/domains/auth/routes.php:121
POST Public
Signs a user in by consuming a magic-link token.
Handler: handle_consume_magic_link()
No parameters declared in the route registration.
curl Copycurl -X POST "https://example.com/wp-json/davo/v1/auth/magic-login" src/domains/auth/routes.php:134
GET Access check: require_login
Returns the signed-in user and the current session.
Handler: handle_me()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/auth/me" src/domains/auth/routes.php:183
POST Access check: guest_only
Registers a new account from an email, password, optional username and display name, and any custom fields.
Handler: handle_register()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/auth/register" src/domains/auth/routes.php:69
POST Public
Sends the verification email again. Signed-in users get it for their own account; otherwise the response is the same whether or not the email exists.
Handler: handle_resend_verification()
Parameters of POST /auth/resend-verification Parameter Type Required Default or allowed values email string No —
curl Copycurl -X POST "https://example.com/wp-json/davo/v1/auth/resend-verification" src/domains/auth/routes.php:263
POST Public
Sets a new password using a reset token.
Handler: handle_reset_password()
No parameters declared in the route registration.
curl Copycurl -X POST "https://example.com/wp-json/davo/v1/auth/reset-password" src/domains/auth/routes.php:95
GET Access check: require_login
Lists the signed-in user's active sessions.
Handler: handle_sessions()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/auth/sessions" src/domains/auth/routes.php:220
DELETE Access check: require_login
Ends one of the signed-in user's sessions.
Handler: handle_revoke_session()
Parameters of DELETE /auth/sessions/{id} Parameter Type Required Default or allowed values id integer Yes —
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/auth/sessions/{id}" src/domains/auth/routes.php:244
POST Access check: require_login
Signs the current user out of every other device while keeping this session alive. Requires the caller to be authenticated.
Handler: handle_logout_others_sessions()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/auth/sessions/logout-others" src/domains/auth/routes.php:232
POST Public
Verifies an email address with the emailed token.
Handler: handle_verify_email()
No parameters declared in the route registration.
curl Copycurl -X POST "https://example.com/wp-json/davo/v1/auth/verify-email" src/domains/auth/routes.php:108
POST Access check: require_login
Updates the email address for a logged-in unverified account and sends a new verification email.
Handler: handle_update_unverified_email()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/auth/verify-email/email" src/domains/auth/routes.php:195
GET Access check: require_login
Returns the current authenticated user's email verification status and cooldown.
Handler: handle_verification_status()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/auth/verify-email/status" src/domains/auth/routes.php:208