List tasks

Lists the tasks your organization reaches: those raised by a requirement set your organization imposed, and those waiting in one of its queues. Narrow the list with producer_id, contract_assignment_id and state, alone or together. Send the same filters with every page of one listing. With contract_assignment_id a page can hold fewer items than page_size, or none, and still carry a nextToken; keep reading until the page has no nextToken.

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

Query Parameters

producer_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

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_01h455vb4pex5vsknk084sn02q

statearray[string]

A task state.

Allowed values:not_startedin_progressreturnedcompletedapprovedrejectedskippedclosed

Example:in_progress

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 tasks your organization reaches.

A page of tasks.

itemsarray[object]required

A task your organization reaches: one raised by a requirement set your organization imposed, or one waiting in one of its queues. Who the work is about is subjectPersonId for a person, or subjectOrganizationId for an organization such as a firm; one of the two is present.

Example:{"id":"task_01h455vb4pex5vsknk084sn02q","name":"Background questions","taskType":"work","state":"in_progress","subjectPersonId":"person_01h455vb4pex5vsknk084sn02q","required":true,"locked":false,"owner":{"kind":"person","personId":"person_01h455vb4pex5vsknk084sn02q"},"createdAt":"2026-03-02T09:30:00Z","updatedAt":"2026-03-03T14: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/tasks
 
application/json

Get a task

Returns one task your organization reaches, with its slots and the latest answer at each. A sensitive position’s answer is always masked. A task your organization does not reach is answered as one that does not exist.

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

Path Parameters

idstringrequired

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

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

Example:task_01h455vb4pex5vsknk084sn02q

Response

application/json

The task.

Task

One task: the list’s fields except the name and timestamps, the requirement set and contract assignment behind it, and its slots and answers.

idstringrequired

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

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

Example:task_01h455vb4pex5vsknk084sn02q

taskTypestringrequired

The kind of task, as on the list.

Allowed values:workapprovalreview_submitforms_signature

Example:work

statestringrequired

Where the task sits in its lifecycle.

Allowed values:not_startedin_progressreturnedcompletedapprovedrejectedskippedclosed

Example:in_progress

subjectPersonIdstring

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

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

Example:person_01h455vb4pex5vsknk084sn02q

subjectOrganizationIdstring

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

requiredbooleanrequired

Whether the task is a required member of its requirement set.

Example:true

lockedbooleanrequired

Whether the task waits on others before it can be completed.

ownerobject

Who owns a task: a named person, or a queue that a role at an organization works from. A person whom the requirement set’s rules hide from your organization is shown as the queue the task was written for instead; any other named owner is shown by personId. Absent when the task has no owner.

Example:{"kind":"queue","queue":{"organizationId":"org_01h455vb4pex5vsknk084sn02q","persona":"compliance_reviewer"}}

Show Child Parameters
requirementSetobject | nullrequired

The requirement set, at the revision, that raised the task. Null on a task raised on its own rather than by a set, and on one raised by a set another organization imposed.

Example:{"id":"requirementset_01h455vb4pex5vsknk084sn02q","revision":3}

Show Child Parameters
contractAssignmentIdstring | nullrequired

The contract assignment the change request that raised the task created, modified, or terminated; contractAssignmentRelation says which. It is the same link GET /v1/tasks?contract_assignment_id= follows, so a task naming an assignment here is one that filter returns. Null on a task raised on its own, one raised without a change request, one raised by a change request that terminates a whole contract, one raised by a set another organization imposed, and one whose change request has not been applied yet.

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

Example:contractassignment_01h455vb4pex5vsknk084sn02q

contractAssignmentRelationstring | nullrequired

How the change request that raised the task touched contractAssignmentId: created (it added the assignment), modified (it changed the assignment’s upline, commission level, annualization, states or writing number) or terminated (it ended the assignment). Null exactly when contractAssignmentId is. More values may be added; treat an unknown value as another relation to the same assignment.

Example:created

dependsOnarray[string]required

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

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

Example:task_01h455vb4pex5vsknk084sn02q

slotsarray[object]required

One position a task asks to be answered. A single slot is answered as a whole; a section slot is answered per member field, listed in fields.

Example:{"key":"residentState","kind":"single","required":true,"locked":false,"sensitive":false}

Show Child Parameters
submissionsarray[object]required

The latest answer at one position: slotKey, with fieldKey for a section slot’s field and entryId for a repeatable section’s entry.

Example:{"slotKey":"ssn","performer":{"kind":"person","personId":"person_01h455vb4pex5vsknk084sn02q"},"value":{"kind":"masked"}}

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

Get a link to a task's file

Returns a link to the file that answers one slot of a task your organization reaches, good for ten minutes. The link is presigned: anyone who holds it can download the file until expiresAt, so treat it as a secret, and don’t log, store or share it. Ask again for a new link once it expires. A link is issued only after the file’s malware scan has found it clean. A task your organization does not reach is answered as one that does not exist, and a slot whose answer the task detail masks, such as a sensitive one, is answered as one with no file.

get
https://api.sandbox.agentsync.io/platform/v1/tasks/{id}/files/{slot}

Path Parameters

idstringrequired

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

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

Example:task_01h455vb4pex5vsknk084sn02q

slotstringrequired

The slot’s key, as slots[].key on the task.

Example:errorsAndOmissionsCertificate

Response

application/json

The file and a link to it.

TaskFileLink

A file that answers one slot of a task, and a presigned link to it.

urlstring(uri)required

A presigned link to the file, good until expiresAt. Anyone who holds it can download the file, so treat it as a secret, and don’t log, store or share it.

Example:https://files.example.com/task-files/abc123?X-Amz-Signature=redacted

expiresAtstring(date-time)required

When the link stops working, ten minutes after it was issued.

Example:2026-11-10T17:10:00Z

fileobjectrequired

The file the link downloads.

Example:{"name":"license.pdf","contentType":"application/pdf","sizeBytes":48213,"sha256":"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"}

Show Child Parameters
get/v1/tasks/{id}/files/{slot}
 
application/json

List requirement sets

Lists the requirement sets your organization authored that have been published (active) or archived, in the order the requirements service returns them. Draft sets are not served. Archived sets stay listed because tasks may reference them. Drafts are left out of each page after it is read, so a page can hold fewer items than page_size, or none, and still carry a nextToken: keep paging until nextToken is absent. Each item is the set without its members; read one set for those. Narrow the list with category; send the same category with every page of one listing.

get
https://api.sandbox.agentsync.io/platform/v1/requirement-sets

Query Parameters

categorystring

How a requirement set is filed.

Allowed values:producer_onboardingproducer_maintenanceproducer_offboardingpartner_onboardingpartner_maintenancepartner_offboardinghierarchy_maintenance

Example:producer_onboarding

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 requirement sets.

A page of requirement sets.

itemsarray[object]required

A requirement set your organization authored: a bundle of task definitions that raises a task from each of its members when it is applied to a producer. Only published (active) and archived sets are served, never drafts. The list serves it without its members.

Example:{"id":"requirementset_01h455vb4pex5vsknk084sn02q","name":"Producer onboarding - CA","description":"Onboarding for new California producers","category":"producer_onboarding","status":"active","revision":3,"publishedAt":"2026-02-01T12:00:00Z","createdAt":"2026-01-15T17:04:05Z","updatedAt":"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/requirement-sets
 
application/json

Get a requirement set

Returns one requirement set your organization authored, with its members, when it has been published (active) or archived. Draft sets are not served: a draft is answered as a set that does not exist. Archived sets stay readable because tasks may reference them. It serves the set at its current revision only: earlier revisions are not kept. A task names the set and the revision that raised it, so compare that revision with this one’s to know whether the set has changed since. A set of any other organization is answered as one that does not exist.

get
https://api.sandbox.agentsync.io/platform/v1/requirement-sets/{id}

Path Parameters

idstringrequired

A requirement set’s ID, a TypeID with the prefix requirementset.

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

Example:requirementset_01h455vb4pex5vsknk084sn02q

Response

application/json

The requirement set at its current revision.

RequirementSet

One requirement set at its current revision: the list’s fields and the set’s members. Earlier revisions are not served, and neither are draft sets: only sets that have been published (active) or archived.

idstringrequired

A requirement set’s ID, a TypeID with the prefix requirementset.

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

Example:requirementset_01h455vb4pex5vsknk084sn02q

namestringrequired

The set’s name, unique within your organization.

Example:Producer onboarding - CA

descriptionstring

Free text describing the set. Absent when it has none.

Example:Onboarding for new California producers

categorystring

How a requirement set is filed.

Allowed values:producer_onboardingproducer_maintenanceproducer_offboardingpartner_onboardingpartner_maintenancepartner_offboardinghierarchy_maintenance

Example:producer_onboarding

statusstringrequired

Where the set sits in its lifecycle: active is published; archived is retired, and stays readable because tasks may reference it. Draft sets, never published, are not served.

Allowed values:activearchived

Example:active

revisionintegerrequired

A counter that advances whenever the set’s composition, or a setting a task raised from it carries, changes; a rename does not advance it. A task names the set and the revision that raised it, so compare the two to know whether the set has changed since.

Example:3

publishedAtstring(date-time)

When the set was first published. Absent when it never has been; archiving does not clear it.

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

archivedAtstring(date-time)

When the set was archived. Absent while it is not archived.

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

createdAtstring(date-time)required

When the set was created.

Example:2026-01-15T17:04:05Z

updatedAtstring(date-time)required

When the set last changed.

Example:2026-03-02T09:30:00Z

membersarray[object]required

One member of a requirement set: the task definition a task is raised from when the set is applied, and whether that task is required.

Example:{"id":"requirement_01h455vb4pex5vsknk084sn02q","taskType":"work","required":true,"taskDefinitionId":"taskdefinition_01h455vb4pex5vsknk084sn02q"}

Show Child Parameters
get/v1/requirement-sets/{id}
 
application/json