Skip to content
AlterEstate

List round robins

GEThttps://secure.alterestate.com/api/v1/campaigns/round-robins/

Returns the round robins your account can open, one page at a time. Filter by name, status and people, and read assignment totals in deal_summary.

A round robin distributes incoming leads across a list of agents. Use this list to read the rules in your company and to copy a uid for the round_robin field on Create a lead. Every request uses the account token and stays inside that user’s company.


Authentication

Send Authorization: Token your_api_key_here. Account token. Keep it on your server.


Pagination

pageinteger
Page number. Defaults to 1.Example: 1
page_sizeinteger
Results per page. The maximum is 25. A larger value is capped at 25.Example: 25

Round robin

namestring
Partial name, case insensitive.Example: Website
uidstring
Exact round robin uid, case insensitive.Example: K7M2PQ9X4A
is_activeboolean
true returns active round robins. false returns inactive ones.Example: true

People

created_byinteger
Numeric user id of who created the round robin. Repeat the parameter to match any of several users. The id is the one returned by List users.Example: 67
followersinteger
Numeric user id of the follower on the round robin. Repeat the parameter to match any of several users.Example: 67
participantsinteger
Numeric user id of an agent who participates in the rotation. Repeat the parameter to match any of several agents.Example: 67

Sorting

sortstring
Field to sort by. Prefix with - for descending. Defaults to newest first. See Sorting below.Example: -timestamp

Example request

GET
curl --request GET \
  --url 'https://secure.alterestate.com/api/v1/campaigns/round-robins/?name=Website&is_active=true' \
  --header 'Authorization: Token your_api_key_here' \
  --header 'Accept: application/json'

Example response

200 OK
{
  "count": 3,
  "next": null,
  "previous": null,
  "results": [
    {
      "id": 18,
      "company": 7,
      "uid": "K7M2PQ9X4A",
      "name": "Website leads",
      "last_assigned": 2,
      "created_by": "John Smith",
      "is_active": true,
      "is_public": true,
      "follower": "Ana Martinez",
      "notes": "Leads from the agency website.",
      "deals_goal": 40,
      "wondeals_goal": 8,
      "notify_to": "leads@agency.com",
      "redirect_emails": false,
      "timestamp": "2026-03-01T23:40:12.000000-04:00",
      "deal_summary": {
        "total": 24,
        "total_with_round_robin": 26,
        "won": 4,
        "lost": 6,
        "open": 14,
        "participant": 5,
        "assignments": 24,
        "duplicated_assignments": 2,
        "total_assignments": 26,
        "successful_deals": 24,
        "conversion_rate": 16.67
      }
    }
  ]
}
401 Unauthorized
{
  "message": "Unauthorized user data",
  "error": "401"
}

Who is included

The list is limited to the company of the token. A user allowed to view every campaign sees every round robin in that company. A team leader also sees round robins that include an agent on a team they lead. Every other user sees round robins they follow or participate in.


Response

FieldDescription
countNumber of round robins that match the filters.
next, previousURLs of the next and previous pages. null on the last or first page.
resultsRound robins on this page. Newest first unless you send sort.

Fields on each round robin

FieldDescription
uidPublic identifier. Send this value as round_robin when you create a lead.
idInternal numeric id.
companyNumeric id of the company that owns the round robin.
nameName shown in the dashboard.
is_activetrue while the round robin accepts new leads.
is_publictrue when the round robin is marked visible to the whole company.
created_byDisplay name of the user who created it, or null.
followerDisplay name of the follower, or null.
notesInternal notes, or null.
deals_goal, wondeals_goalTarget number of deals, and target number of won deals.
notify_toEmail that receives round robin notifications, or null.
redirect_emailstrue sends those notifications to notify_to, or to the company email when notify_to is empty.
last_assignedCursor of the last assignment turn. The next agent is chosen from assignment history.
timestampWhen the round robin was created.
deal_summaryAssignment and deal totals. See below.

deal_summary

Counts cover deals that were actually handed to an agent (assigned or reassigned). total and successful_deals are the same number. conversion_rate is won divided by that number, as a percent with two decimals, or 0 when there are no successful deals.

FieldDescription
total, successful_dealsDeals assigned or reassigned through this round robin.
total_with_round_robinEvery deal linked to the round robin, including ones that were not assigned.
open, won, lostThose successful deals, split by deal status.
participantAgents currently in the rotation.
assignmentsSuccessful assignment logs.
duplicated_assignmentsLogs marked as a duplicate.
total_assignmentsEvery assignment log, including duplicates.
conversion_ratePercent of successful deals that are won.

Sorting

Prefix the value with - to sort descending. Without sort, results are newest first.

ValueSorts by
timestampDate the round robin was created.
nameName.
is_activeActive flag.
created_byFirst name of the user who created it.
followerFirst name of the follower.
participantsNumber of agents in the rotation.
assignmentsNumber of successful assignments.
leadsNumber of distinct deals assigned through the round robin.

Status codes

StatusMeaning
200The request succeeded.
400A parameter or the body is invalid. The response names the field.
401The token is missing, invalid, or the user cannot open this deal.
404The resource or route does not exist.
429Too many requests. Wait and retry.
500Server error while processing the request.

Frequently asked questions

How do I assign a lead to a round robin?

Copy uid from a result and send it as round_robin on POST /api/v1/leads/. That field takes precedence over related.

Which round robins does the list return?

Only round robins in the token user’s company. A user who can view every campaign sees all of them. A team leader also sees round robins with an agent on a team they lead. Other users see round robins they follow or participate in.

How do I filter by an agent?

Pass the numeric user id from List users. created_by matches who created the round robin, followers matches the follower, and participants matches an agent in the rotation. Repeat the same parameter to match any of several users.

How many round robins does each page return?

25. page_size cannot go above 25. Pass page to move forward. next is null on the last page.

Last updated . Questions? Emailengineering@alterestate.com.