/integration/:id/fields
Returns the mapping field catalogue for one integration: every field a mapping value can be set for, with its JSON Schema, whether it’s required, where it can be set and whether the caller can write it. Use it to render a mapping grid or to build valid records for POST /v1/integration/{id}/mapping/validate and /apply.
- Permission:
ad_stack.view. The integration must be available to the caller’s organisation (its own, a parent’s, or a core one), otherwise 404. The Global Settings pseudo-integration is accepted too. - One row per stack-schema property. An object property with declared sub-properties becomes one row per leaf under a dotted key (
video.mimes, titled “Video › Mimes”); records must use that dotted key. - The display label is
schema.title(derived from the key when the module has none). There is no top-leveltitle. readonly: truemeans the caller can’t write the field: a computed default (default_macronames the macro), an owner-only field for a non-owner (owner_only: true; owners are the integration’s organisation, its parent organisations and core admins), or a field the schema declares read-only. Read-only fields are rejected by validate / apply / delete.requiredis what the integration needs from some level for its tag; owner-only fields stay required for everyone.levelsomitsconfigwhen the field can’t vary per ad unit; validate / apply reject ad-unit records for it.- The list always ends with the built-in
approvedfield (builtin: true,wnm_allowed: false), read-only for anyone but the owner. - The same catalogue feeds
GET /v1/integration/{id}/fields/template.csvand the completeness endpoints. integration_idis the encoded id; the envelope turns an all-digit id into a number.schemakeeps its declared types.
Authorizations
Path Parameters
Query Parameters
Optional publisher uid. Looks the integration up among those available to this publisher's organisation, and resolves fields that depend on whether the publisher is owned and operated by the integration's organisation. The publisher must exist and not be archived; a restricted (non-core) caller may only pass a publisher of their own organisation, otherwise 404 Not Found.
x >= 1