Clients
Create clients, confirm their vaults, and suspend or permit access.
Using the BePrepared API, you are able to create secure digital legacy vaults quickly and easily.
A new vault is automatically generated for you each time you create a client, and connected with that client record.
The Client Object
The client object has the following attributes
Creating a New Client
Creating a new client is the most fundamental function you will perform with our API.
Depending on your business case, the most important question you must answer is if you'll be automatically approving each new vault request (for example, if you create the vault after a checkout flow), or if some condition needs to be met before approval (for example, if you're running a waitlist).
Code Example
Request Details
Create a client and loads a vault
POST
YOUR_API_URLv1/clients
Query Parameters
autoApprove
Boolean
Determines if you want to accept this new vault creation request or not. Either true or false. Defaults to false
Headers
Authorization*
String
Bearer <API_KEY>
Request Body
firstName*
String
First name of client.
lastName*
String
Last name of client
email*
Email address of client
dateOfBirth
Object
Object containing date of birth of client
dateOfBirth.day
Number
Day of the month client was born
dateOfBirth.month
Number
Month of the year client was born
dateOfBirth.Year
Number
Year that the client was born
Confirming Client Creation
Depending on your implimentation, you'll either be automatically confirming all clients, or approving clients before their vaults are created. This route is to be used if autoApprove param is false in the client creation route.
Code Example
Request Details
Transfers a client from draft status to active
POST
YOUR_API_URL/v1/clients/:clientId/confirm
Path Parameters
clientId*
String
ID associated with the client record
Headers
Authorization
String
Bearer <API_KEY>
Suspending Client Access
Sometimes you might wish to suspend client access, such as in the case of the ending of a free trial, or due to non-payment.
You can use the suspend route to temporarily prevent client access to the vault in these circumstances.
Code Example
Request Details
Suspends a clients access to their vault.
PATCH
YOUR_API_URL/v1/clients/:clientId/access/suspended
This can only be completed by the clientโs main provider.
Path Parameters
clientId*
String
ID associated with the client record.
Headers
Authorization*
String
Bearer <API_KEY>
Restoring Client Access
The purpose of this route is to restore access to a clients vault if they proceed to a paid plan post free trial, or account invoices are no longer overdue.
Code Example
Request Details
Removes clientโs suspended, thereby granting them access to their vault.
PATCH
YOUR_API_IRL/v1/clients/:clientId/access/granted
This can only be completed by a clientโs main provider.
Path Parameters
clientId*
String
ID associated with the client record
Headers
Authorization*
String
Bearer <API_KEY>
Last updated