RiskPilot customer API
string · requiredstring · requiredboolean · requiredstring[] · requiredstring | nullboolean
string · requiredboolean · requiredstring · enum · requiredboolean · requiredstring | nullstring | nullstringboolean
string · requiredstringstring · maxLength: 500string · required
string · required
string · minLength: 10 · maxLength: 200 · requiredstringstringboolean · requiredboolean · requiredstring | null
Account
The account: name, email, package, sign-in methods
GET
/api/v1/customer/account
The account: name, email, package, sign-in methods › Responses
OK
namepackageIdhasPasswordIdentity[] · required
Connected provider sign-ins.
providersProviders configured on this server.
Enum values:
google
github
microsoft
apple
emailemailVerifiedWho is signed in: holder or member, role, 2FA
GET
/api/v1/customer/me
Who is signed in: holder or member, role, 2FA › Responses
OK
customerIdholderroleEnum values:
owner
billing
member
twoFactormemberIdNull for the account holder.
emailnametwoFactorRequiredThe package requires two-factor sign-in.
Connect a provider sign-in: a one-time URL to open
POST
/api/v1/customer/oauth/{provider}/link
Open url in a browser. The finished flow returns to the web app's /c/account?link_code=…, or with redirectUri (a registered native redirect) to the app with ?link_code=…&state=…; confirm with POST /api/v1/customer/oauth/link/confirm from the same session.
path Parameters
providergoogle, github, microsoft or apple (when configured).
Connect a provider sign-in: a one-time URL to open › Request Body optional
redirectUriNative apps: a URI from RP_NATIVE_REDIRECT_URIS.
stateConnect a provider sign-in: a one-time URL to open › Responses
OK
urlYour package and the others you could move to
GET
/api/v1/customer/package
Your package and the others you could move to › Responses
OK
currentPackageOption[] · required
Account holder: set or change the password (and the sign-in email of an operator-made account)
POST
/api/v1/customer/password
Changing needs currentPassword. Every other session ends. A live key may choose the first password only on an account without an email or provider sign-in (403 session_required otherwise).
Account holder: set or change the password (and the sign-in email of an operator-made account) › Request Body
password10 to 200 characters.
currentPasswordemailOnly when the account has no email yet.
Account holder: set or change the password (and the sign-in email of an operator-made account) › Responses
OK
hasPasswordverificationSentemail