RiskPilot API
RiskPilot customer API

The account: name, email, package, sign-in methods

GET
/api/v1/customer/account

The account: name, email, package, sign-in methods › Responses

OK

name
​string · required
packageId
​string · required
hasPassword
​boolean · required
​Identity[] · required

Connected provider sign-ins.

providers
​string[] · required

Providers configured on this server.

Enum values:
google
github
microsoft
apple
email
​string | null
emailVerified
​boolean

A short integration hint for your package (the web app's API page)

GET
/api/v1/customer/api-docs

A short integration hint for your package (the web app's API page) › Responses

OK

method
​string
path
​string
auth
​string
classes
​string[]

Disconnect a provider sign-in

DELETE
/api/v1/customer/identities/{provider}

Disconnect a provider sign-in › path Parameters

provider
​string · required

google, github, microsoft or apple (when configured).

Disconnect a provider sign-in › Responses

OK

removed
​boolean · required

Who is signed in: holder or member, role, 2FA

GET
/api/v1/customer/me

Who is signed in: holder or member, role, 2FA › Responses

OK

customerId
​string · required
holder
​boolean · required
role
​string · enum · required
Enum values:
owner
billing
member
twoFactor
​boolean · required
memberId
​string | null

Null for the account holder.

email
​string | null
name
​string
twoFactorRequired
​boolean

The package requires two-factor sign-in.


Team member: change your own password

POST
/api/v1/customer/me/password

Team member: change your own password › Request Body

password
​string · minLength: 10 · maxLength: 200 · required

10 to 200 characters.

currentPassword
​string · required

Team member: change your own password › Responses

OK

changed
​boolean · required

Finish connecting a provider sign-in

POST
/api/v1/customer/oauth/link/confirm

Finish connecting a provider sign-in › Request Body

code
​string · required

The link_code the flow returned with.

Finish connecting a provider sign-in › Responses

OK

linked
​string · required

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.

Connect a provider sign-in: a one-time URL to open › path Parameters

provider
​string · required

google, github, microsoft or apple (when configured).

Connect a provider sign-in: a one-time URL to open › Request Body optional

redirectUri
​string

Native apps: a URI from RP_NATIVE_REDIRECT_URIS.

state
​string · maxLength: 500

Connect a provider sign-in: a one-time URL to open › Responses

OK

url
​string · required

Your package and the others you could move to

GET
/api/v1/customer/package

Your package and the others you could move to › Responses

OK

current
​string · required
​PackageOption[] · 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

password
​string · minLength: 10 · maxLength: 200 · required

10 to 200 characters.

currentPassword
​string
email
​string

Only 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

hasPassword
​boolean · required
verificationSent
​boolean · required
email
​string | null

Ask for another package (recorded for the operator; Stripe-billed plans change in the portal)

POST
/api/v1/customer/upgrade

Ask for another package (recorded for the operator; Stripe-billed plans change in the portal) › Request Body

packageId
​string · required

Ask for another package (recorded for the operator; Stripe-billed plans change in the portal) › Responses

OK

from
​string · required
packageId
​string · required