For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
## POST Business User
`/business/user` endpoint allows you to operate on the Business user entity.
In order to pass the payload of a User to Flagright and verify the User, you will need to call this endpoint with the User payload. Not all fields are mandatory, you will only need to pass in the fields that you have and are relevant for your compliance setup.
### Payload
Each business user needs three mandatory fields:
* `userId` - Unique identifier for the user
* `legalEntity` - Details of the business legal entity (CompanyGeneralDetails, FinancialDetails etc) - only `legalName`in `CompanyGeneralDetails` is mandatory
* `createdTimestamp` - UNIX timestamp in *milliseconds* for when the User is created in your system
POST Business User
/business/user endpoint allows you to operate on the Business user entity.
In order to pass the payload of a User to Flagright and verify the User, you will need to call this endpoint with the User payload. Not all fields are mandatory, you will only need to pass in the fields that you have and are relevant for your compliance setup.
Payload
Each business user needs three mandatory fields:
userId - Unique identifier for the user
legalEntity - Details of the business legal entity (CompanyGeneralDetails, FinancialDetails etc) - only legalNamein CompanyGeneralDetails is mandatory
createdTimestamp - UNIX timestamp in milliseconds for when the User is created in your system
Authentication
x-api-keystring
API keys are used to authenticate the requests.
Query parameters
lockCraRiskLevelenumOptional
Boolean string whether Flagright should lock the CRA risk level for the user.
Allowed values:
lockKycRiskLevelenumOptional
Boolean string whether Flagright should lock the KYC risk level for the user.
Allowed values:
validateUserIdenumOptional
Boolean string whether Flagright should validate the userId