Downline(s)

Use this endpoint to retrieve information about the agencies and agents you have onboarded as downlines. You can filter results by company/user and page through large lists. Each downline record includes the agency's profile, subscription details, linked cases and users, and a full history of terms accepted during onboarding.

circle-info

Agencies appear in your downlines when they are onboarded through the Onboard Agency endpoint. As the upline, you have the ability to configure certain account settings for your downline agencies.

API Method

circle-check

Headers

Name
Type
Description

Authorization*

Text

Bearer <YOUR API KEY>

Content-Type*

Text

application/json

Accept*

Text

application/json

user-agent*

Text

<YOUR APP>

Query Parameters

All query parameters are optional.

Parameter
Type
Description

company_id

Text

Filter by White Swan company ID.

company_external_id

Text

Filter by your internal company ID. This ID must be defined when you Onboard Agency.

user_email

Text

Filter by a user's email address.

user_external_id

Text

Filter by your internal user ID. This ID must be defined when you Onboard Agency.

page

Integer

Page number for paginated results.

chevron-rightSample Body Payloadhashtag
circle-info

Please note that the sample body payload above contains all possible parameters for your reference. In an actual call, you don't need to use all (or any) parameters.

Pagination

Responses are paginated. Use the page query parameter to navigate through results. The response always includes the following pagination fields:

Field
Type
Description

page

Integer

Current page number.

page_size

Integer

Number of downline records returned on this page.

total

Integer

Total count of downlines matching your filters.

has_next_page

Boolean

Whether a subsequent page of results exists.

Response Codes

Code
Description

200 OK

Call succeeded

400 Bad Request

Call failure

401 Unauthorized

Permission denied

429 Too Many Requests

Rate limit exceeded

500 Internal Server Error

Internal error

chevron-rightSample return payloadhashtag

Response Fields

The response returns a downlines array alongside pagination fields. Each downline object has the following shape:

Field
Type
Description

company_id

Text

White Swan company ID.

company_external_id

Text

The external ID of the company, if used with the Onboard Agency call.

company_name

Text

Company display name.

company_address

Text

Company address.

company_legal_name

Text

Company legal name.

company_subscription

Text

Active subscription — either Digital Agent Plan , Innovator Plan, or Concierge Plan.

company_allowed_policy_types

Text Array

Enabled product types for this company — see enum in Onboard Agency.

carrier_restrictions

Text Array

Enabled carriers for this company — see options in Onboard Agency. If this list is empty all carriers are allowed.

company_upline

Text

Name of the upline account for this company.

linked_case_ids

Text Array

IDs of cases associated with this company.

linked_user_emails

Text Array

Email addresses of users linked to this company.

linked_payments

Text Array

IDs of payouts linked to this company.

has_completed_onboarding

Boolean

Whether the agency has completed the onboarding flow.

linked_terms

Object

Record of terms accepted during onboarding — see terms object below.

Terms Object (linked_terms)

Field
Type
Description

acceptance_id

Text

ID of this acceptance record.

accepted

Boolean

Whether the terms were accepted.

accepted_date

Text

Date of acceptance (ISO 8601).

consent_text_shown

Text

The text displayed next to the acceptance checkbox.

consenting_user_email

Text

Email of the user who accepted the terms.

accepted_contract

Text

URL to the accepted contract document.

contract_type

Text

Type of contract.

acceptance_url

Text

URL where the user accepted the terms.

Last updated

Was this helpful?