/v1/workspaces/{workspace_id}/channels/fcm/credentials/{credential_id}AuthDelete an FCM service account
Deletes an FCM credential and erases its private key immediately. Push to Android devices of its project is skipped (`credential_invalid`) until another service account is uploaded.
Path parameters
workspace_id*string · uuidId of the workspace.
credential_id*string · uuidId of the credential.
Response · 204
Deleted.
Example
Request
DELETE https://api.notify.productcraft.co/v1/workspaces/{workspace_id}/channels/fcm/credentials/{credential_id}
Authorization: Bearer YOUR_TOKENimport { Notify } from "@productcraft/notify";
// Reads PRODUCTCRAFT_API_KEY and PRODUCTCRAFT_WORKSPACE_ID from the environment;
// client routes take a recipient token: notify.client({ token })
const notify = new Notify();
await notify.channels.fcm.deleteCredential("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");notify.channels.fcm.deleteCredential(credentialId, options?): void