Runs an evaluation
Changed onGiven a workflow specified by the header, the API will run an evaluation with the provided payload. Alloy's API is dynamic, and thus the input parameters vary depending on which services are run and how the workflow is configured.
Request
- Base URLhttps://sandbox.alloy.co/v1
- Auth
- OAuth 2Client credentialsToken URL/oauth/bearer
- or HTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Basic authorization header per the OAuth Client Authorization Header standard.
The format is Basic <auth_string>, where <auth_string> is the base64 encoding of the string token:secret (check Authentication Guide for details).
If you have migrated to the new API Key Settings page and are using account-level API keys for authentication, this header is required to specify which workflow to use for the evaluation.
If you have not migrated yet, this header is optional, as the workflow will be determined by the Authorization header using workflow_token.
If running an additional evaluation for an existing entity - the existing entity token can be provided to connect the new evaluation to the entity.
A string to identify the entity created by the evaluation in your system.
A token of an entity to be used as a parent entity.
For transactions workflows, specifies whether the entity associated with the evaluation is a business or person entity. Defaults to person.
Optional boolean value, required to be true for using counterparty sanction screening in a transaction workflow.
Optional boolean value, required to be true for using source entity sanction screening in a transaction workflow.
Instead of using the configured business and person identifier (for example, the last name DenyFraud), this header references the corresponding sandbox profile/persona using its sandbox profile token, found on the Sandbox Profile page.
Request body
Example request
{
"source": {
"external_account_id": "test-account-001",
"account_class": "deposit",
"entities": [
{
"external_entity_id": "entity-01",
"account_holder_type": "primary"
}
],
"account_snapshot": {
"timestamp": "2022-03-21T21:50:07.623Z",
"details": {
"status": "Active"
}
}
},
"destination": {
"external_account_id": "test-account-001",
"account_class": "deposit",
"entities": [
{
"external_entity_id": "entity-01",
"account_holder_type": "primary"
}
],
"account_snapshot": {
"timestamp": "2022-03-21T21:50:07.623Z",
"details": {
"status": "Active"
}
}
}
}Response
Evaluation missing required inputs
Example response
{
"required": [
{
"key": "name_first",
"type": "string",
"description": "First name",
"regex": "^[^d]*$"
}
],
"optional": [
{
"key": "email_address",
"type": "string",
"description": "Email address"
}
]
}Changes
- breaking
removed
subschema #2: Transaction Evaluation Bodyfrom the request bodyoneOflist - info
added to the request body
oneOflist
- breaking