Sign in
14 operations in the WP Waterfall API.
- postStart a passkey sign-in or second step
- postFinish a passkey sign-in or second step
- postEmail a password reset link
- postChoose a new password with a reset link
- getWhich sign-in methods the server offers
- postSign in with an email and a password
- postCreate an account with a password
- postStart sign-in with Google or GitHub
- postFind out whether an email domain signs in through a company
- postStart company single sign-on
- postEmail a sign-in code
- postAnswer the second step of sign-in
- postConfirm an email address with the emailed link
- postSend the verification email again
Start a passkey sign-in or second step
post/auth/passkey/optionsPermalink to Start a passkey sign-in or second step
- Dashboard session only, no API key
purpose sign_in is a passkey on its own, with no password. It needs a passkey that checks the person (PIN, fingerprint, or face). second_factor needs the pending sign-in cookie from a correct password. The answer holds the WebAuthn options for the browser. The challenge lasts three minutes and works once. Browser only: an API key cannot use it.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Request body application/json, required, PasskeyAuthOptionsRequest
Fields
| Name | Type | Description |
|---|---|---|
purpose required | string | One of: sign_in, second_factor. |
Responses
| Status | Body | Description |
|---|---|---|
200 | PasskeyOptionsResult | WebAuthn options |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | Not signed in, or the answer was not right |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | Too many attempts. Retry-After says when to try again |
200 response fields
| Name | Type | Description |
|---|---|---|
options required | object |
Finish a passkey sign-in or second step
post/auth/passkey/verifyPermalink to Finish a passkey sign-in or second step
- Dashboard session only, no API key
Checks the browser's WebAuthn answer against the saved public key, the origin, the relying party id, and the signature counter. A wrong answer is a 401 with the code passkey_failed. Wrong answers count against the same lock as wrong codes.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Request body application/json, required, PasskeyAuthVerifyRequest
Fields
| Name | Type | Description |
|---|---|---|
purpose required | string | One of: sign_in, second_factor. |
response required | object |
Responses
| Status | Body | Description |
|---|---|---|
200 | SignInResult | Signed in |
400 | Problem | The request was not valid |
401 | Problem | Not signed in, or the answer was not right |
403 | Problem | Refused |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | Too many attempts. Retry-After says when to try again |
200 response fields
| Name | Type | Description |
|---|---|---|
status required | string | One of: signed_in, two_factor_required, email_verification_required. |
two_factor_methods required | array of string | With two_factor_required: the ways this person can answer. |
provider_link | object | Set with signed_in when this browser held a pending provider link. |
provider_link.provider required | string | One of: google, github. |
provider_link.status required | string | One of: linked, expired, other_account. |
Email a password reset link
post/auth/password/forgotPermalink to Email a password reset link
- Dashboard session only, no API key
Always answers 202 for any address. The link works once and expires after 30 minutes. Only a hash of the token is stored.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Request body application/json, required, ForgotPasswordRequest
Fields
| Name | Type | Description |
|---|---|---|
email required | string (email) |
Responses
| Status | Body | Description |
|---|---|---|
202 | ForgotPasswordResult | Accepted |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
202 response fields
| Name | Type | Description |
|---|---|---|
status required | string |
Choose a new password with a reset link
post/auth/password/resetPermalink to Choose a new password with a reset link
- Dashboard session only, no API key
Ends every session and every trusted browser of the account, and sends a security notice.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Request body application/json, required, ResetPasswordRequest
Fields
| Name | Type | Description |
|---|---|---|
token required | string | |
password required | string |
Responses
| Status | Body | Description |
|---|---|---|
200 | SecurityStatus | Password reset |
400 | Problem | The request was not valid |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | A field is missing or not valid |
429 | Problem | Too many attempts. Retry-After says when to try again |
200 response fields
| Name | Type | Description |
|---|---|---|
status required | string |
Which sign-in methods the server offers
get/auth/providersPermalink to Which sign-in methods the server offers
- Dashboard session only, no API key
No sign-in. The dashboard hides the Google and GitHub buttons when the server has no client credentials for them.
Responses
| Status | Body | Description |
|---|---|---|
200 | AuthProviders | Methods |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
200 response fields
| Name | Type | Description |
|---|---|---|
password required | boolean | |
google required | boolean | |
github required | boolean | |
sso required | boolean | |
two_factor_methods required | object | |
two_factor_methods.passkey required | boolean | |
two_factor_methods.totp required | boolean | |
two_factor_methods.email required | boolean |
Sign in with an email and a password
post/auth/sign-inPermalink to Sign in with an email and a password
- Dashboard session only, no API key
A wrong password and an unknown address get the same 401. Five wrong passwords for one address, or thirty from one IP address, lock it with a wait that doubles. When the account has two-factor authentication on, the answer is two_factor_required and the session starts after /auth/two-factor/verify. A company that requires single sign-on refuses its domain with the sso_required code, except for its owner and its exceptions list. When the browser holds a pending Google or GitHub link, a finished sign-in settles it and provider_link says how: linked for a sign-in to the same account, other_account or expired otherwise.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Request body application/json, required, PasswordSignInRequest
Fields
| Name | Type | Description |
|---|---|---|
email required | string (email) | |
password required | string |
Responses
| Status | Body | Description |
|---|---|---|
200 | SignInResult | Signed in, or a second step is needed |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | Not signed in, or the answer was not right |
403 | Problem | Refused |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | A field is missing or not valid |
429 | Problem | Too many attempts. Retry-After says when to try again |
200 response fields
| Name | Type | Description |
|---|---|---|
status required | string | One of: signed_in, two_factor_required, email_verification_required. |
two_factor_methods required | array of string | With two_factor_required: the ways this person can answer. |
provider_link | object | Set with signed_in when this browser held a pending provider link. |
provider_link.provider required | string | One of: google, github. |
provider_link.status required | string | One of: linked, expired, other_account. |
Create an account with a password
post/auth/sign-upPermalink to Create an account with a password
- Dashboard session only, no API key
Always answers 202, whether or not the address already has an account (the owner of an existing address gets an email instead). The account starts after the emailed link is opened and confirmed with /auth/verification/confirm. The answer sets a cookie that ties the sign-up to this browser: only that browser is signed in by the confirmation, and from any other the person chooses a new password. Passwords are 12 to 128 characters and are checked against a local list of common passwords.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Request body application/json, required, SignUpRequest
Fields
| Name | Type | Description |
|---|---|---|
email required | string (email) | |
password required | string | |
name required | string | |
callback_path | string | |
marketing_consent | boolean | The person ticked "Send me product news and tips by email." Off by default. Only a person who ticked it is ever sent product news. Default: false. |
Responses
| Status | Body | Description |
|---|---|---|
202 | SignUpResult | Verification email sent |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | A field is missing or not valid |
429 | Problem | Too many attempts. Retry-After says when to try again |
202 response fields
| Name | Type | Description |
|---|---|---|
status required | string |
Find out whether an email domain signs in through a company
post/auth/sso/discoverPermalink to Find out whether an email domain signs in through a company
- Dashboard session only, no API key
Send an email. The answer says whether its domain signs in through a company's single sign-on (sso), gives the company name, and sets enforced to true when that company requires SSO, so a password is refused for the address. Only a company whose domain is verified is named. The sign-in page calls it before anyone is signed in, so it takes no session and no API key, and it is rate limited by IP address.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Request body application/json, required, SsoDiscoverRequest
Fields
| Name | Type | Description |
|---|---|---|
email required | string (email) |
Responses
| Status | Body | Description |
|---|---|---|
200 | SsoDiscoverResult | Result |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | Too many attempts. Retry-After says when to try again |
200 response fields
| Name | Type | Description |
|---|---|---|
sso required | boolean | |
company_name required | string or null | |
enforced required | boolean | True when the company requires SSO, so a password is refused for this address. |
Start company single sign-on
post/auth/sso/startPermalink to Start company single sign-on
- Dashboard session only, no API key
Answers the identity provider's address with a signed-in-request id the response must answer.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Request body application/json, required, SsoStartRequest
Fields
| Name | Type | Description |
|---|---|---|
email required | string (email) | |
callback_path | string | |
error_path | string |
Responses
| Status | Body | Description |
|---|---|---|
200 | RedirectUrl | Identity provider address |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
404 | Problem | Not found |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | Too many attempts. Retry-After says when to try again |
200 response fields
| Name | Type | Description |
|---|---|---|
url required | string (uri) |
Email a sign-in code
post/auth/two-factor/email/sendPermalink to Email a sign-in code
- Dashboard session only, no API key
Needs the pending sign-in cookie. Six digits, valid for 10 minutes, five tries. A new code can be sent every 30 seconds. When the mail provider refuses the message the answer is 503 with the code email_send_failed, and a new code can be asked for at once.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Responses
| Status | Body | Description |
|---|---|---|
200 | SendEmailCodeResult | Sent |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | Not signed in, or the answer was not right |
403 | Problem | Refused |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | Too many attempts. Retry-After says when to try again |
503 | Problem | Not set up on this server |
200 response fields
| Name | Type | Description |
|---|---|---|
status required | string | |
resend_after_seconds required | integer | Seconds before another code can be sent. Range: 0 to any. |
Answer the second step of sign-in
post/auth/two-factor/verifyPermalink to Answer the second step of sign-in
- Dashboard session only, no API key
Needs the pending sign-in cookie from a correct password. method is totp (authenticator app), email (emailed code), or recovery (a single use recovery code). With remember_device the browser skips this step for 30 days.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Request body application/json, required, VerifyTwoFactorRequest
Fields
| Name | Type | Description |
|---|---|---|
method required | string | One of: totp, email, recovery. |
code required | string | |
remember_device | boolean | Default: false. |
Responses
| Status | Body | Description |
|---|---|---|
200 | SignInResult | Signed in |
400 | Problem | The request was not valid |
401 | Problem | Not signed in, or the answer was not right |
403 | Problem | Refused |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | Too many attempts. Retry-After says when to try again |
200 response fields
| Name | Type | Description |
|---|---|---|
status required | string | One of: signed_in, two_factor_required, email_verification_required. |
two_factor_methods required | array of string | With two_factor_required: the ways this person can answer. |
provider_link | object | Set with signed_in when this browser held a pending provider link. |
provider_link.provider required | string | One of: google, github. |
provider_link.status required | string | One of: linked, expired, other_account. |
Confirm an email address with the emailed link
post/auth/verification/confirmPermalink to Confirm an email address with the emailed link
- Dashboard session only, no API key
Takes the token from the emailed link, which opens the dashboard page /verify. Opening the link changes nothing: this call confirms the address. From the browser that signed up (it holds the cookie the sign-up set) the answer is signed_in with a session. From any other browser the address is confirmed, the password stored at sign-up is removed, and the answer is password_required with a reset_token for /auth/password/reset, so whoever made the sign-up cannot use the password they chose. A second use answers already_confirmed and changes nothing. A token that is not valid or has expired answers 400 with the invalid_verification_link code. Throttled per address.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Request body application/json, required, ConfirmVerificationRequest
Fields
| Name | Type | Description |
|---|---|---|
token required | string |
Responses
| Status | Body | Description |
|---|---|---|
200 | ConfirmVerificationResult | Confirmed, or confirmed before |
400 | Problem | The request was not valid |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | A field is missing or not valid |
429 | Problem | Too many attempts. Retry-After says when to try again |
200 response fields
| Name | Type | Description |
|---|---|---|
status required | string | One of: signed_in, password_required, confirmed, already_confirmed. |
reset_token required | string or null | Set only with password_required. |
Send the verification email again
post/auth/verification/resendPermalink to Send the verification email again
- Dashboard session only, no API key
Always answers 202. Throttled per address.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Request body application/json, required, ResendVerificationRequest
Fields
| Name | Type | Description |
|---|---|---|
email required | string (email) | |
callback_path | string |
Responses
| Status | Body | Description |
|---|---|---|
202 | SignUpResult | Accepted |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
202 response fields
| Name | Type | Description |
|---|---|---|
status required | string |