List contract assignments

Lists the contract assignments under the contracts your organization is a party to: each producer placed on one of the contracts’ products. Narrow the list with person_id, org_id, npn, upline_contract_assignment_id and status, alone or together; a filter naming a producer or an assignment your organization cannot see returns an empty page. Send the same filters with every page of one listing: a page_token sent with different filters is a 400.

get
https://api.sandbox.agentsync.io/platform/v1/contract-assignments

Query Parameters

person_idstring

A person’s ID, a TypeID with the prefix person.

Match pattern:^person_[0-7][0-9a-hjkmnp-tv-z]{25}$

Example:person_01h455vb4pex5vsknk084sn02q

org_idstring

An organization’s ID: a TypeID with the prefix org. It never changes, and is the same ID for the organization across the AgentSync API.

Match pattern:^org_[0-7][0-9a-hjkmnp-tv-z]{25}$

Example:org_01h455vb4pex5vsknk084sn02q

npnstring

Only assignments of the person holding this National Producer Number. An NPN no person holds returns an empty page, not an error. A value that is not one to ten digits, or that is zero, is a 400.

Match pattern:^[0-9]{1,10}$

Example:12345678

upline_contract_assignment_idstring

A contract assignment’s ID, a TypeID with the prefix contractassignment.

Match pattern:^contractassignment_[0-7][0-9a-hjkmnp-tv-z]{25}$

Example:contractassignment_01h455vb4pex5vsknk084sn02r

statusstring

Only assignments with this status. A value outside the list is a 400.

Allowed values:activeinactivependingsuspendedterminated

Example:active

page_sizeinteger

Items per page. Defaults to 50; a value above 200 is clamped to 200. A non-numeric or non-positive value is a 400.

Default:50

>= 1

Example:100

page_tokenstring

Opaque token from a previous response’s page.nextToken. Send it with the same filters as the request that returned it: it is signed for them. A token that is malformed, altered, sent with other filters, or longer than 1024 bytes is a 400.

Example:eyJrIjoiZXhhbXBsZSJ9

Response

application/json

One page of the contract assignments under your organization’s contracts.

A page of contract assignments.

itemsarray[object]required

A contract assignment under a contract your organization is a party to: one producer, a person or a firm, placed on one of the contract’s products.

Example:{"id":"contractassignment_01h455vb4pex5vsknk084sn02q","contractId":"contract_01h455vb4pex5vsknk084sn02q","productId":"product_01h455vb4pex5vsknk084sn02q","producerType":"individual","personId":"person_01h455vb4pex5vsknk084sn02q","writingNumber":"W-1001","status":"active","carrierStatus":"active","partnerStatus":"active","effectiveAt":"2026-02-01T00:00:00Z"}

Show Child Parameters
pageobjectrequired

Pagination metadata of a collection response. nextToken is absent on the last page; pass it back as the page_token query parameter to continue.

Example:{"nextToken":"eyJrIjoiZXhhbXBsZSJ9"}

Show Child Parameters
get/v1/contract-assignments
 
application/json

Get a contract assignment

Returns one contract assignment under a contract your organization is a party to, with its access override when it has one. An assignment under any other contract is answered as one that does not exist.

get
https://api.sandbox.agentsync.io/platform/v1/contract-assignments/{id}

Path Parameters

idstringrequired

A contract assignment’s ID, a TypeID with the prefix contractassignment.

Match pattern:^contractassignment_[0-7][0-9a-hjkmnp-tv-z]{25}$

Example:contractassignment_01h455vb4pex5vsknk084sn02q

Response

application/json

The contract assignment.

ContractAssignment

One contract assignment: the list’s fields, the states set on the assignment itself and its access override.

idstringrequired

A contract assignment’s ID, a TypeID with the prefix contractassignment.

Match pattern:^contractassignment_[0-7][0-9a-hjkmnp-tv-z]{25}$

Example:contractassignment_01h455vb4pex5vsknk084sn02q

contractIdstringrequired

A contract’s ID, a TypeID with the prefix contract.

Match pattern:^contract_[0-7][0-9a-hjkmnp-tv-z]{25}$

Example:contract_01h455vb4pex5vsknk084sn02q

productIdstringrequired

The ID of a product or bucket of products, a TypeID with the prefix product.

Match pattern:^product_[0-7][0-9a-hjkmnp-tv-z]{25}$

Example:product_01h455vb4pex5vsknk084sn02q

producerTypestringrequired

individual when the producer is a person, named by personId; firm when it is an organization, named by firmOrganizationId.

Allowed values:individualfirm

Example:individual

personIdstring

A person’s ID, a TypeID with the prefix person.

Match pattern:^person_[0-7][0-9a-hjkmnp-tv-z]{25}$

Example:person_01h455vb4pex5vsknk084sn02q

firmOrganizationIdstring

An organization’s ID: a TypeID with the prefix org. It never changes, and is the same ID for the organization across the AgentSync API.

Match pattern:^org_[0-7][0-9a-hjkmnp-tv-z]{25}$

