First-request guide for Export fields.
Export API guide
Fetch export fields
Discover the fields that can be requested before you create an export job.
On this page: QuickstartRequest anatomyResponse anatomyRules and constraintsEmpty resultsErrors and recoveryNext steps
Before you start
Authenticate
Send Authorization: Bearer <token> on every request and keep tokens out of logs and source control.
Common workflows
Quickstart
Request anatomy
| Part | Required | What to send |
|---|---|---|
| entityType | required | account, campaign, creative, opportunity, person, activity, accountBuyingGroup, or personBuyingGroupMember. |
| adReportType | conditional | Use for campaign or creative ad-report field catalogs. |
Response anatomy
| Field | Type / state | How to use it |
|---|---|---|
| name | string | Field token to place in a job request. |
| label | string | Human-readable field label. |
| dataType | string | Value type returned in the export. |
Rules and constraints
- The entity type must be one of the documented enum values.
- Treat returned field names as opaque tokens; do not substitute display labels.
- Fetch fields again when changing entity type or ad-report type.
Empty results
An empty field catalog usually means the entity type and optional ad-report type do not describe a supported combination. Confirm the query values before creating the job.
Errors and recovery
Handle these responses explicitly so your integration can report an actionable cause and next step.
| Status | Meaning | Recovery |
|---|---|---|
| 400 | Invalid or missing query values. | Use a documented entityType and supply adReportType when required. |
| 401 | The bearer token is missing, expired, or invalid. | Refresh the token and send it in the Authorization header. |
| 403 | The token lacks export permission. | Verify tenant access and API product entitlement. |