Issue the restricted key
Reporting is an API issuance preset; the dashboard’s Workspace keys form currently offers Read and Write. Use a separately stored Management key to create the Reporting key through the management API:preset: "reporting" selects Read tier; if you also send tier, it must be read. Expiry accepts 30, 90, 365 or "never". Save the returned key securely and give that Reporting key to the report integration. The Management key remains separate and must not be installed as the report credential.
The preset restricts operations to get_arrivals_comparison, get_cac_by_channel, get_account_inventory and get_inventory_metrics. It also permits get_monthly_statements through its channel-cost grant and the matching scoped report routes. It cannot submit feedback, write an ingestion diagnostic, manage Actions or grants, or download the whole attribution record. It can use its permitted MCP report tools; the preset is not a blanket MCP prohibition. Current role, grant, expiry and account restrictions still apply.
Let the integration select a workspace
With the Reporting key, requestGET /api/v1/workspaces. This lists only the credential’s live authorized workspaces, with workspace_id, workspace_name, nullable ad_account_name and effective tier.
The first page defaults to 25; limit accepts 1–100. Pass the returned integer next_cursor as cursor until it is null. Inspect total and truncated. A null account name does not grant access to every Meta account. Use a returned workspace ID in report URLs; this directory cannot widen the key’s scope.
Read a flat report table
All three routes are GET reads belowhttps://plainrouter.com/api/v1/workspaces/{workspace}/admin/report-rows. Send Authorization: Bearer <reporting-key> and Accept: application/json.
An illustrative stored read is:
table, generated_at and rows; monthly rows also expose has_more. Optional account selection uses Plainrouter’s internal account ID and must satisfy the underlying report’s binding. Unknown query parameters are refused. Write whole-number parameters plainly, without leading zeros, spaces, decimal points or exponents; unsupported values return validation errors.
Keep decimal amounts and currency together. Preserve nulls, unavailable reasons, coverage and counted-versus-claimed distinctions when building a chart. Do not turn missing evidence into zero or sum currencies without an explicit conversion basis. These tables flatten existing readers; they do not refresh Meta or create a new measurement.
Freshness and integration limits
Table responses can reuse an authorized internal cache, defaulting to 15 minutes. Inspectgenerated_at and the underlying report’s observation and coverage fields. Authorization is checked before cached data is returned. HTTP responses are private and no-store; the internal cache is not a public HTTP cache or a freshness guarantee.
Use the published OpenAPI contract for exact fields and supported filters. These routes provide data for your own connector; they do not establish a released Google or other vendor connector. For nested evidence, use reporting exports; for frozen records and the whole-file download, see records and statements.