Skip to main content
GET
List all customers
This endpoint requires an API key with the customers.read scope.
For each program:
  • If the program doesn’t share customer data with you, name is null, email is masked, and search doesn’t match its customers.
  • If the program doesn’t share revenue with you, saleAmount is null. Sorting by saleAmount requires a programId for a program that shares revenue with you.
Some large programs only list customers after you’ve earned $5,000 in commissions from them. Until then, their customers aren’t returned, and a programId for one of these programs returns a 403 error.

Authorizations

Authorization
string
header
required

Partner API key

Scopes

customers.read

Read your referred customers

Headers

Dub-Version
enum<string>

The API version to use. Defaults to the version your API key was created with.

Available options:
mozart

Query Parameters

pageSize
integer
default:50

The number of items per page.

Required range: 1 <= x <= 100
Example:

50

startingAfter
string

The ID of the last item on the current page. Returns the page after it.

endingBefore
string

The ID of the first item on the current page. Returns the page before it.

programId
string

The ID or slug of the program to filter customers by. If not provided, customers across all programs are returned.

Search customers by email or name. Only matches customers of programs that share customer data with you.

country
string

Filter the list of customers by country, as an ISO 3166-1 alpha-2 code.

Filter the list of customers by the short link that referred them.

sortBy
enum<string>
default:createdAt

The field to sort the list of customers by. saleAmount requires a programId for a program that shares revenue with you. Customers without a firstSaleAt or subscriptionCanceledAt come last in descending order and first in ascending order.

Available options:
createdAt,
saleAmount,
firstSaleAt,
subscriptionCanceledAt
sortOrder
enum<string>
default:desc

The sort order for the list of customers.

Available options:
asc,
desc

Response

The list of customers.

data
object[]
required
hasMore
boolean
required

Whether there are more customers in the direction you're paging.