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

List organizations

Lists the organizations your organization may see: your own organization, the counterparties on its active associations, and the organizations it controls through a live relationship. Your organization is always the one your token’s service account belongs to; nothing in the request can name another. Your own organization comes first, then the counterparties, then the organizations it controls, and relationship says which each is. An organization that is both a counterparty and one your organization controls is listed once for each. A counterparty AgentSync holds no organization record for is left out, so an organization ID you see elsewhere, such as a contract’s counterpartyOrganizationId, may not appear here. A page may hold fewer items than page_size, or none, while more remain: only page.nextToken says whether there are more pages.

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

Query Parameters

page_sizeinteger

Items per page. Defaults to 50; a value above 50 is clamped to 50, since each organization on a page is read on its own. A non-numeric or non-positive value is a 400.

Default:50

>= 1

Example:25

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 organizations your organization may see.

OrganizationList

A page of the organizations your organization may see, one item per relationship an organization holds to yours: an organization that is both a counterparty and one yours controls appears twice, with the same id. Each item is read from the organization directory one at a time, so a page holds at most 50 items, fewer than the API-wide page size limit.

itemsarray[object]required

An organization your organization may see, and one way it stands to yours. An organization that stands to yours in more than one way is listed once for each, with the same id and a different relationship, so to count organizations, de-duplicate by id. Only the child item carries parentId, so items for the same organization can differ in it.

<= 50 items

Example:{"id":"org_01kq0w4h7xf1e8t4zb2m5c6d7e","type":"agency","legalName":"Acme Captive Agency","dbaNames":[],"npn":1234567,"feinLastFour":"5678","parentId":"org_01h455vb4pex5vsknk084sn02q","relationship":"child"}

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/organizations
 
application/json

Contract

object

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.

idstringrequired

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

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

Example:contract_01h455vb4pex5vsknk084sn02q

namestringrequired

The contract’s name.

Example:Acme Life 2026

codestring

The carrier’s code for the contract. Absent when it has none.

Example:ACME-2026

statusstringrequired

active until the contract is terminated, then terminated.

Allowed values:activeterminated

Example:active

terminatedAtstring(date-time)

When the contract was terminated. Absent while it is active.

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

provisioningModestringrequired

How placements under the contract are provisioned. full_onboarding runs the carrier’s onboarding for each placement; under auto_provision and internal_only a new placement is activated with the carrier at once.

Allowed values:auto_provisionfull_onboardinginternal_only

Example:full_onboarding

counterpartyOrganizationIdstringrequired

The organization on the contract’s other side: the distribution organization when you are the carrier, the carrier when you are not.

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

Example:org_01h455vb4pex5vsknk084sn02q

productIdsarray[string]required

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

createdAtstring(date-time)required

When the contract was created.

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

lastChangedAtstring(date-time)required

When the contract last changed.

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

Example