Perform a lookup on the target, if its type is Lookup API.
https://api.faraday.ai/v1/targets/{target_id}/lookupUse either PII or a spatial aggregate to retrieve the payload of a Lookup API target.
See the Lookup API specification's quickstart for more details, including examples.
Authentication
Provide your API key in the Authorization header. You can find your API key in the Settings page of the dashboard.
Authorization: Bearer YOUR_TOKENpath parameters
The UUID of a target
Body
A lookup request
citystring"Anytown"cohabitant_referencestringA reference from a cohabitants entry in an earlier response from this target. Identifies that resident on its own: send it without other identifiers in the same identity set. References are temporary; see LookupCohabitant.reference.
"fcr_AgAbW3s9xQm1Lr0q7T2Yv8kZp4Hn6dJf5eUc0iOa9bGtRw3sXyEz1Kq"emailstring<email>"john_doe@test.com"email_hashstringLowercase hex-encoded SHA-256 hash of the lowercased email, with plus-addressing removed.
"ea7047caf2a60b1c20c6c13b12a47e4e08610736f2062b0ae67c266f7a9516c9"house_number_and_streetstring"123 Main Street"latitudestringlongitudestringperson_first_namestring"John"person_last_namestring"Doe"phonestringsearch_radiusstringstatestring"Farazona or FZ"identity_setsarray[object]Responses
200The lookup response
citystring"Anytown"cohabitant_referencestringA reference from a cohabitants entry in an earlier response from this target. Identifies that resident on its own: send it without other identifiers in the same identity set. References are temporary; see LookupCohabitant.reference.
"fcr_AgAbW3s9xQm1Lr0q7T2Yv8kZp4Hn6dJf5eUc0iOa9bGtRw3sXyEz1Kq"emailstring<email>"john_doe@test.com"email_hashstringLowercase hex-encoded SHA-256 hash of the lowercased email, with plus-addressing removed.
"ea7047caf2a60b1c20c6c13b12a47e4e08610736f2062b0ae67c266f7a9516c9"house_number_and_streetstring"123 Main Street"latitudestringlongitudestringperson_first_namestring"John"person_last_namestring"Doe"phonestringsearch_radiusstringstatestring"Farazona or FZ"cohabitantsarray[object]Other residents of the matched address, with each resident's payload. Returned on address matches, and on person matches when the account has the cohabitants feature. Never includes the matched person.
errorstring"Could not match an identity with the provided information"identity_providerstringThe identity provider used to obtain a match with the requested identity.
fig, match_boostidentity_setobjectThe matched person's identifiers: the ones you sent, plus any Faraday appended, such as a phone, email, or address you did not send. The same identifiers also appear at the top level of the response.
match_typestringThe type of match that was found for the lookup request. cohabitant_reference is returned only when the request matched on a cohabitant_reference.
address_full_name, email_full_name, phone_full_name, address_last_name, email_last_name, phone_last_name, address_only, email_only, postcode_only, phone_only, cohabitant_reference400The request was invalid.
A Faraday error code.
Some possible values include:
Generic HTTP Errors
- BAD_REQUEST: The request could not be validated.
- FORBIDDEN: You do not have permission to access the specified resour...
"ERROR_TYPE"BAD_REQUEST, FORBIDDEN, MAX_RESOURCES_REACHED, INTERNAL_SERVER_ERROR, INVALID_AUTHORIZATION, NOT_FOUND, MALFORMED_API_KEY, MISSING_API_KEY, EXPIRED_API_KEY, INVALID_API_KEY, ACCOUNT_SUSPENDED, ACCOUNT_DELETED, VALIDATION_FAILED, CONFLICT, QUOTA_EXCEEDEDA unique ID for this error. Please include this in bug reports.
"082f9513-901c-4308-8081-902a8fe22d7e"validationErrorsarray[object]JSON Schema validation errors, if any.
401No API key was supplied.
A Faraday error code.
Some possible values include:
Generic HTTP Errors
- BAD_REQUEST: The request could not be validated.
- FORBIDDEN: You do not have permission to access the specified resour...
"ERROR_TYPE"BAD_REQUEST, FORBIDDEN, MAX_RESOURCES_REACHED, INTERNAL_SERVER_ERROR, INVALID_AUTHORIZATION, NOT_FOUND, MALFORMED_API_KEY, MISSING_API_KEY, EXPIRED_API_KEY, INVALID_API_KEY, ACCOUNT_SUSPENDED, ACCOUNT_DELETED, VALIDATION_FAILED, CONFLICT, QUOTA_EXCEEDEDA unique ID for this error. Please include this in bug reports.
"082f9513-901c-4308-8081-902a8fe22d7e"validationErrorsarray[object]JSON Schema validation errors, if any.
403Access to this resource was forbidden.
A Faraday error code.
Some possible values include:
Generic HTTP Errors
- BAD_REQUEST: The request could not be validated.
- FORBIDDEN: You do not have permission to access the specified resour...
"ERROR_TYPE"BAD_REQUEST, FORBIDDEN, MAX_RESOURCES_REACHED, INTERNAL_SERVER_ERROR, INVALID_AUTHORIZATION, NOT_FOUND, MALFORMED_API_KEY, MISSING_API_KEY, EXPIRED_API_KEY, INVALID_API_KEY, ACCOUNT_SUSPENDED, ACCOUNT_DELETED, VALIDATION_FAILED, CONFLICT, QUOTA_EXCEEDEDA unique ID for this error. Please include this in bug reports.
"082f9513-901c-4308-8081-902a8fe22d7e"validationErrorsarray[object]JSON Schema validation errors, if any.
404The requested resource ID was not found.
A Faraday error code.
Some possible values include:
Generic HTTP Errors
- BAD_REQUEST: The request could not be validated.
- FORBIDDEN: You do not have permission to access the specified resour...
"ERROR_TYPE"BAD_REQUEST, FORBIDDEN, MAX_RESOURCES_REACHED, INTERNAL_SERVER_ERROR, INVALID_AUTHORIZATION, NOT_FOUND, MALFORMED_API_KEY, MISSING_API_KEY, EXPIRED_API_KEY, INVALID_API_KEY, ACCOUNT_SUSPENDED, ACCOUNT_DELETED, VALIDATION_FAILED, CONFLICT, QUOTA_EXCEEDEDA unique ID for this error. Please include this in bug reports.
"082f9513-901c-4308-8081-902a8fe22d7e"validationErrorsarray[object]JSON Schema validation errors, if any.
500An internal server error occurred.
A Faraday error code.
Some possible values include:
Generic HTTP Errors
- BAD_REQUEST: The request could not be validated.
- FORBIDDEN: You do not have permission to access the specified resour...
"ERROR_TYPE"BAD_REQUEST, FORBIDDEN, MAX_RESOURCES_REACHED, INTERNAL_SERVER_ERROR, INVALID_AUTHORIZATION, NOT_FOUND, MALFORMED_API_KEY, MISSING_API_KEY, EXPIRED_API_KEY, INVALID_API_KEY, ACCOUNT_SUSPENDED, ACCOUNT_DELETED, VALIDATION_FAILED, CONFLICT, QUOTA_EXCEEDEDA unique ID for this error. Please include this in bug reports.
"082f9513-901c-4308-8081-902a8fe22d7e"validationErrorsarray[object]JSON Schema validation errors, if any.
Tags
Test request
Request snippet
curl -X POST 'https://api.faraday.ai/v1/targets/{target_id}/lookup' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-d '{
"city": "Anytown",
"cohabitant_reference": "fcr_AgAbW3s9xQm1Lr0q7T2Yv8kZp4Hn6dJf5eUc0iOa9bGtRw3sXyEz1Kq",
"email": "john_doe@test.com",
"email_hash": "ea7047caf2a60b1c20c6c13b12a47e4e08610736f2062b0ae67c266f7a9516c9",
"house_number_and_street": "123 Main Street",
"latitude": "string",
"longitude": "string",
"person_first_name": "John",
"person_last_name": "Doe",
"phone": "string",
"postcode": "00001",
"search_radius": "string",
"state": "Farazona or FZ"
}'Example response
{
"city": "Anytown",
"cohabitant_reference": "fcr_AgAbW3s9xQm1Lr0q7T2Yv8kZp4Hn6dJf5eUc0iOa9bGtRw3sXyEz1Kq",
"email": "john_doe@test.com",
"email_hash": "ea7047caf2a60b1c20c6c13b12a47e4e08610736f2062b0ae67c266f7a9516c9",
"house_number_and_street": "123 Main Street",
"latitude": "string",
"longitude": "string",
"person_first_name": "John",
"person_last_name": "Doe",
"phone": "string",
"postcode": "00001",
"search_radius": "string",
"state": "Farazona or FZ"
}