Register Defender application
Process Flow
Informed Defender follows the same flow as the Informed Consumer flow for registering applications and uploading associated files with the intent of receiving asynchronous callbacks containing Defender analysis.
Base URL
The table below shows the Base URL to be used with the endpoints mentioned in this guide.
Environment | Base URL |
---|---|
Staging: | https://api.staging.informediq-infra.com |
Production: | https://api.informediq.com |
Example Request
The first step is to register the application and associated applicant with Informed. The below code block shows an example request payload for the initial call to register an application. The following sections provide details on the key nodes of the request payload.
Full Example Application
{
"application_reference_id": "your_unique_application_id",
"application_date": "2021-05-09T09:11:38",
"application_type": "Application",
"application_status": "active",
"applicants": {
"applicant1": {
"first_name": "Jo",
"middle_name": null,
"last_name": "Boren",
"suffix": null,
"email": "jo.boren@gmail.com",
"phone": "9196201234",
"ssn": "681129638",
"date_of_birth": "1965-12-10",
"address_info": [
{
"address": {
"street_address": "8717 S 4th Ave",
"city": "Inglewood",
"state": "CA",
"zip": "90305"
},
"is_current": true,
"start_date": "2020-10-01",
"end_date": null,
"residence_type": "Rent",
"monthly_housing_cost": 1000
}
],
"employment_info": [
{
"employment_type": "Employed",
"employer_name": "Envoy Air, Inc.",
"is_current": true,
"occupation": "Crew Member",
"income": {
"period": "Yearly",
"amount": 74500
},
"start_date": "2018-11-01",
"end_date": null,
"business_phone": "9196571475"
}
],
"additional_incomes": [
{
"source": "ChildSupport",
"income": {
"period": "Yearly",
"amount": 10000
}
}
]
}
},
"verifications": {},
"services": [
"extract",
"verify"
],
"webhook": "https://your.callback.com/here"
}
Note that the verifications
property has an empty object for its value. This is because the single Defender misrepresentation
verification will be automatically processed when Defender is enabled for your workflow.
While it is always beneficial in the long run to provide as much information as possible in your application registration, you may have a use case in which you do not have all of the information shown in the example above. The below snippet of JSON shows the minimum payload that can be used to register a Defender application.
Please note that this payload should only be used if you are solely using the Defender service.
Minimum Defender registration payload
{
"application_reference_id": "your-unique-app-id",
"application_date": "2021-04-17T23:37:36",
"application_type": "Application",
"application_status": "active",
"applicants": {
"applicant1": {}
},
"verifications": {},
"services": [
"verify"
],
"webhook": "https://your.endpoint.com",
"application_options": {
"auto_register_from_doc": true
}
}
Request Components
For the endpoint, application-level and applicant-level registration information, the Defender service follows the Informed Consumer documentation.
Verifications
The verifications object will be left empty if you are solely using Defender.
{
...
"verifications": {}
...
}
Services
Because Defender is a verification-based service, the only applicable services to include in your request are the extract
and verify
services. The verify
service is required, but note that the extract
service is purely optional.
{
...
"services": [
"extract", // optional
"verify"
],
...
}
Callback Url
A webhook must be provided to receive the asynchronous responses containing classified documents with extracted data and analysis. Authentication details will need to be shared with Informed to ensure secure transmission at time of setup. To further safeguard data, Informed will only POST back to your webhook using the HTTPS protocol to ensure encryption in transit. More technical details about your callback endpoint can be found at the link in this paragraph above.
Please note that you are not forced to provide a webhook URL. If you send an empty string for the value of the webhook
property, you will not receive any asynchronous, programmatic callbacks with data.
{
...
"webhook": "https://your.callback.com/here"
}
Synchronous Response
- 2xx response
- Non-2xx responses
A successful API request resulting in an application registration will return the following synchronous response to indicate that the application was submitted to Informed. Make sure that you record the application_id
value, as you will need that in subsequent steps, such as associating documents with the application or updating the applicant info.
{
"application_id": "unique-Informed-app-id",
"status": "Ready"
}
If there was an error registering the application, you will receive a non-2xx response status and an error message. For example, if you try to register an application using an application_reference_id
that you used previously, you would see a response with an error message like the one shown below.
Status | Error Message |
---|---|
400 | Application already exists This would occur if the application_reference_id used in the POST call URL already existed in the system. |
400 | Invalid services requested, please contact support for more information. Your account will be explicitly configured for the services that you are allowed to specify in your request. |
500 | Something went wrong :( Indicates some other internal failure occurred. You should contact your support representative. |
Updating Application Info
The update payload will look the same as the initial application registration request payload, but with the modified values/additions. And, you will need to send this as a PUT
call to a slightly different endpoint because the application already exists.
Note that this is a PUT
and not a PATCH
call, which means that you must resend the entire original payload but with any applicable modifications.
The one thing you cannot update with this PUT
call for an existing application is the application_reference_id
. That value must stay the same for the life of the application.
You will append the following endpoint to the base URL to update the application:
/v1/consumer/applications/<unique-Informed-app-id>
So to put it all together, you will make a PUT
call to the following URL with your request payload:
https://api.staging.informediq-infra.com/v1/consumer/applications/<unique-Informed-app-id>
The synchronous response will contain the same unique-Informed-app-id
that you received in the synchronous response to the original application registration.
- 2xx response
- Non-2xx responses
{
"application_id": "unique-Informed-app-id",
"status": "Ready"
}
Status | Error Message |
---|---|
400 | Invalid services requested, please contact support for more information. Your account will be explicitly configured for the services that you are allowed to specify in your request. |
400 | Application does not exist This would occur if the application_id used in the PUT call URL did not exist in the system. |
400 | ApplicationId does not match application_reference_id You cannot change the application_reference_id once it has been associated with the Informed-supplied application_id . |
500 | Something went wrong :( Indicates some other internal failure occurred. You should contact your support representative. |