/v1/workspaces/{workspace_id}/integrations/{provider}AuthDisconnect an integration. Deletes the credential row.
Hard delete — the encrypted blob is removed. The customer must reconnect via the provider-specific OAuth flow to restore access.
Path parameters
workspace_id*string · uuidId of the workspace.
provider*stringThe integration provider (`github`).
Headers
Idempotency-KeystringOpaque client-generated string (1–256 chars, `[A-Za-z0-9._:-]`) used to deduplicate retries within a 24h window. A retry with the same key and body returns the original response with `Idempotent-Replay: true`.
Response · 204
Disconnected.
Example
Request
DELETE https://api.mail.productcraft.co/v1/workspaces/{workspace_id}/integrations/{provider}
Authorization: Bearer YOUR_TOKEN