Skip to main content
DELETE
/
v1
/
contacts
/
{id}
Node.js SDK
import Migma from 'migma';

const migma = new Migma('YOUR_API_KEY');

const { data, error } = await migma.contacts.remove(
  'CONTACT_ID',
  'PROJECT_ID'
);
{
  "success": true,
  "data": {
    "id": "<string>",
    "deleted": true
  },
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication. Use 'Authorization: Bearer YOUR_API_KEY' where YOUR_API_KEY is obtained from the Migma dashboard under Settings → API Integration.

Path Parameters

id
string
required

Contact ID (MongoDB ObjectId)

Query Parameters

projectId
string
required

Project ID

Response

Contact deleted

success
boolean
required
data
object
error
string | null