Retrieve all targets that use this connection
https://api.faraday.ai/v1/connections/{connection_id}/targetsGet all targets that use this connection
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 connection
"5e0dfa56-2d52-4c06-a870-bc79c71e86a3"Responses
200The list of targets
400The 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, VALIDATION_FAILED, CONFLICTA 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, VALIDATION_FAILED, CONFLICTA 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, VALIDATION_FAILED, CONFLICTA 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, VALIDATION_FAILED, CONFLICTA 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, VALIDATION_FAILED, CONFLICTA 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 GET 'https://api.faraday.ai/v1/connections/{connection_id}/targets' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY'Example response
[
{
"analysis_config": {
"geographies": [
"postcode"
],
"traits": [
"fig/age"
]
},
"archived_at": "2024-01-01T12:00:00Z",
"connection_id": "5e0dfa56-2d52-4c06-a870-bc79c71e86a3",
"count": 0,
"created_at": "2024-01-01T12:00:00Z",
"custom_structure": [
{
"aggregation": "avg",
"aggregation_criteria": "string",
"is_identity_col": true,
"output_col": "string (pattern: ^[_a-z][_a-z0-9]*$)",
"scope_col": "string (pattern: ^[_a-z][_a-z0-9]*$)"
}
],
"filter": {
"cohort_membership": [
{
"_eq": true,
"cohort_id": "b80217ae-7628-4c66-8a19-5bf452495c39"
}
],
"outcome_percentile": [
{
"_eq": 1,
"_gt": 1,
"_gte": 1,
"_lt": 1,
"_lte": 1,
"_nnull": true,
"_null": true,
"outcome_id": "b80217ae-7628-4c66-8a19-5bf452495c39"
}
],
"outcome_probability": [
{
"_eq": 0,
"_gt": 0,
"_gte": 0,
"_lt": 0,
"_lte": 0,
"_nnull": true,
"_null": true,
"outcome_id": "b80217ae-7628-4c66-8a19-5bf452495c39"
}
],
"outcome_score": [
{
"_eq": 0,
"_gt": 0,
"_gte": 0,
"_lt": 0,
"_lte": 0,
"_nnull": true,
"_null": true,
"outcome_id": "b80217ae-7628-4c66-8a19-5bf452495c39"
}
],
"persona": [
{
"_eq": true,
"persona_id": "7a19cdb4-cf4b-4cbd-95ec-aa60b8fda90b",
"persona_set_id": "b80217ae-7628-4c66-8a19-5bf452495c39"
}
],
"recommender_rank": [
{
"_eq": 1,
"_gt": 1,
"_gte": 1,
"_lt": 1,
"_lte": 1,
"_nnull": true,
"_null": true,
"recommender_id": "b80217ae-7628-4c66-8a19-5bf452495c39"
}
],
"recommender_uncalibrated_probability": [
{
"_eq": 0,
"_gt": 0,
"_gte": 0,
"_lt": 0,
"_lte": 0,
"_nnull": true,
"_null": true,
"recommender_id": "b80217ae-7628-4c66-8a19-5bf452495c39"
}
],
"trait": [
{
"_eq": "string",
"_gt": 0,
"_gte": 0,
"_in": [
"string"
],
"_lt": 0,
"_lte": 0,
"_matches": "string",
"_neq": "string",
"_nin": [
"string"
],
"_nnull": true,
"_null": true,
"name": "string"
}
]
},
"final_structure": [
{
"aggregation": "avg",
"aggregation_criteria": "string",
"is_identity_col": true,
"output_col": "string (pattern: ^[_a-z][_a-z0-9]*$)",
"scope_col": "string (pattern: ^[_a-z][_a-z0-9]*$)"
}
],
"human_readable": true,
"id": "ba647bc4-55f1-49f9-b0da-fccff5b51bfe",
"last_read_input_at": "2024-01-01T12:00:00Z",
"last_updated_config_at": "2024-01-01T12:00:00Z",
"last_updated_output_at": "2024-01-01T12:00:00Z",
"limit": {
"direction": "ascending",
"method": "row_count",
"outcome_id": "b80217ae-7628-4c66-8a19-5bf452495c39",
"threshold": 1000
},
"managed": true,
"name": "string (pattern: ^(?!\\s*$).+)",
"options": {
"table_name": "string (pattern: ^[_a-zA-Z][a-zA-Z0-9_]+$)",
"type": "aws_aurora_mysql"
},
"payload_map": {
"key": "string"
},
"representation": {
"mode": "hashed",
"transform_preset": "default"
},
"resource_type": "targets",
"scope_id": "8e63467d-9478-4fba-b05a-d5e98fd06d12",
"status": "pending",
"status_changed_at": "2024-01-01T12:00:00Z",
"status_error": "string",
"updated_at": "2024-01-01T12:00:00Z"
}
]