Open
Description
tickets/search API unable to retrieve tickets with a custom ticket_attribute set
Hello
I am looking to use the tickets/search API to retrieve tickets with a particular ticket_attribute set.
This might already be possible but I am getting the syntax wrong, I can see on this page https://developers.intercom.com/docs/references/rest-api/api.intercom.io/Tickets/searchTickets/
it says you can use ticket_attribute.{id}
as a field key but when I try this with a ticket attribute I am getting an error - field_not_found The request ticket attribute ID is not a valid integer response 400
Please advise on what I could be doing wrong here, thank you
Expected
import requests
url = https://api.intercom.io/tickets/search
payload = {
"query": {
"operator": "AND",
"value": [
{
"field": "ticket_attribute.{my_ticket_attribute}",
"operator": "=",
"value": "Ready"
},
]
}
}
headers = {
"Content-Type": "application/json",
"Intercom-Version": "2.10",
"Authorization": "Bearer <YOUR_TOKEN_HERE>"
}
response = requests.post(url, json=payload, headers=headers)
data = response.json()
print(data)
Reproduction Steps
Metadata
Metadata
Assignees
Labels
No labels
Activity