API3
bryton at January 27th, 2016 18:00 — #1
We're having trouble querying via API all of the contacts regardless of ownership by a user - e.g. all contacts with a certain email. It only seems to show the ones that are owned by the user.
cillian at January 28th, 2016 05:48 — #2
Hi,
Which endpoint where you using to query the contacts with email address?
- action_stream
- team_stream
- or contacts
I can confirm that the contacts endpoint is the correct one for querying the entire teams' contacts by email. For example:
https://app.onepagecrm.com/api/v3/contacts.json?team=true&email=@bigcompany.com
The "team=true" part means the query will return contacts owned by everyone in the account.
The email param is converted to regular expression on our side, so you can search for partials such as "@bigcompany.com".
Hope this helps.
Cillian
Powered by Discourse, best viewed with JavaScript enabled