API search for customers where a custom data attribute "has any value" | Community
Skip to main content
Answered

API search for customers where a custom data attribute "has any value"

  • October 23, 2020
  • 1 reply
  • 305 views

The Intercom API allows for searches where a data attribute "has any value". I'm looking to perform a similar search through the API but "known" is not an "operator". I see the UI is using the old /users API, wondering if this search is available using the new contacts API. Thank you.

Best answer by Rob M11

Looks like

 

"query": {

"field": [field],

"operator": "!=",

"value": null

}

 

does the trick

1 reply

  • Author
  • New Participant
  • 1 reply
  • Answer
  • October 23, 2020

Looks like

 

"query": {

"field": [field],

"operator": "!=",

"value": null

}

 

does the trick