Get Contacts

Our most robust API is our contacts query. It supports a wide variety of query capabilities for data around our contact model.

GET /contacts

Supported query params

Query Param Name
Type
Example

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:

enum SortDirection {
  ASC,
  DESC,
}

interface ContactSortInput
  extends Record<string, SortDirection | undefined> {
  numberOfNFTs?: SortDirection;
  balance?: SortDirection;
  createdAt?: SortDirection;
  email?: SortDirection;
  twitterHandle?: SortDirection;
  discordUsername?: SortDirection;
}

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