Contacts
Our most robust API is our contacts query. It supports a wide variety of query capabilities for data around our contact model.
POST /contacts
Body Structure
primaryIdentifier
string
main field to identify contact by
value
string
property of the primary identifier
primary identifier types
enum PrimaryIdentifier {
WALLET_ADDRESS = 'walletAddress',
EMAIL = 'email',
PHONE_NUMBER = 'phoneNumber',
DISCORD = 'discord',
}Return
200
Duplicate Contact
201
Inserted Contact
400
Primary Identifier specified correctly
GET /contacts
Supported query params
limit
number
15 (default), max 100
page
number
0 (default)
sort
Object
See below
where
Object
See below
Sort Types & Examples
The types for our sort parameter is as follows:
We currently only support passing in a single sort value. If you pass in multiple, your results may vary or be inconsistent. A good example (and the default for the table in our UI) can be found below:
Where Types & Examples
The types for our where clause parameter is as follows:
This list is evolving, and some might even be missing, but the pattern should be fairly clear for our queries moving forward. Note that it is a recursive structure, but deeply nesting filters will slow down the query. We do not make any specific performance guarantees. Here are a few examples:
Need Help?
This is a complex query, so it is hard to account for every edge case in our documentation. If you find yourself trying to figure something out but it just isn't working, please reach out and let us know!
Last updated