POST: Onboard a Person
The /evaluations
endpoint creates users and runs any KYC checks selected for your onboarding flow. Once the individual is resolved and there is no need for further information, the response will return all matching attributes and information from the services run. If additional information is required, the response body will detail needed data and formatting.
Create a POST request with the required information.
HTTP Request: POST https://sandbox.alloy.co/v1/evaluations
See below for sample request and response body, as well as the schema.
Sample Request Body:
{
"phone_number": "18042562188",
"name_first": "John",
"name_last": "Doe",
"email_address": "[email protected]",
"birth_date": "1985-01-23",
"address_line_1": "1717 E Test St",
"address_city": "Richmond",
"address_state": "VA",
"document_ssn": "123456789",
"address_postal_code": "23220",
"address_country_code": "US",
"social_twitter": "dog_rates"
}
Sample Successful Response Body:
{
"status_code": 201,
"error": null,
"timestamp": 1497309594913,
"evaluation_token": "S-BNTwVDLrlRvHbKVhRa8X",
"entity_token": "P-2WU9staJ5pVCQ6xgn3KV",
"application_token": "token",
"application_version_id": 14,
"summary": {
"result": "success",
"score": 0.99,
"tags": ["Address Match", "Phone Match"],
"outcome": "Approved",
"services": {
"Emailage": "executed",
"Socure": "executed",
"White Pages Pro": "executed"
}
},
"supplied": {
"phone_number": "18042562188",
"name_first": "John",
"name_last": "Doe",
"email_address": "[email protected]",
"birth_date": "1985-01-23",
"address_line_1": "1717 E Test St",
"address_city": "Richmond",
"address_state": "VA",
"document_ssn": "123456789",
"address_postal_code": "23220",
"address_country_code": "US",
"social_twitter": "dog_rates"
},
"formatted": {
"phone_number": "+18042562188",
"name_first": "John",
"name_last": "Doe",
"email_address": "[email protected]",
"birth_date": "1985-01-23",
"address_line_1": "1717 E Test St",
"address_city": "Richmond",
"address_state": "VA",
"document_ssn": "123456789",
"address_postal_code": "23220",
"address_country_code": "US",
"social_twitter": "dog_rates"
},
"matching": {
"name": {
"score": 0.99,
"matched": ["Emailage", "Socure"],
"unmatched": []
},
"phone": {
"score": 1,
"matched": ["White Pages Pro", "Socure"],
"unmatched": []
},
"address": {
"score": 1,
"matched": ["White Pages Pro", "Socure"],
"unmatched": []
},
"email": {
"score": 0.99,
"matched": ["White Pages Pro", "Socure"],
"unmatched": []
},
"ssn": {
"score": 0.99,
"matched": ["Socure"],
"unmatched": []
},
"dob": {
"score": 0.99,
"matched": ["Socure"],
"unmatched": []
}
},
"diligence": {
"watchlists": {
"lists": ["BES", "CFTC", "DTC", "EUDT", "FBI", "FCEN", "FAR", "IMW", "OFAC", "OCC", "OSFI",
"PEP", "SDT", "UNNT", "BIS", "WBIF", "Socure Watchlists Tier 1"
],
"matches": []
},
"fraud": {
"score": 0.02,
"flags": []
},
"financial": null,
"identity_questions": null
},
"related_data": {
"social": [{
"type": "Twitter",
"url": "https://twitter.com/blankslateio",
"id": "blankslateio"
}, {
"type": "Klout",
"url": "http://klout.com/blankslateio",
"id": "blankslateio"
}, {
"type": "Twitter",
"url": "https://twitter.com/dog_rates",
"id": "dog_rates"
}]
},
"raw_responses": {
"Emailage": [ ... ],
"White Pages Pro": [ ... ],
"Socure": [ ... ]
},
"formatted_responses": {
"Emailage": { ... },
"White Pages Pro": { ... },
"Socure": { ... }
},
"audit_archive": null
}
More information needed:
{
"evaluation_token": "S-eJ38yUNDqcMxKwwdxbya",
"error": null,
"timestamp": 1475258667031,
"entity_token": "P-Hp6QxEGwNg6sgYNuXdqF",
"application_token": "token",
"application_version_id": 11,
"required": [
{
"key": "answers",
"type": "object",
"description": "Object containing answers to out of wallet question prompts.",
"template": {
"answers": [
{
"question_id": 1,
"answer_id": 0
},
{
"question_id": 2,
"answer_id": 0
},
{
"question_id": 3,
"answer_id": 0
},
{
"question_id": 4,
"answer_id": 0
},
{
"question_id": 5,
"answer_id": 0
}
]
}
}
],
"optional": [],
"prompts": {
"answers": {
"questions": [
{
"id": 1,
"question": "What state was your SSN issued in?",
"answers": [
{
"id": 1,
"answer": "Arkansas"
},
{
"id": 2,
"answer": "Alabama"
},
{
"id": 3,
"answer": "West Virginia"
},
{
"id": 4,
"answer": "Virginia"
},
{
"id": 5,
"answer": "None Of The Above"
}
]
},
<...>
]
}
}
}
Parameters:
Parameter | Example |
---|---|
name_first* | John |
name_last* | Doe |
phone_number | 18042562188 |
email_address | [email protected] |
address_line_1 | 41 Elizabeth Street |
address_line_2 | STE 500 |
address_city | New York |
address_state | NY |
address_postal_code | 10013 |
address_country_code | US |
birth_date | 1985-06-13 |
document_ssn | 123456789 |
- denotes required fields (varies based on data sources)
Response Schema:
Key | Description |
---|---|
status_code | HTTP status code indicating the state of the request |
error | Any error codes that have arisen from the request |
timestamp | Time of request |
evaluation_token | ID of the evaluation, must be passed back to PATCH /evaluations if necessary |
entity_token | ID of the entity you are investigating. This can be used to trace an entity across multiple requests |
application_token | Token of the application that was run |
application_version_id | Version of the application that was run |
summary | Overall summary object |
summary.result | Status of the request (success, partial, fail) |
summary.tags | Tags that were added to the request during processing (e.g. "Address Matched" or "Credit Pass") |
summary.outcome | Top-level onboarding decision. This can be configured in the "Set Outcome" tab within the application flow |
summary.score | Normalized score across multiple identity and risk dimensions for this request |
summary.services | Array of services that were run during this request |
supplied | Object showing each supplied attribute from the request body |
formatted | Formatted values for all supplied attributes (using USPS data, ISO formatting, etc. based on data type) |
matching | Object showing which data attribute inputs matched the results of services |
matching.[attr].score | Overall match score of this attribute across all services (between 0 and 1) |
supplied.[attr].matched | Services that matched the supplied data |
supplied.[attr].unmatched | Services that did not match the supplied data |
diligence | Object containing derived insights such as AML or fraud risk data |
diligence.watchlists | AML critical flags or warnings (such as OFAC or PEP) |
diligence.fraud | Any fraud-related critical flags or warnings |
diligence.financial | Data from credit or banking sources |
diligence.identity_questions | Information and scores from knowledge based authentication questions |
related_data | Extra data that may be useful but is not guaranteed to return |
raw_responses | Raw responses from each of the services that were run |
formatted_responses | Alloy-formatted responses from each of the services that were run. We try to structure these in a consistent way so it is easier to set rules on them than the raw service responses. |
audit_archive | A link to the full audit archive for this request. Access to audits is only available with extended due diligence integrations. |