client-reports

DELETE /v1/client-reports/sinks/{sink_id}

Stop copying reports there and forget the Google access.

All client-reports endpoints

All developer docs →

Authentication

Send an API key as a bearer token. The key must carry the sites.create permission; a key without it is refused with 403, not 404.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X DELETE https://api.zinndigital.com/v1/client-reports/sinks/{sink_id} \
  -H "Authorization: Bearer zdk_live_…"

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

The spreadsheet or folder stays in the Google account — it is the customer's. ⭐ We delete our copy of the access rather than revoking it at Google, because revoking withdraws the whole account's grant (other clients' connections made with the same account included); the person can remove the app's access in their Google account at any time. Requires sites.create.

Parameters

NameTypeRequiredWhat it is
sink_id (path)stringYes—

Response

NameTypeRequiredWhat it is
idstringYes—
client_idstringYes—
kindClientReportSinkKindYes—
statusstring<pending, active, needs_reconnect, revoked>Yes—
account_emailstringYesThe Google account that granted access
external_urlobjectYesThe spreadsheet or folder in that account.
last_attempted_atobjectYes—
last_synced_atobjectYes—
last_report_idobjectYes—
failureobjectYesWhy the last copy failed (refusal.clientReportSinks.*), cleared on success.
created_atstringYes—

Errors this endpoint can return

401 · 403 · 404 · 429