List Data Policy Fields
List the declared output fields of a data policy: the field keys and types the policy emits in resolution results. Values on undeclared keys are discarded.
List the declared output fields of a data policy. Fields define the output contract: the set of field keys the policy executor emits in resolution results. Only declared fields appear in the final output; any intermediate values computed by rules but not declared as fields are treated as temporary variables and discarded.
Each field carries its field_key (the output column name), a field_type, and a source describing where the field came from. The declared field list is what the resolution pipeline validates output against and what the results UI uses to decide which columns to display.
The output contract matters most at the boundaries. Downstream consumers — data products, deliveries, exports — see exactly the declared keys, so adding a field to the policy is how a newly computed value surfaces, and removing one is a breaking change for anything reading the resolution output. Where a field is bound to a schema field, the resolved value flows back under that schema field's identity in pipeline results.
For the version-resolved view of the contract, prefer GET /v1/data-policies/{id}: it inlines the current version's fields with their declared data_type, position, and schema binding (source_schema_field_id) alongside the rules that populate them — the exact configuration the next resolution executes.
/v1/data-policies/{id}/fieldsPath parameters
Response
Response fields
curl
curl -s https://api.talonic.com/v1/data-policies/p1a2b3c4-e5f6-7890-abcd-ef1234567890/fields \
-H "Authorization: Bearer tlnc_your_api_key"Response
{
"data": [
{
"id": "f1a2b3c4-0001",
"version_id": "v3a2b3c4-0003",
"field_key": "country_code",
"display_name": "Country code",
"field_type": "string",
"position": 0,
"include": true,
"source": "schema_field",
"source_schema_field_id": "sf1a2b3c4-0001"
},
{
"id": "f1a2b3c4-0002",
"version_id": "v3a2b3c4-0003",
"field_key": "currency",
"display_name": null,
"field_type": "string",
"position": 1,
"include": true,
"source": null,
"source_schema_field_id": null
}
],
"links": {
"self": "/v1/data-policies/p1a2b3c4-e5f6-7890-abcd-ef1234567890/fields",
"policy": "/v1/data-policies/p1a2b3c4-e5f6-7890-abcd-ef1234567890",
"version": "/v1/data-policies/p1a2b3c4-e5f6-7890-abcd-ef1234567890/versions"
}
}Errors
Error responses
pipeline.resolution.emit_undeclared_cells only for debugging.