Delete contacts in bulk
Remove up to 1,000 contacts from a contact book in one request.
DELETE
https://app.usenotix.dev/api/v1/contactBooks/{contactBookId}/contacts/bulkNeeds a full access key. Sending access keys cannot call this. Key permissions lists the extra rules some calls have.
Remove up to 1,000 contacts from a contact book in one request.
Path parameters
contactBookIdstringrequired
Body parameters
contactIdsstring[]required
Headers
Authorizationstringrequired
Bearer followed by your API key.
curl -X DELETE "https://app.usenotix.dev/api/v1/contactBooks/<contactBookId>/contacts/bulk" \
-H "Authorization: Bearer $NOTIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contactIds": [
"string"
]
}'
import { Notix } from "notix-js";
const notix = new Notix(process.env.NOTIX_API_KEY);
const { data, error } = await notix.contacts.bulkDelete("cb_123", { contactIds: ["cnt_1", "cnt_2"] });
from notix import Notix
notix = Notix() # reads NOTIX_API_KEY
result, _ = notix.contacts.bulk_delete("cb_123", {"contactIds": ["cnt_1", "cnt_2"]})
use Notix\Notix;
$notix = new Notix(getenv('NOTIX_API_KEY'));
$result = $notix->contacts->bulkDelete('cb_123', ['contactIds' => ['cnt_1', 'cnt_2']]);
Response200
{
"success": true,
"count": 1
}