# GET /exports/field-catalog

**Resource:** [Export Templates](./export-templates.md)  
**Scopes:** `exports:read`  
**Write operation:** no

Discover which fields are available as columns and filters for a given root entity. Returns filter_fields (with allowed operator sets per field type) and column_fields (source + relation options). Call this before building a create_export_template payload so column IDs and filter ops are correct.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `root_entity` | query | string | yes | Entity to explore. One of: opportunity, contact, account, work_order. |

## Response example

```json
{
  "request": "curl -H \"Authorization: Bearer tp_live_...\" \\\n  \"https://api.trustpager.com/functions/v1/api/v1/exports/field-catalog?root_entity=opportunity\"",
  "response": "{\n  \"root_entity\": \"opportunity\",\n  \"filter_fields\": [\n    {\n      \"key\": \"tags\",\n      \"label\": \"Tags\",\n      \"type\": \"tags\",\n      \"ops\": [\n        \"in\",\n        \"not_in\",\n        \"is_null\",\n        \"not_null\"\n      ]\n    },\n    {\n      \"key\": \"status\",\n      \"label\": \"Status\",\n      \"type\": \"select\",\n      \"ops\": [\n        \"eq\",\n        \"neq\",\n        \"in\",\n        \"is_null\",\n        \"not_null\"\n      ],\n      \"options\": [\n        \"open\",\n        \"won\",\n        \"lost\"\n      ]\n    },\n    {\n      \"key\": \"created_at\",\n      \"label\": \"Created At\",\n      \"type\": \"date\",\n      \"ops\": [\n        \"gte\",\n        \"lte\",\n        \"between\",\n        \"is_null\",\n        \"not_null\"\n      ]\n    }\n  ],\n  \"column_fields\": [\n    {\n      \"key\": \"name\",\n      \"label\": \"Name\",\n      \"source\": \"root\"\n    },\n    {\n      \"key\": \"primary_contact\",\n      \"label\": \"Primary Contact\",\n      \"source\": \"relation\"\n    }\n  ]\n}"
}
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`