List contracts

Lists the contracts your organization is a party to, in the order AgentSync recorded them. Each contract names the organization on its other side and the buckets and products it covers. Narrow the list with status; send the same status with every page of one listing.

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

Query Parameters

statusstring

Only contracts with this status. A value other than active or terminated is a 400.

Allowed values:activeterminated

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 your organization’s contracts.

A page of contracts.

itemsarray[object]required

A contract your organization is a party to: the paper between a carrier and a distribution organization that the carrier’s products are placed under.

Example:{"id":"contract_01h455vb4pex5vsknk084sn02q","name":"Acme Life 2026","code":"ACME-2026","status":"active","provisioningMode":"full_onboarding","counterpartyOrganizationId":"org_01h455vb4pex5vsknk084sn02q","productIds":["product_01h455vb4pex5vsknk084sn02q"],"createdAt":"2026-01-15T17:04:05Z","lastChangedAt":"2026-03-02T09:30: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/contracts
 
application/json

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