Api reference
Deactivate integration
Deactivate an active integration. Cancels in-flight sync jobs, clears scheduled cron entries, and purges stored credentials via KMS. Historical sync logs, product mappings, and payment-method mappings are retained so re-activation preserves the mapping set. Returns 404 if no active integration exists for the provider.
Related endpoints
POST /integrations/{provider}/activate— Activate integrationGET /integrations/{provider}— Get integration statusPOST /integrations/{provider}/test— Test integration credentialsPOST /integrations/{provider}/sync— Trigger manual syncGET /integrations— List all integrationsPUT /integrations/{provider}/status— Update integration statusPUT /integrations/{provider}/sync-toggle— Toggle integration syncPUT /integrations/{provider}/sync-interval— Update sync interval
Common errors
404 resource_missing— the referenced resource does not exist or is not visible to your key.
Idempotency
Pass an Idempotency-Key header (UUID v4 recommended) to make retries safe. Keys are valid for 24 hours; see the idempotency guide.
x-api-key<token>
Your RevKeen API key (powered by Unkey). Get it from Dashboard > Settings > API Keys. Use rk_sandbox_* for test mode and rk_live_* for production.
In: header
Path Parameters
provider*string
Value in
"practicehub" | "wodify" | "terminal"Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://api.revkeen.com/v2/integrations/practicehub/deactivate" \ -H "x-api-key: $REVKEEN_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "deleteCredentials": false }'{
"success": true,
"message": "string"
}Empty