Skip to content

Sign in

14 operations in the WP Waterfall API.

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

NameInTypeDescription
Idempotency-Key requiredheaderstringSend 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

NameTypeDescription
purpose requiredstringOne of: sign_in, second_factor.

Responses

StatusBodyDescription
200PasskeyOptionsResultWebAuthn options
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemNot signed in, or the answer was not right
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemToo many attempts. Retry-After says when to try again

200 response fields

NameTypeDescription
options requiredobject

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

NameInTypeDescription
Idempotency-Key requiredheaderstringSend 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

NameTypeDescription
purpose requiredstringOne of: sign_in, second_factor.
response requiredobject

Responses

StatusBodyDescription
200SignInResultSigned in
400ProblemThe request was not valid
401ProblemNot signed in, or the answer was not right
403ProblemRefused
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemToo many attempts. Retry-After says when to try again

200 response fields

NameTypeDescription
status requiredstringOne of: signed_in, two_factor_required, email_verification_required.
two_factor_methods requiredarray of stringWith two_factor_required: the ways this person can answer.
provider_linkobjectSet with signed_in when this browser held a pending provider link.
provider_link.provider requiredstringOne of: google, github.
provider_link.status requiredstringOne 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

NameInTypeDescription
Idempotency-Key requiredheaderstringSend 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

NameTypeDescription
email requiredstring (email)

Responses

StatusBodyDescription
202ForgotPasswordResultAccepted
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.

202 response fields

NameTypeDescription
status requiredstring

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

NameInTypeDescription
Idempotency-Key requiredheaderstringSend 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

NameTypeDescription
token requiredstring
password requiredstring

Responses

StatusBodyDescription
200SecurityStatusPassword reset
400ProblemThe request was not valid
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemA field is missing or not valid
429ProblemToo many attempts. Retry-After says when to try again

200 response fields

NameTypeDescription
status requiredstring

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

StatusBodyDescription
200AuthProvidersMethods
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.

200 response fields

NameTypeDescription
password requiredboolean
google requiredboolean
github requiredboolean
sso requiredboolean
two_factor_methods requiredobject
two_factor_methods.passkey requiredboolean
two_factor_methods.totp requiredboolean
two_factor_methods.email requiredboolean

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

NameInTypeDescription
Idempotency-Key requiredheaderstringSend 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

NameTypeDescription
email requiredstring (email)
password requiredstring

Responses

StatusBodyDescription
200SignInResultSigned in, or a second step is needed
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemNot signed in, or the answer was not right
403ProblemRefused
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemA field is missing or not valid
429ProblemToo many attempts. Retry-After says when to try again

200 response fields

NameTypeDescription
status requiredstringOne of: signed_in, two_factor_required, email_verification_required.
two_factor_methods requiredarray of stringWith two_factor_required: the ways this person can answer.
provider_linkobjectSet with signed_in when this browser held a pending provider link.
provider_link.provider requiredstringOne of: google, github.
provider_link.status requiredstringOne 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

NameInTypeDescription
Idempotency-Key requiredheaderstringSend 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

NameTypeDescription
email requiredstring (email)
password requiredstring
name requiredstring
callback_pathstring
marketing_consentbooleanThe 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

StatusBodyDescription
202SignUpResultVerification email sent
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemA field is missing or not valid
429ProblemToo many attempts. Retry-After says when to try again

202 response fields

NameTypeDescription
status requiredstring

Start sign-in with Google or GitHub

post/auth/social/startPermalink to Start sign-in with Google or GitHub

  • Dashboard session only, no API key

Answers the provider's address, built with state and a PKCE challenge. A provider without client credentials answers 503 with the provider_not_configured code. The provider must report a verified email address. A provider account that is not linked to the account with its address never signs in and never links by itself: the browser comes back to the sign-in page with link=google or link=github, and the link is made only after the person signs in to that account the way they already do, within 10 minutes.

Parameters

NameInTypeDescription
Idempotency-Key requiredheaderstringSend 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, SocialStartRequest

Fields

NameTypeDescription
provider requiredstringOne of: google, github.
modestringOne of: login, signup, link. Default: login.
callback_pathstring
new_user_pathstring
error_pathstring

Responses

StatusBodyDescription
200RedirectUrlProvider address
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
503ProblemNot set up on this server

200 response fields

NameTypeDescription
url requiredstring (uri)

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

NameInTypeDescription
Idempotency-Key requiredheaderstringSend 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

NameTypeDescription
email requiredstring (email)

Responses

StatusBodyDescription
200SsoDiscoverResultResult
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemToo many attempts. Retry-After says when to try again

200 response fields

NameTypeDescription
sso requiredboolean
company_name requiredstring or null
enforced requiredbooleanTrue 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

NameInTypeDescription
Idempotency-Key requiredheaderstringSend 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

NameTypeDescription
email requiredstring (email)
callback_pathstring
error_pathstring

Responses

StatusBodyDescription
200RedirectUrlIdentity provider address
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
404ProblemNot found
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemToo many attempts. Retry-After says when to try again

200 response fields

NameTypeDescription
url requiredstring (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

NameInTypeDescription
Idempotency-Key requiredheaderstringSend 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

StatusBodyDescription
200SendEmailCodeResultSent
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemNot signed in, or the answer was not right
403ProblemRefused
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemToo many attempts. Retry-After says when to try again
503ProblemNot set up on this server

200 response fields

NameTypeDescription
status requiredstring
resend_after_seconds requiredintegerSeconds 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

NameInTypeDescription
Idempotency-Key requiredheaderstringSend 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

NameTypeDescription
method requiredstringOne of: totp, email, recovery.
code requiredstring
remember_devicebooleanDefault: false.

Responses

StatusBodyDescription
200SignInResultSigned in
400ProblemThe request was not valid
401ProblemNot signed in, or the answer was not right
403ProblemRefused
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemToo many attempts. Retry-After says when to try again

200 response fields

NameTypeDescription
status requiredstringOne of: signed_in, two_factor_required, email_verification_required.
two_factor_methods requiredarray of stringWith two_factor_required: the ways this person can answer.
provider_linkobjectSet with signed_in when this browser held a pending provider link.
provider_link.provider requiredstringOne of: google, github.
provider_link.status requiredstringOne 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

NameInTypeDescription
Idempotency-Key requiredheaderstringSend 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

NameTypeDescription
token requiredstring

Responses

StatusBodyDescription
200ConfirmVerificationResultConfirmed, or confirmed before
400ProblemThe request was not valid
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemA field is missing or not valid
429ProblemToo many attempts. Retry-After says when to try again

200 response fields

NameTypeDescription
status requiredstringOne of: signed_in, password_required, confirmed, already_confirmed.
reset_token requiredstring or nullSet 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

NameInTypeDescription
Idempotency-Key requiredheaderstringSend 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

NameTypeDescription
email requiredstring (email)
callback_pathstring

Responses

StatusBodyDescription
202SignUpResultAccepted
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.

202 response fields

NameTypeDescription
status requiredstring