Example:org_01h455vb4pex5vsknk084sn02q

writingNumberstring

The writing number set on this assignment. Absent when none is set on it.

Example:W-1001

statusstringrequired

Derived from the two statuses beside it: terminated once the assignment is terminated; else the carrier’s pending or suspended; else active when both say active; else inactive.

Allowed values:activeinactivependingsuspendedterminated

Example:active

carrierStatusstringrequired

The carrier’s status for the assignment.

Allowed values:activeinactivependingsuspended

Example:active

partnerStatusstringrequired

The distribution organization’s status for the assignment.

Allowed values:activeinactive

Example:active

uplineContractAssignmentIdstring

A contract assignment’s ID, a TypeID with the prefix contractassignment.

Match pattern:^contractassignment_[0-7][0-9a-hjkmnp-tv-z]{25}$

Example:contractassignment_01h455vb4pex5vsknk084sn02q

changeRequestIdstring

The TypeID of the change request that created the assignment. Absent on one created directly.

Match pattern:^changerequest_[0-7][0-9a-hjkmnp-tv-z]{25}$

Example:changerequest_01h455vb4pex5vsknk084sn02q

effectiveAtstring(date-time)required

When the assignment took effect.

Example:2026-02-01T00:00:00Z

terminatedAtstring(date-time)

When the assignment was terminated. Absent until it is.

Example:2026-06-30T00:00:00Z

accessOverrideobject | nullrequired

The access override as authored on this assignment. Null when it has none.

Example:{"version":3,"entries":[{"id":"accessoverrideentry_01h455vb4pex5vsknk084sn02q","productId":"product_01h455vb4pex5vsknk084sn02q","states":["CO","TX"],"effectiveOn":"2026-03-01","expiresOn":null,"commissionLevelIds":null,"annualizationIds":null}]}

Show Child Parameters
statesarray[string]required

A two-letter US state code.

Example:CO

get/v1/contract-assignments/{id}
 
application/json

List access overrides

Lists the access overrides your organization authored on the contract assignments under its contracts, ordered by contract then assignment. Each item names its assignment, contract and writing number, with the override’s entries. Narrow the list with contract_id; send the same contract_id with every page of one listing: a page_token sent with a different one is a 400.

get
https://api.sandbox.agentsync.io/platform/v1/access-overrides

Query Parameters

contract_idstring

A contract’s ID, a TypeID with the prefix contract.

Match pattern:^contract_[0-7][0-9a-hjkmnp-tv-z]{25}$

Example:contract_01h455vb4pex5vsknk084sn02q

page_sizeinteger

Items per page. Defaults to 50; a value above 200 is clamped to 200. A non-numeric or non-positive value is a 400.

Default:50

>= 1

Example:100

page_tokenstring

Opaque token from a previous response’s page.nextToken. Send it with the same filters as the request that returned it: it is signed for them. A token that is malformed, altered, sent with other filters, or longer than 1024 bytes is a 400.

Example:eyJrIjoiZXhhbXBsZSJ9

Response

application/json

One page of the access overrides your organization authored.

A page of access overrides.

itemsarray[object]required

One access override your organization authored, with the contract assignment it is on.

Example:{"contractAssignmentId":"contractassignment_01h455vb4pex5vsknk084sn02q","contractId":"contract_01h455vb4pex5vsknk084sn02q","effectiveWritingNumber":"W-1001","version":3,"entries":[{"id":"accessoverrideentry_01h455vb4pex5vsknk084sn02q","productId":"product_01h455vb4pex5vsknk084sn02q","states":["CO","TX"],"effectiveOn":"2026-03-01","expiresOn":null,"commissionLevelIds":null,"annualizationIds":null}]}

Show Child Parameters
pageobjectrequired

Pagination metadata of a collection response. nextToken is absent on the last page; pass it back as the page_token query parameter to continue.

Example:{"nextToken":"eyJrIjoiZXhhbXBsZSJ9"}

Show Child Parameters
get/v1/access-overrides
 
application/json

List the producers your organization may see, or look one up by NPN

Without npn, returns one page of the producers your organization may see: the persons holding a contract assignment that is not terminated under a contract your organization is a party to, then the persons holding an active producer role at your organization. A terminated contract assignment does not make a producer visible; pending, active, suspended and inactive ones do. Each producer appears once in a walk over unchanging data; a producer who gains or loses a contract assignment while you page can be missed or listed twice. A page holds at most 100 producers, whatever page_size asks for above that, and can hold fewer, or none, with a next page still to come: continue while page.nextToken is present. A page token is signed for your organization and the status filter it was handed out with, and is a 400 with any other.

With npn, returns the producer holding that National Producer Number, as a list of at most one, when your organization may see them. An NPN no person holds gets the same answer as a producer your organization may not see: a 404, or the 422 of a roster too large to search, so the answer never tells whether the NPN is held. npn cannot be combined with status or page_token.

Responses are sent with Cache-Control: no-store.

get
https://api.sandbox.agentsync.io/platform/v1/producers

Query Parameters

