Skip to main content

Delete Contact Custom Attributes

POST 

/accounts/:account_id/contacts/:contact_id/destroy_custom_attributes

Removes the given keys from the contact's custom attributes.

The other custom attributes are kept. To add or change values, use Update Contact, which merges custom_attributes.

SettingValue
MethodPOST
Path/api/v1/accounts/{account_id}/contacts/{contact_id}/destroy_custom_attributes
AuthorizationUser token. Same as Update Contact: legacy roles: any agent; new rules: Contacts → update. Agent-bot tokens: not allowed.

Body parameters (JSON)

NameTypeRequiredDescription
custom_attributesstring[]YesKeys to remove.

Example request

curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/destroy_custom_attributes' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "custom_attributes": ["plan"] }'

Example response (200 OK). The contact_inboxes list is truncated.

{
"payload": {
"additional_attributes": {
"company_name": "Example Ltd",
"city": "Tel Aviv"
},
"availability_status": "offline",
"email": "dana.cohen@example.com",
"id": 801,
"name": "Dana Cohen",
"phone_number": "+972501234567",
"identifier": "crm-801",
"thumbnail": "",
"custom_attributes": {
"customer_tier": "gold"
},
"blocked": false,
"is_whatsapp_contact": false,
"created_at": 1794470500,
"email_or_phone_optional": false,
"contact_inboxes": []
}
}

Request​

Responses​

The contact, without the removed keys.