List affiliates
Changed onLists the affiliates of an account.
Required permissions:
- affiliate:basic:read
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Query parameters
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Returns the last n elements from the list.
The sort direction for results. Defaults to descending.
The field to sort results by.
Search affiliates by username.
Filter by affiliate status (active or archived).
The unique identifier of the company to list affiliates for.
Response
A successful response
The connection type for Affiliate.
A list of nodes.
Information to aid in pagination.
Example response
{
"data": [
{
"active_members_count": 42,
"company": {
"id": "biz_xxxxxxxxxxxxxx"
},
"created_at": "2023-12-01T05:00:00.401Z",
"id": "aff_xxxxxxxxxxxxxx",
"total_overrides_count": 42,
"total_referrals_count": 42,
"updated_at": "2023-12-01T05:00:00.401Z",
"user": {
"id": "user_xxxxxxxxxxxxx",
"name": "Dana Whitfield",
"username": "danawhitfield"
}
}
]
}Changes
- breaking
added the new required
queryrequest parameteraccount_id - warning
deleted the
queryrequest parametercompany_id
- breaking
- breaking
the
queryrequest parameterdirectionwas restricted to a list of enum values
14 more changes in this revision
- breaking