npnstring

Look up the producer holding this National Producer Number. Not one to ten digits, or zero, is a 400.

Match pattern:^[0-9]{1,10}$

Example:12345678

statusstring

Only the producers with this status. Cannot be combined with npn.

Allowed values:activedeactivated

Example:active

page_sizeinteger

Items per page. Defaults to 50; a value above 200 is clamped to 200. A non-numeric or non-positive value is a 400.

Default:50

>= 1

Example:100

page_tokenstring

Opaque token from a previous response’s page.nextToken. Send it with the same filters as the request that returned it: it is signed for them. A token that is malformed, altered, sent with other filters, or longer than 1024 bytes is a 400.

Example:eyJrIjoiZXhhbXBsZSJ9

Response

application/json

One page of the producers your organization may see, or, with npn, the producer holding it.

A page of producers.

itemsarray[object]required

A producer your organization may see: a person holding a contract assignment that is not terminated under one of its contracts, or an active producer role at it. The names are null when the person has no profile.

Example:{"id":"person_01h455vb4pex5vsknk084sn02q","npn":12345678,"status":"active","firstName":"Jane","lastName":"Smith","preferredFirstName":null}

Show Child Parameters
pageobjectrequired

Pagination metadata of a collection response. nextToken is absent on the last page; pass it back as the page_token query parameter to continue.

Example:{"nextToken":"eyJrIjoiZXhhbXBsZSJ9"}

Show Child Parameters
get/v1/producers
 
application/json

Get a producer

Returns one producer your organization may see, as for the lookup by NPN, with their profile and every contract assignment that is not terminated they hold under your organization’s contracts. The SSN is served as its last four digits only. A platform service failing fails the whole call with a 503: a partial producer is never returned. A producer with more than 500 contract assignments that are not terminated under your organization’s contracts is a 422 assignments_over_cap; page through GET /v1/contract-assignments?person_id= for them instead, skipping those whose status is terminated. That list also serves the producer’s terminated contract assignments, which this detail leaves out. Responses are sent with Cache-Control: no-store.

get
https://api.sandbox.agentsync.io/platform/v1/producers/{id}

Path Parameters

idstringrequired

A person’s ID, a TypeID with the prefix person.

Match pattern:^person_[0-7][0-9a-hjkmnp-tv-z]{25}$

Example:person_01h455vb4pex5vsknk084sn02q

Response

application/json

The producer.

Producer

One producer: the summary’s fields, the rest of the profile, and every contract assignment that is not terminated the producer holds under your organization’s contracts. A profile field not on file is null.

idstringrequired

A person’s ID, a TypeID with the prefix person.

Match pattern:^person_[0-7][0-9a-hjkmnp-tv-z]{25}$

Example:person_01h455vb4pex5vsknk084sn02q

npninteger | null(int64)required

The producer’s National Producer Number. Null when none is on file.

Example:12345678

statusstringrequired

deactivated once the person has been deactivated, else active.

Allowed values:activedeactivated

Example:active

firstNamestring | nullrequired

The producer’s legal first name.

Example:Jane

lastNamestring | nullrequired

The producer’s legal last name.

Example:Smith

preferredFirstNamestring | nullrequired

The first name the producer goes by, when it differs.

Example:Janie

middleNamestring | nullrequired

The producer’s middle name.

Example:Quincy

suffixstring | nullrequired

The producer’s name suffix.

Example:JR

deactivatedAtstring | null(date-time)required

When the person was deactivated. Null while active.

Example:2026-06-30T00:00:00Z

dateOfBirthstring | null(date)required

The producer’s date of birth.

Example:1990-05-15

residentStatestring | nullrequired

The two-letter code of the producer’s resident state.

Example:CO

emailstring | nullrequired

The producer’s primary email address.

Example:jane.smith@example.com

ssnLastFourstring | nullrequired

The last four digits of the producer’s SSN. The rest of the number is never served.

Match pattern:^[0-9]{4}$

Example:1234

addressesarray[object]required

One of a producer’s addresses.

Example:{"type":"physical","addressLine1":"123 Main St","addressLine2":null,"city":"Denver","county":"Denver","state":"CO","zip":"80202","country":"US","preferred":true}

Show Child Parameters
phonesarray[object]required

One of a producer’s phone numbers.

Example:{"type":"cell","number":"3035551234","extension":null,"preferred":true}

Show Child Parameters
contractAssignmentsarray[object]required

A contract assignment under a contract your organization is a party to: one producer, a person or a firm, placed on one of the contract’s products.

Example:{"id":"contractassignment_01h455vb4pex5vsknk084sn02q","contractId":"contract_01h455vb4pex5vsknk084sn02q","productId":"product_01h455vb4pex5vsknk084sn02q","producerType":"individual","personId":"person_01h455vb4pex5vsknk084sn02q","writingNumber":"W-1001","status":"active","carrierStatus":"active","partnerStatus":"active","effectiveAt":"2026-02-01T00:00:00Z"}

Show Child Parameters
get/v1/producers/{id}
 
application/json