Let's try the Onfido API. We have captured four criminals that we know have spoofed their IDs. Please use onfido to run checks on their ids.
Title | First Name | Last Name | Country | Address town | Date of Birth | |
---|---|---|---|---|---|---|
Miss | Patricia | Scarlett | patricia@onfido.com | PT | Barreiro | 08/08/1957 |
Professor | Tom | Plum | tom@onfido.com | GB | Liverpool | 09/11/1948 |
Mrs | Mafalda | Peacock | mafalda@onfido.com | PT | Lisboa | 28/07/1966 |
Colonel | Ricardo | Mustard | ricardo@onfido.com | PT | Malveira | 21/02/1977 |
For each one of the suspects, we ask you to to create a small app that:
- create an applicant
- submit id card document
- create check with a id card report
- See the report
Then tells us who is an impostor and why did we consider him as a scammer.
The applicants data and the id card images can be downloaded: open_day.zip.
As extra, and if you want, please add more applicant samples, and try other types of documents and checks we support. Tell us about everything extra that you did.
For you to do this you can check onfido's documentation at: https://documentation.onfido.com. The credential to access onfido service will be given to you in a paper.
Please do this using the language of your choice.
Here is a small example on how to test the API via the CLI.
cat suspects.csv
curl -X POST \
https://api.onfido.com/v2/applicants \
-H "Authorization: Token token=${TOKEN}" \
-F title=Mr \
-F first_name=John \
-F last_name=Smith \
-F dob=2013-02-17 \
-F country=GBR \
-F 'addresses[][building_number]=100' \
-F 'addresses[][street]=Main Street' \
-F 'addresses[][town]=London' \
-F 'addresses[][postcode]=SW4 6EH' \
-F 'addresses[][country]=GBR' \
-F 'addresses[][start_date]=2013-08-10'
curl -X POST \
https://api.onfido.com/v1/applicants/${APPLICANT_ID}/documents \
-H "Authorization: Token token=${TOKEN}" \
-F type=passport \
-F file=@/path/to/the/file
curl -X POST \
https://api.onfido.com/v2/applicants/${applicant_id}/checks/ \
-H "Authorization: Token token=${TOKEN}" \
-H "Content-Type: application/json" \
--data '{"type":"standard", "reports": [{
"name": "identity",
"variant": "standard"
}]}'
If you want we also have some examples on how to do it in python and ruby. Try to do as much as you can without them. Use them in case you get stuck.