Remove a conversation custom attribute
Removes one custom attribute from the conversation. Note that this takes custom_attribute singular, while the contact equivalent takes an array.
POST
/
api
/
v1
/
widget
/
conversations
/
destroy_custom_attributes
Remove a conversation custom attribute
curl --request POST \
--url https://app.tied.com/api/v1/widget/conversations/destroy_custom_attributes \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: <api-key>' \
--data '
{
"custom_attribute": "plan_interest"
}
'import requests
url = "https://app.tied.com/api/v1/widget/conversations/destroy_custom_attributes"
payload = { "custom_attribute": "plan_interest" }
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_attribute: 'plan_interest'})
};
fetch('https://app.tied.com/api/v1/widget/conversations/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/conversations/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_attribute\": \"plan_interest\"\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/conversations/destroy_custom_attributes"
payload := strings.NewReader("{\n \"custom_attribute\": \"plan_interest\"\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))
}{
"contact_inbox_id": 258,
"custom_attributes": {},
"sla_policy_id": null,
"uuid": "00000000-0000-0000-0000-000000000000",
"team_id": null,
"status": "open",
"snoozed_until": null,
"id": 339,
"account_id": 1,
"inbox_id": 4,
"assignee_id": null,
"created_at": "2026-09-21T04:31:42.198Z",
"updated_at": "2026-09-21T04:31:42.612Z",
"contact_id": 266,
"display_id": 339,
"contact_last_seen_at": "2026-09-21T04:31:42.507Z",
"agent_last_seen_at": null,
"additional_attributes": {
"browser": {
"device_name": "Unknown",
"browser_name": "Unknown Browser",
"platform_name": "Unknown",
"browser_version": "0.0",
"platform_version": "0"
},
"referer": "https://tied.com/pricing",
"initiated_at": {
"timestamp": "2026-09-21T04:30:00Z"
},
"browser_language": null
},
"identifier": null,
"last_activity_at": "2026-09-21T04:31:42.297Z",
"campaign_id": null,
"assignee_last_seen_at": null,
"first_reply_created_at": null,
"priority": null,
"waiting_since": "2026-09-21T04:31:42.198Z",
"cached_label_list": null,
"active_handler": null,
"resolution_ordinal": 0,
"issue_key": null,
"issue_key_started_at": null,
"last_resolved_at": 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 single key to remove.
Response
Success
The updated conversation.
Was this page helpful?
⌘I
Remove a conversation custom attribute
curl --request POST \
--url https://app.tied.com/api/v1/widget/conversations/destroy_custom_attributes \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: <api-key>' \
--data '
{
"custom_attribute": "plan_interest"
}
'import requests
url = "https://app.tied.com/api/v1/widget/conversations/destroy_custom_attributes"
payload = { "custom_attribute": "plan_interest" }
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_attribute: 'plan_interest'})
};
fetch('https://app.tied.com/api/v1/widget/conversations/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/conversations/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_attribute\": \"plan_interest\"\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/conversations/destroy_custom_attributes"
payload := strings.NewReader("{\n \"custom_attribute\": \"plan_interest\"\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))
}{
"contact_inbox_id": 258,
"custom_attributes": {},
"sla_policy_id": null,
"uuid": "00000000-0000-0000-0000-000000000000",
"team_id": null,
"status": "open",
"snoozed_until": null,
"id": 339,
"account_id": 1,
"inbox_id": 4,
"assignee_id": null,
"created_at": "2026-09-21T04:31:42.198Z",
"updated_at": "2026-09-21T04:31:42.612Z",
"contact_id": 266,
"display_id": 339,
"contact_last_seen_at": "2026-09-21T04:31:42.507Z",
"agent_last_seen_at": null,
"additional_attributes": {
"browser": {
"device_name": "Unknown",
"browser_name": "Unknown Browser",
"platform_name": "Unknown",
"browser_version": "0.0",
"platform_version": "0"
},
"referer": "https://tied.com/pricing",
"initiated_at": {
"timestamp": "2026-09-21T04:30:00Z"
},
"browser_language": null
},
"identifier": null,
"last_activity_at": "2026-09-21T04:31:42.297Z",
"campaign_id": null,
"assignee_last_seen_at": null,
"first_reply_created_at": null,
"priority": null,
"waiting_since": "2026-09-21T04:31:42.198Z",
"cached_label_list": null,
"active_handler": null,
"resolution_ordinal": 0,
"issue_key": null,
"issue_key_started_at": null,
"last_resolved_at": null,
"label_list": []
}{
"error": "Resource could not be found"
}