Remove visitor custom attributes
Removes the named custom attribute values from the visitor’s contact.
POST
/
api
/
v1
/
widget
/
contact
/
destroy_custom_attributes
Remove visitor custom attributes
curl --request POST \
--url https://app.tied.com/api/v1/widget/contact/destroy_custom_attributes \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: <api-key>' \
--data '
{
"custom_attributes": [
"plan_tier"
]
}
'import requests
url = "https://app.tied.com/api/v1/widget/contact/destroy_custom_attributes"
payload = { "custom_attributes": ["plan_tier"] }
headers = {
"X-Auth-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Auth-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({custom_attributes: ['plan_tier']})
};
fetch('https://app.tied.com/api/v1/widget/contact/destroy_custom_attributes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://app.tied.com/api/v1/widget/contact/destroy_custom_attributes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Auth-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"custom_attributes\": [\n \"plan_tier\"\n ]\n}"
response = http.request(request)
puts response.read_bodypackage main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.tied.com/api/v1/widget/contact/destroy_custom_attributes"
payload := strings.NewReader("{\n \"custom_attributes\": [\n \"plan_tier\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Auth-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": 266,
"name": "Jamie Visitor",
"email": "visitor@example.com",
"phone_number": null,
"account_id": 1,
"created_at": "2026-09-21T04:31:41.992Z",
"updated_at": "2026-09-21T04:31:42.152Z",
"additional_attributes": {
"avatar_background_color": "#CCF3EA",
"illustration_avatar_index": 16
},
"identifier": "EXAMPLE_IDENTIFIER",
"custom_attributes": {},
"last_activity_at": null,
"contact_type": "lead",
"middle_name": "",
"last_name": "",
"location": null,
"country_code": null,
"blocked": false,
"company_id": null,
"label_list": []
}{
"error": "Resource could not be found"
}Authorizations
The signed session token from POST /api/v1/widget/config. Sent alongside website_token in the query string on every widget request. See /api-reference/widget-api-authentication.
Query Parameters
The web-widget inbox's public token, as it appears in your widget snippet. Required on every widget request.
Example:
"EXAMPLE_WEBSITE_TOKEN"
Body
application/json
The keys to remove.
Response
Success
The updated contact.
Was this page helpful?
⌘I
Remove visitor custom attributes
curl --request POST \
--url https://app.tied.com/api/v1/widget/contact/destroy_custom_attributes \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: <api-key>' \
--data '
{
"custom_attributes": [
"plan_tier"
]
}
'import requests
url = "https://app.tied.com/api/v1/widget/contact/destroy_custom_attributes"
payload = { "custom_attributes": ["plan_tier"] }
headers = {
"X-Auth-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Auth-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({custom_attributes: ['plan_tier']})
};
fetch('https://app.tied.com/api/v1/widget/contact/destroy_custom_attributes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://app.tied.com/api/v1/widget/contact/destroy_custom_attributes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Auth-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"custom_attributes\": [\n \"plan_tier\"\n ]\n}"
response = http.request(request)
puts response.read_bodypackage main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.tied.com/api/v1/widget/contact/destroy_custom_attributes"
payload := strings.NewReader("{\n \"custom_attributes\": [\n \"plan_tier\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Auth-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": 266,
"name": "Jamie Visitor",
"email": "visitor@example.com",
"phone_number": null,
"account_id": 1,
"created_at": "2026-09-21T04:31:41.992Z",
"updated_at": "2026-09-21T04:31:42.152Z",
"additional_attributes": {
"avatar_background_color": "#CCF3EA",
"illustration_avatar_index": 16
},
"identifier": "EXAMPLE_IDENTIFIER",
"custom_attributes": {},
"last_activity_at": null,
"contact_type": "lead",
"middle_name": "",
"last_name": "",
"location": null,
"country_code": null,
"blocked": false,
"company_id": null,
"label_list": []
}{
"error": "Resource could not be found"
}