---
title: "AgentSync Platform API"
url: "https://developer-staging.agentsync.io/apis/platform-api/versions/8177e94d-86f2-48a5-8ed6-d5fbcb69f38a"
---

# AgentSync Platform API

OpenAPI specification document.

```json
{"openapi":"3.1.1","info":{"title":"AgentSync Platform API","description":"Use the AgentSync Platform API to programmatically retrieve your organization's\ncontracts, contract assignments, producers, organizations, tasks and requirement\nsets. The Getting started guide published beside this reference covers credentials,\npaging, errors and webhooks.\n\nCall `https://api.{environment}.agentsync.io/platform`, then the operation's path,\nwhich begins `/v1`. Every request carries a client-credentials access token issued\nto a service account, with the scope the operation names.\n\nLists are paged: `page_size` defaults to 50, a value above 200 is lowered to 200\n(`GET /v1/organizations` lowers any value above 50 to 50), and `page_token` (at\nmost 1024 bytes) is the previous page's `page.nextToken`.\nAn error carries its code in its first `details` entry; the `ErrorCode` schema\nlists them. Two responses can carry no code: a `500` can have an empty body or a\nmessage only (treat it as `internal_error`), and a `429` from the API gateway has a\nmessage only (treat any `429` as \"slow down\").\n\nAgentSync can notify your system of changes through webhooks; the\n[AgentSync event catalog](https://www.svix.com/event-types/us/org_2xMyo9eZPfu9PDjNp4Zp1gw8pML/)\nlists the event types. Freshness is best-effort: a change is normally readable\nwithin a few seconds of its event; if not, retry with backoff for up to about a\nminute. Re-read the records you hold periodically to catch anything an event did\nnot carry.\n\nVersion 1 (`/v1`) only adds things: new operations, optional parameters, response\nfields, error codes and enum values. Nothing is removed, renamed or changed in\nmeaning. Ignore response fields you don't recognize. If you get an error code or\nenum value you don't recognize, handle it by its HTTP status. Breaking changes are\nannounced in advance.\n","version":"0.0.1"},"servers":[{"url":"https://api.{environment}.agentsync.io/platform","description":"AgentSync API gateway","variables":{"environment":{"default":"sandbox","enum":["sandbox"]}}}],"security":[{"bearerAuth":[],"oauth2":[]}],"paths":{"/v1/contracts":{"get":{"operationId":"listContracts","summary":"List contracts","description":"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.","security":[{"oauth2":["platform.contracts.read"]}],"parameters":[{"name":"status","in":"query","description":"Only contracts with this status. A value other than active or terminated is a 400.","required":false,"schema":{"type":"string","enum":["active","terminated"]},"example":"active"},{"$ref":"#/components/parameters/PageSize"},{"$ref":"#/components/parameters/PageToken"}],"responses":{"200":{"description":"One page of your organization's contracts.","content":{"application/json":{"schema":{"type":"object","description":"A page of contracts.","required":["items","page"],"properties":{"items":{"type":"array","description":"The contracts on this page, empty when there are none.","items":{"$ref":"#/components/schemas/Contract"}},"page":{"$ref":"#/components/schemas/Page"}}},"example":{"items":[{"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"}],"page":{"nextToken":"eyJrIjoiZXhhbXBsZSJ9"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/contract-assignments":{"get":{"operationId":"listContractAssignments","summary":"List contract assignments","description":"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.","security":[{"oauth2":["platform.contract-assignments.read"]}],"parameters":[{"name":"person_id","in":"query","description":"Only assignments of this person. A value that is not a person TypeID is a 400.","required":false,"schema":{"$ref":"#/components/schemas/PersonId"},"example":"person_01h455vb4pex5vsknk084sn02q"},{"name":"org_id","in":"query","description":"Only assignments under your contracts with this organization, the one on the contracts' other side. A value that is not an organization TypeID is a 400.","required":false,"schema":{"$ref":"#/components/schemas/OrganizationId"},"example":"org_01h455vb4pex5vsknk084sn02q"},{"name":"npn","in":"query","description":"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.","required":false,"schema":{"type":"string","pattern":"^[0-9]{1,10}$"},"example":"12345678"},{"name":"upline_contract_assignment_id","in":"query","description":"Only assignments directly under this contract assignment: those whose uplineContractAssignmentId, as this list returns it, is this id. Page down a hierarchy one level at a time with it. An id that does not exist, or that your organization cannot see, returns an empty page, not an error; an assignment whose upline is hidden from you is never listed under it. A value that is not a contract assignment TypeID is a 400.","required":false,"schema":{"$ref":"#/components/schemas/ContractAssignmentId"},"example":"contractassignment_01h455vb4pex5vsknk084sn02r"},{"name":"status","in":"query","description":"Only assignments with this status. A value outside the list is a 400.","required":false,"schema":{"type":"string","enum":["active","inactive","pending","suspended","terminated"]},"example":"active"},{"$ref":"#/components/parameters/PageSize"},{"$ref":"#/components/parameters/PageToken"}],"responses":{"200":{"description":"One page of the contract assignments under your organization's contracts.","content":{"application/json":{"schema":{"type":"object","description":"A page of contract assignments.","required":["items","page"],"properties":{"items":{"type":"array","description":"The contract assignments on this page, empty when there are none.","items":{"$ref":"#/components/schemas/ContractAssignmentSummary"}},"page":{"$ref":"#/components/schemas/Page"}}},"example":{"items":[{"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"}],"page":{"nextToken":"eyJrIjoiZXhhbXBsZSJ9"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/contract-assignments/{id}":{"get":{"operationId":"getContractAssignment","summary":"Get a contract assignment","description":"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.","security":[{"oauth2":["platform.contract-assignments.read"]}],"parameters":[{"name":"id","in":"path","description":"The contract assignment's TypeID.","required":true,"schema":{"$ref":"#/components/schemas/ContractAssignmentId"},"example":"contractassignment_01h455vb4pex5vsknk084sn02q"}],"responses":{"200":{"description":"The contract assignment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractAssignment"},"example":{"id":"contractassignment_01h455vb4pex5vsknk084sn02q","contractId":"contract_01h455vb4pex5vsknk084sn02q","productId":"product_01h455vb4pex5vsknk084sn02q","producerType":"individual","personId":"person_01h455vb4pex5vsknk084sn02q","writingNumber":"W-1001","status":"active","carrierStatus":"active","partnerStatus":"active","uplineContractAssignmentId":"contractassignment_01h455vb4pex5vsknk084sn02r","changeRequestId":"changerequest_01h455vb4pex5vsknk084sn02q","effectiveAt":"2026-02-01T00:00:00Z","states":["CO","TX"],"accessOverride":{"version":3,"entries":[{"id":"accessoverrideentry_01h455vb4pex5vsknk084sn02q","productId":"product_01h455vb4pex5vsknk084sn02q","states":["CO","TX"],"effectiveOn":"2026-03-01","expiresOn":null,"commissionLevelIds":null,"annualizationIds":null}]}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/ContractAssignmentNotFound"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/access-overrides":{"get":{"operationId":"listAccessOverrides","summary":"List access overrides","description":"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.","security":[{"oauth2":["platform.contract-assignments.read"]}],"parameters":[{"name":"contract_id","in":"query","description":"Only overrides under this contract. A contract your organization is not a party to returns an empty page. A value that is not a contract TypeID is a 400.","required":false,"schema":{"$ref":"#/components/schemas/ContractId"},"example":"contract_01h455vb4pex5vsknk084sn02q"},{"$ref":"#/components/parameters/PageSize"},{"$ref":"#/components/parameters/PageToken"}],"responses":{"200":{"description":"One page of the access overrides your organization authored.","content":{"application/json":{"schema":{"type":"object","description":"A page of access overrides.","required":["items","page"],"properties":{"items":{"type":"array","description":"The access overrides on this page, empty when there are none.","items":{"$ref":"#/components/schemas/AccessOverrideListItem"}},"page":{"$ref":"#/components/schemas/Page"}}},"example":{"items":[{"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}]}],"page":{"nextToken":"eyJrIjoiZXhhbXBsZSJ9"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/producers":{"get":{"operationId":"listProducers","summary":"List the producers your organization may see, or look one up by NPN","description":"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.\n\nWith 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.\n\nResponses are sent with Cache-Control: no-store.","security":[{"oauth2":["platform.producers.read"]}],"parameters":[{"name":"npn","in":"query","description":"Look up the producer holding this National Producer Number. Not one to ten digits, or zero, is a 400.","required":false,"schema":{"type":"string","pattern":"^[0-9]{1,10}$"},"example":"12345678"},{"name":"status","in":"query","description":"Only the producers with this status. Cannot be combined with npn.","required":false,"schema":{"type":"string","enum":["active","deactivated"]},"example":"active"},{"$ref":"#/components/parameters/PageSize"},{"$ref":"#/components/parameters/PageToken"}],"responses":{"200":{"description":"One page of the producers your organization may see, or, with npn, the producer holding it.","headers":{"Cache-Control":{"description":"Always no-store, since the response carries persons' data.","schema":{"type":"string"},"example":"no-store"}},"content":{"application/json":{"schema":{"type":"object","description":"A page of producers.","required":["items","page"],"properties":{"items":{"type":"array","description":"The producers on this page; with npn, the one holding it.","items":{"$ref":"#/components/schemas/ProducerSummary"}},"page":{"$ref":"#/components/schemas/Page"}}},"example":{"items":[{"id":"person_01h455vb4pex5vsknk084sn02q","npn":12345678,"status":"active","firstName":"Jane","lastName":"Smith","preferredFirstName":null}],"page":{"nextToken":"eyJrIjoicHJvZHVjZXJzIn0.c2lnbmF0dXJl"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/ProducerNotFound"},"422":{"$ref":"#/components/responses/ProducerRosterTooLarge"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/producers/{id}":{"get":{"operationId":"getProducer","summary":"Get a producer","description":"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.","security":[{"oauth2":["platform.producers.read"]}],"parameters":[{"name":"id","in":"path","description":"The producer's person TypeID.","required":true,"schema":{"$ref":"#/components/schemas/PersonId"},"example":"person_01h455vb4pex5vsknk084sn02q"}],"responses":{"200":{"description":"The producer.","headers":{"Cache-Control":{"description":"Always no-store, since the response carries a person's data.","schema":{"type":"string"},"example":"no-store"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Producer"},"example":{"id":"person_01h455vb4pex5vsknk084sn02q","npn":12345678,"status":"active","firstName":"Jane","lastName":"Smith","preferredFirstName":null,"middleName":"Quincy","suffix":null,"deactivatedAt":null,"dateOfBirth":"1990-05-15","residentState":"CO","email":"jane.smith@example.com","ssnLastFour":"1234","addresses":[{"type":"physical","addressLine1":"123 Main St","addressLine2":null,"city":"Denver","county":"Denver","state":"CO","zip":"80202","country":"US","preferred":true}],"phones":[{"type":"cell","number":"3035551234","extension":null,"preferred":true}],"contractAssignments":[{"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"}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/ProducerNotFound"},"422":{"$ref":"#/components/responses/ProducerUnprocessable"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/organizations":{"get":{"operationId":"listOrganizations","summary":"List organizations","description":"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.","tags":["Organizations"],"security":[{"oauth2":["platform.organizations.read"]}],"parameters":[{"$ref":"#/components/parameters/OrganizationsPageSize"},{"$ref":"#/components/parameters/PageToken"}],"responses":{"200":{"description":"One page of the organizations your organization may see.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/tasks":{"get":{"operationId":"listTasks","summary":"List tasks","description":"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.","security":[{"oauth2":["platform.tasks.read"]}],"parameters":[{"name":"producer_id","in":"query","description":"Only tasks about this person. A value that is not a person TypeID is a 400.","required":false,"schema":{"$ref":"#/components/schemas/PersonId"},"example":"person_01h455vb4pex5vsknk084sn02q"},{"name":"contract_assignment_id","in":"query","description":"Only tasks raised by the requirement sets your organization imposed through a change request applied to this contract assignment: the one that created it, and any that modified it or terminated it. These are exactly the tasks whose contractAssignmentId is this assignment. An assignment your organization cannot see, or one no change request applied to, returns an empty page. A value that is not a contract assignment TypeID is a 400.","required":false,"schema":{"$ref":"#/components/schemas/ContractAssignmentId"},"example":"contractassignment_01h455vb4pex5vsknk084sn02q"},{"name":"state","in":"query","description":"Only tasks in these states. Repeat the parameter or send one comma-separated value. A value outside the list is a 400.","required":false,"style":"form","explode":true,"schema":{"type":"array","description":"The states to include.","items":{"type":"string","description":"A task state.","enum":["not_started","in_progress","returned","completed","approved","rejected","skipped","closed"],"example":"in_progress"}},"example":["not_started","in_progress"]},{"$ref":"#/components/parameters/PageSize"},{"$ref":"#/components/parameters/PageToken"}],"responses":{"200":{"description":"One page of the tasks your organization reaches.","content":{"application/json":{"schema":{"type":"object","description":"A page of tasks.","required":["items","page"],"properties":{"items":{"type":"array","description":"The tasks on this page, empty when there are none.","items":{"$ref":"#/components/schemas/TaskSummary"}},"page":{"$ref":"#/components/schemas/Page"}}},"example":{"items":[{"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"}],"page":{"nextToken":"eyJrIjoiZXhhbXBsZSJ9"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/tasks/{id}":{"get":{"operationId":"getTask","summary":"Get a task","description":"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.","security":[{"oauth2":["platform.tasks.read"]}],"parameters":[{"name":"id","in":"path","description":"The task's TypeID.","required":true,"schema":{"$ref":"#/components/schemas/TaskId"},"example":"task_01h455vb4pex5vsknk084sn02q"}],"responses":{"200":{"description":"The task.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"},"example":{"id":"task_01h455vb4pex5vsknk084sn02q","taskType":"work","state":"in_progress","subjectPersonId":"person_01h455vb4pex5vsknk084sn02q","required":true,"locked":false,"owner":{"kind":"person","personId":"person_01h455vb4pex5vsknk084sn02q"},"requirementSet":{"id":"requirementset_01h455vb4pex5vsknk084sn02q","revision":3},"contractAssignmentId":"contractassignment_01h455vb4pex5vsknk084sn02q","contractAssignmentRelation":"created","dependsOn":[],"slots":[{"key":"residentState","kind":"single","required":true,"locked":false,"sensitive":false},{"key":"ssn","kind":"single","required":true,"locked":false,"sensitive":true}],"submissions":[{"slotKey":"residentState","performer":{"kind":"person","personId":"person_01h455vb4pex5vsknk084sn02q"},"value":{"kind":"inline","inline":"CO"}},{"slotKey":"ssn","performer":{"kind":"person","personId":"person_01h455vb4pex5vsknk084sn02q"},"value":{"kind":"masked"}}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/TaskNotFound"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/tasks/{id}/files/{slot}":{"get":{"operationId":"getTaskFile","summary":"Get a link to a task's file","description":"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.","security":[{"oauth2":["platform.tasks.read"]}],"parameters":[{"name":"id","in":"path","description":"The task's TypeID.","required":true,"schema":{"$ref":"#/components/schemas/TaskId"},"example":"task_01h455vb4pex5vsknk084sn02q"},{"name":"slot","in":"path","description":"The slot's key, as slots[].key on the task.","required":true,"schema":{"type":"string"},"example":"errorsAndOmissionsCertificate"}],"responses":{"200":{"description":"The file and a link to it.","headers":{"Cache-Control":{"description":"no-store. The link is short-lived and must not be cached.","schema":{"type":"string"},"example":"no-store"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskFileLink"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/TaskFileNotFound"},"409":{"$ref":"#/components/responses/TaskFileNotClean"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/requirement-sets":{"get":{"operationId":"listRequirementSets","summary":"List requirement sets","description":"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.","security":[{"oauth2":["platform.requirement-sets.read"]}],"parameters":[{"name":"category","in":"query","description":"Only sets filed under this category. A set with no category never matches. A value outside the list is a 400.","required":false,"schema":{"$ref":"#/components/schemas/RequirementSetCategory"},"example":"producer_onboarding"},{"$ref":"#/components/parameters/PageSize"},{"$ref":"#/components/parameters/PageToken"}],"responses":{"200":{"description":"One page of your organization's requirement sets.","content":{"application/json":{"schema":{"type":"object","description":"A page of requirement sets.","required":["items","page"],"properties":{"items":{"type":"array","description":"The requirement sets on this page, empty when there are none.","items":{"$ref":"#/components/schemas/RequirementSetSummary"}},"page":{"$ref":"#/components/schemas/Page"}}},"example":{"items":[{"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"}],"page":{"nextToken":"eyJrIjoiZXhhbXBsZSJ9"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/requirement-sets/{id}":{"get":{"operationId":"getRequirementSet","summary":"Get a requirement set","description":"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.","security":[{"oauth2":["platform.requirement-sets.read"]}],"parameters":[{"name":"id","in":"path","description":"The requirement set's TypeID.","required":true,"schema":{"$ref":"#/components/schemas/RequirementSetId"},"example":"requirementset_01h455vb4pex5vsknk084sn02q"}],"responses":{"200":{"description":"The requirement set at its current revision.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequirementSet"},"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","members":[{"id":"requirement_01h455vb4pex5vsknk084sn02q","taskType":"naic","required":true,"taskDefinitionId":"taskdefinition_01h455vb4pex5vsknk084sn02q"},{"id":"requirement_01h455vb4pex5vsknk084sn02r","taskType":"approval","required":false,"taskDefinitionId":"taskdefinition_01h455vb4pex5vsknk084sn02r"}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/RequirementSetNotFound"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"An OAuth 2.0 access token for a service account, sent as \"Authorization: Bearer <token>\"."},"oauth2":{"type":"oauth2","description":"How to get the access token: the client-credentials flow, with the client ID and secret AgentSync issued for your organization. The token host follows the environment, auth.<environment>.agentsync.io. Request only the scopes your integration needs.","flows":{"clientCredentials":{"tokenUrl":"https://auth.sandbox.agentsync.io/oauth2/token","scopes":{"platform.organizations.read":"Read organizations.","platform.contracts.read":"Read contracts.","platform.contract-assignments.read":"Read contract assignments.","platform.producers.read":"Read producers.","platform.tasks.read":"Read tasks.","platform.requirement-sets.read":"Read requirement sets."}}}}},"x-typeid-prefixes":{"description":"Every TypeID prefix a customer can see in a response or accept in a request, one entry per prefix. A prefix is frozen when the spec is published: it cannot be renamed or reused for another resource afterwards.","review":"This inventory is reviewed in full before the customer-facing production publish is added, because that publish is what freezes the prefixes. Reviewed 2026-11-17: all 11 prefixes are kept as they are, including product covering buckets.","prefixes":[{"prefix":"contract","resource":"Contract","schema":"#/components/schemas/Contract","example":"contract_01h455vb4pex5vsknk084sn02q"},{"prefix":"org","resource":"Organization","schema":"#/components/schemas/Organization","example":"org_01h455vb4pex5vsknk084sn02q"},{"prefix":"product","resource":"Product or bucket","schema":"#/components/schemas/ProductId","example":"product_01h455vb4pex5vsknk084sn02q"},{"prefix":"contractassignment","resource":"Contract assignment","schema":"#/components/schemas/ContractAssignmentSummary","example":"contractassignment_01h455vb4pex5vsknk084sn02q"},{"prefix":"accessoverrideentry","resource":"Access override entry","schema":"#/components/schemas/AccessOverrideEntry","example":"accessoverrideentry_01h455vb4pex5vsknk084sn02q"},{"prefix":"commissionlevel","resource":"Commission level","schema":"#/components/schemas/CommissionLevelId","example":"commissionlevel_01h455vb4pex5vsknk084sn02q"},{"prefix":"annualization","resource":"Annualization","schema":"#/components/schemas/AnnualizationId","example":"annualization_01h455vb4pex5vsknk084sn02q"},{"prefix":"person","resource":"Person","schema":"#/components/schemas/PersonId","example":"person_01h455vb4pex5vsknk084sn02q"},{"prefix":"changerequest","resource":"Change request","schema":"#/components/schemas/ChangeRequestId","example":"changerequest_01h455vb4pex5vsknk084sn02q"},{"prefix":"task","resource":"Task","schema":"#/components/schemas/TaskSummary","example":"task_01h455vb4pex5vsknk084sn02q"},{"prefix":"requirementset","resource":"Requirement set","schema":"#/components/schemas/RequirementSetId","example":"requirementset_01h455vb4pex5vsknk084sn02q"},{"prefix":"sectionentry","resource":"Task section entry","schema":"#/components/schemas/SectionEntryId","example":"sectionentry_01h455vb4pex5vsknk084sn02q"},{"prefix":"requirement","resource":"Requirement set member","schema":"#/components/schemas/RequirementSetMember","example":"requirement_01h455vb4pex5vsknk084sn02q"},{"prefix":"taskdefinition","resource":"Task definition","schema":"#/components/schemas/TaskDefinitionId","example":"taskdefinition_01h455vb4pex5vsknk084sn02q"}]},"schemas":{"Contract":{"type":"object","description":"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.","required":["id","name","status","provisioningMode","counterpartyOrganizationId","productIds","createdAt","lastChangedAt"],"properties":{"id":{"$ref":"#/components/schemas/ContractId"},"name":{"type":"string","description":"The contract's name.","example":"Acme Life 2026"},"code":{"type":"string","description":"The carrier's code for the contract. Absent when it has none.","example":"ACME-2026"},"status":{"type":"string","description":"active until the contract is terminated, then terminated.","enum":["active","terminated"],"example":"active"},"terminatedAt":{"type":"string","format":"date-time","description":"When the contract was terminated. Absent while it is active.","example":"2026-06-30T00:00:00Z"},"provisioningMode":{"type":"string","description":"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.","enum":["auto_provision","full_onboarding","internal_only"],"example":"full_onboarding"},"counterpartyOrganizationId":{"$ref":"#/components/schemas/OrganizationId","description":"The organization on the contract's other side: the distribution organization when you are the carrier, the carrier when you are not.","example":"org_01h455vb4pex5vsknk084sn02q"},"productIds":{"type":"array","description":"The TypeIDs of the buckets and products the contract covers, in id order. Empty when it covers none.","items":{"$ref":"#/components/schemas/ProductId"},"example":["product_01h455vb4pex5vsknk084sn02q"]},"createdAt":{"type":"string","format":"date-time","description":"When the contract was created.","example":"2026-01-15T17:04:05Z"},"lastChangedAt":{"type":"string","format":"date-time","description":"When the contract last changed.","example":"2026-03-02T09:30:00Z"}},"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"}},"ContractId":{"type":"string","description":"A contract's ID, a TypeID with the prefix contract.","pattern":"^contract_[0-7][0-9a-hjkmnp-tv-z]{25}$","example":"contract_01h455vb4pex5vsknk084sn02q"},"ProductId":{"type":"string","description":"The ID of a product or bucket of products, a TypeID with the prefix product.","pattern":"^product_[0-7][0-9a-hjkmnp-tv-z]{25}$","example":"product_01h455vb4pex5vsknk084sn02q"},"ContractAssignmentId":{"type":"string","description":"A contract assignment's ID, a TypeID with the prefix contractassignment.","pattern":"^contractassignment_[0-7][0-9a-hjkmnp-tv-z]{25}$","example":"contractassignment_01h455vb4pex5vsknk084sn02q"},"AccessOverrideEntryId":{"type":"string","description":"An access override entry's ID, a TypeID with the prefix accessoverrideentry.","pattern":"^accessoverrideentry_[0-7][0-9a-hjkmnp-tv-z]{25}$","example":"accessoverrideentry_01h455vb4pex5vsknk084sn02q"},"CommissionLevelId":{"type":"string","description":"A commission level's ID, a TypeID with the prefix commissionlevel.","pattern":"^commissionlevel_[0-7][0-9a-hjkmnp-tv-z]{25}$","example":"commissionlevel_01h455vb4pex5vsknk084sn02q"},"AnnualizationId":{"type":"string","description":"An annualization's ID, a TypeID with the prefix annualization.","pattern":"^annualization_[0-7][0-9a-hjkmnp-tv-z]{25}$","example":"annualization_01h455vb4pex5vsknk084sn02q"},"PersonId":{"type":"string","description":"A person's ID, a TypeID with the prefix person.","pattern":"^person_[0-7][0-9a-hjkmnp-tv-z]{25}$","example":"person_01h455vb4pex5vsknk084sn02q"},"ChangeRequestId":{"type":"string","description":"A change request's ID, a TypeID with the prefix changerequest.","pattern":"^changerequest_[0-7][0-9a-hjkmnp-tv-z]{25}$","example":"changerequest_01h455vb4pex5vsknk084sn02q"},"TaskId":{"type":"string","description":"A task's ID, a TypeID with the prefix task.","pattern":"^task_[0-7][0-9a-hjkmnp-tv-z]{25}$","example":"task_01h455vb4pex5vsknk084sn02q"},"RequirementSetId":{"type":"string","description":"A requirement set's ID, a TypeID with the prefix requirementset.","pattern":"^requirementset_[0-7][0-9a-hjkmnp-tv-z]{25}$","example":"requirementset_01h455vb4pex5vsknk084sn02q"},"SectionEntryId":{"type":"string","description":"The ID of one entry of a task's repeatable section, a TypeID with the prefix sectionentry.","pattern":"^sectionentry_[0-7][0-9a-hjkmnp-tv-z]{25}$","example":"sectionentry_01h455vb4pex5vsknk084sn02q"},"OrganizationId":{"type":"string","description":"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.","pattern":"^org_[0-7][0-9a-hjkmnp-tv-z]{25}$","example":"org_01h455vb4pex5vsknk084sn02q"},"Organization":{"type":"object","description":"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.","required":["id","type","legalName","dbaNames","npn","feinLastFour","parentId","relationship"],"properties":{"id":{"$ref":"#/components/schemas/OrganizationId"},"type":{"type":"string","description":"The kind of organization: carrier, carrier_group, agency, mga, mo or wholesale_broker. New kinds may be added, so treat a value you do not know as another kind of organization rather than an error.","example":"carrier"},"legalName":{"type":"string","description":"The organization's registered legal name.","example":"Acme Life Insurance Company"},"dbaNames":{"type":"array","description":"The names the organization does business as. Empty when it has none.","items":{"type":"string","description":"One name the organization does business as.","example":"Acme Life"},"example":["Acme Life"]},"npn":{"type":["integer","null"],"format":"int64","description":"The organization's National Producer Number, for the kinds that hold one (agency, mga and mo). Null when it has none.","example":1234567},"feinLastFour":{"type":["string","null"],"description":"The last four digits of the organization's FEIN. The rest of the number is never served. Null when none is on file.","pattern":"^[0-9]{4}$","example":"5678"},"parentId":{"type":["string","null"],"description":"The ID of the organization that controls this one, when that organization is yours: set on every organization whose relationship is child, and null on the others.","pattern":"^org_[0-7][0-9a-hjkmnp-tv-z]{25}$","example":"org_01h455vb4pex5vsknk084sn02q"},"relationship":{"$ref":"#/components/schemas/OrganizationRelationship"}},"example":{"id":"org_01kq0w4h7xf1e8t4zb2m5c6d7e","type":"agency","legalName":"Acme Captive Agency","dbaNames":[],"npn":1234567,"feinLastFour":"5678","parentId":"org_01h455vb4pex5vsknk084sn02q","relationship":"child"}},"OrganizationRelationship":{"type":"string","description":"One way an organization stands to yours: self, counterparty or child. self is your own organization; counterparty is an organization on the other side of one of its active associations; child is an organization yours controls. An organization can hold more than one, and is then listed once for each. More values may be added as the organizations you may see widen, so treat a value you do not know as another relationship rather than an error.","example":"counterparty"},"OrganizationList":{"type":"object","description":"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.","required":["items","page"],"properties":{"items":{"type":"array","description":"The organizations on this page, your own first on the first page.","maxItems":50,"items":{"$ref":"#/components/schemas/Organization"}},"page":{"$ref":"#/components/schemas/Page"}},"example":{"items":[{"id":"org_01h455vb4pex5vsknk084sn02q","type":"carrier","legalName":"Acme Life Insurance Company","dbaNames":["Acme Life"],"npn":null,"feinLastFour":"5678","parentId":null,"relationship":"self"},{"id":"org_01m0tvmn2qe7p8ra1cyaabq8zh","type":"agency","legalName":"Northwind Agency LLC","dbaNames":[],"npn":1234567,"feinLastFour":null,"parentId":null,"relationship":"counterparty"}],"page":{"nextToken":"eyJrIjoib3JnYW5pemF0aW9ucyIsImMiOnsicyI6ImNvdW50ZXJwYXJ0aWVzIiwidCI6Im5leHQifX0"}}},"ContractAssignmentSummary":{"type":"object","description":"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.","required":["id","contractId","productId","producerType","status","carrierStatus","partnerStatus","effectiveAt"],"properties":{"id":{"$ref":"#/components/schemas/ContractAssignmentId"},"contractId":{"$ref":"#/components/schemas/ContractId","description":"The TypeID of the contract the assignment is under.","example":"contract_01h455vb4pex5vsknk084sn02q"},"productId":{"$ref":"#/components/schemas/ProductId","description":"The TypeID of the bucket or product the producer is placed on.","example":"product_01h455vb4pex5vsknk084sn02q"},"producerType":{"type":"string","description":"individual when the producer is a person, named by personId; firm when it is an organization, named by firmOrganizationId.","enum":["individual","firm"],"example":"individual"},"personId":{"$ref":"#/components/schemas/PersonId","description":"The producer's person TypeID. Absent on a firm's assignment.","example":"person_01h455vb4pex5vsknk084sn02q"},"firmOrganizationId":{"$ref":"#/components/schemas/OrganizationId","description":"The producer's organization TypeID. Absent on a person's assignment.","example":"org_01h455vb4pex5vsknk084sn02q"},"writingNumber":{"type":"string","description":"The writing number set on this assignment. Absent when none is set on it.","example":"W-1001"},"status":{"type":"string","description":"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.","enum":["active","inactive","pending","suspended","terminated"],"example":"active"},"carrierStatus":{"type":"string","description":"The carrier's status for the assignment.","enum":["active","inactive","pending","suspended"],"example":"active"},"partnerStatus":{"type":"string","description":"The distribution organization's status for the assignment.","enum":["active","inactive"],"example":"active"},"uplineContractAssignmentId":{"$ref":"#/components/schemas/ContractAssignmentId","description":"The TypeID of the assignment directly above this one. Absent on a top-level assignment, and when the upline is not shown to your organization.","example":"contractassignment_01h455vb4pex5vsknk084sn02r"},"changeRequestId":{"$ref":"#/components/schemas/ChangeRequestId","description":"The TypeID of the change request that created the assignment. Absent on one created directly.","example":"changerequest_01h455vb4pex5vsknk084sn02q"},"effectiveAt":{"type":"string","format":"date-time","description":"When the assignment took effect.","example":"2026-02-01T00:00:00Z"},"terminatedAt":{"type":"string","format":"date-time","description":"When the assignment was terminated. Absent until it is.","example":"2026-06-30T00:00:00Z"}},"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"}},"ContractAssignment":{"description":"One contract assignment: the list's fields, the states set on the assignment itself and its access override.","allOf":[{"$ref":"#/components/schemas/ContractAssignmentSummary"},{"type":"object","description":"The fields only the detail carries.","required":["states","accessOverride"],"properties":{"accessOverride":{"type":["object","null"],"description":"The access override as authored on this assignment. Null when it has none.","required":["version","entries"],"properties":{"version":{"type":"integer","description":"The override's version, which grows with each change to it.","example":3},"entries":{"type":"array","description":"The override's entries.","items":{"$ref":"#/components/schemas/AccessOverrideEntry"}}},"example":{"version":3,"entries":[{"id":"accessoverrideentry_01h455vb4pex5vsknk084sn02q","productId":"product_01h455vb4pex5vsknk084sn02q","states":["CO","TX"],"effectiveOn":"2026-03-01","expiresOn":null,"commissionLevelIds":null,"annualizationIds":null}]}},"states":{"type":"array","description":"The two-letter state codes set on this assignment. Empty when it inherits its upline's.","items":{"type":"string","description":"A two-letter US state code.","example":"CO"},"example":["CO","TX"]}},"example":{"states":["CO","TX"],"accessOverride":null}}],"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","states":["CO","TX"],"accessOverride":null}},"AccessOverrideEntry":{"type":"object","description":"One entry of an access override. A field that is null does not constrain the entry.","required":["id","productId","states","effectiveOn","expiresOn","commissionLevelIds","annualizationIds"],"properties":{"id":{"$ref":"#/components/schemas/AccessOverrideEntryId"},"productId":{"$ref":"#/components/schemas/ProductId","description":"The TypeID of the bucket or product the entry is for.","example":"product_01h455vb4pex5vsknk084sn02q"},"states":{"type":["array","null"],"description":"The two-letter state codes the entry is limited to. Null for any state.","items":{"type":"string","description":"A two-letter US state code.","example":"CO"},"example":["CO","TX"]},"effectiveOn":{"type":["string","null"],"format":"date","description":"The first day the entry applies, as YYYY-MM-DD. Null when it has no start.","example":"2026-03-01"},"expiresOn":{"type":["string","null"],"format":"date","description":"The last day the entry applies, as YYYY-MM-DD. Null when it has no end.","example":"2027-02-28"},"commissionLevelIds":{"type":["array","null"],"description":"The commission level IDs the entry is limited to. Null for any level.","items":{"$ref":"#/components/schemas/CommissionLevelId"},"example":["commissionlevel_01h455vb4pex5vsknk084sn02q"]},"annualizationIds":{"type":["array","null"],"description":"The annualization IDs the entry is limited to. Null for any annualization.","items":{"$ref":"#/components/schemas/AnnualizationId"},"example":["annualization_01h455vb4pex5vsknk084sn02q"]}},"example":{"id":"accessoverrideentry_01h455vb4pex5vsknk084sn02q","productId":"product_01h455vb4pex5vsknk084sn02q","states":["CO","TX"],"effectiveOn":"2026-03-01","expiresOn":null,"commissionLevelIds":null,"annualizationIds":null}},"AccessOverrideListItem":{"type":"object","description":"One access override your organization authored, with the contract assignment it is on.","required":["contractAssignmentId","contractId","version","entries"],"properties":{"contractAssignmentId":{"$ref":"#/components/schemas/ContractAssignmentId","description":"The TypeID of the contract assignment the override is on.","example":"contractassignment_01h455vb4pex5vsknk084sn02q"},"contractId":{"$ref":"#/components/schemas/ContractId","description":"The TypeID of the contract the assignment is under.","example":"contract_01h455vb4pex5vsknk084sn02q"},"effectiveWritingNumber":{"type":"string","description":"The assignment's own writing number, else its contract's code; unlike the assignment's `writingNumber`, which is its own only. Absent when none is known.","example":"W-1001"},"version":{"type":"integer","description":"The override's version, which grows with each change to it.","example":3},"entries":{"type":"array","description":"The override's entries.","items":{"$ref":"#/components/schemas/AccessOverrideEntry"},"example":[{"id":"accessoverrideentry_01h455vb4pex5vsknk084sn02q","productId":"product_01h455vb4pex5vsknk084sn02q","states":["CO","TX"],"effectiveOn":"2026-03-01","expiresOn":null,"commissionLevelIds":null,"annualizationIds":null}]}},"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}]}},"ProducerSummary":{"type":"object","description":"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.","required":["id","npn","status","firstName","lastName","preferredFirstName"],"properties":{"id":{"$ref":"#/components/schemas/PersonId","description":"The producer's person TypeID."},"npn":{"type":["integer","null"],"format":"int64","description":"The producer's National Producer Number. Null when none is on file.","example":12345678},"status":{"type":"string","description":"deactivated once the person has been deactivated, else active.","enum":["active","deactivated"],"example":"active"},"firstName":{"type":["string","null"],"description":"The producer's legal first name.","example":"Jane"},"lastName":{"type":["string","null"],"description":"The producer's legal last name.","example":"Smith"},"preferredFirstName":{"type":["string","null"],"description":"The first name the producer goes by, when it differs.","example":"Janie"}},"example":{"id":"person_01h455vb4pex5vsknk084sn02q","npn":12345678,"status":"active","firstName":"Jane","lastName":"Smith","preferredFirstName":null}},"Producer":{"description":"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.","allOf":[{"$ref":"#/components/schemas/ProducerSummary"},{"type":"object","description":"The fields only the detail carries.","required":["middleName","suffix","deactivatedAt","dateOfBirth","residentState","email","ssnLastFour","addresses","phones","contractAssignments"],"properties":{"middleName":{"type":["string","null"],"description":"The producer's middle name.","example":"Quincy"},"suffix":{"type":["string","null"],"description":"The producer's name suffix.","example":"JR"},"deactivatedAt":{"type":["string","null"],"format":"date-time","description":"When the person was deactivated. Null while active.","example":"2026-06-30T00:00:00Z"},"dateOfBirth":{"type":["string","null"],"format":"date","description":"The producer's date of birth.","example":"1990-05-15"},"residentState":{"type":["string","null"],"description":"The two-letter code of the producer's resident state.","example":"CO"},"email":{"type":["string","null"],"description":"The producer's primary email address.","example":"jane.smith@example.com"},"ssnLastFour":{"type":["string","null"],"description":"The last four digits of the producer's SSN. The rest of the number is never served.","pattern":"^[0-9]{4}$","example":"1234"},"addresses":{"type":"array","description":"The producer's addresses, empty when none are on file.","items":{"$ref":"#/components/schemas/ProducerAddress"},"example":[{"type":"physical","addressLine1":"123 Main St","addressLine2":null,"city":"Denver","county":"Denver","state":"CO","zip":"80202","country":"US","preferred":true}]},"phones":{"type":"array","description":"The producer's phone numbers, empty when none are on file.","items":{"$ref":"#/components/schemas/ProducerPhone"},"example":[{"type":"cell","number":"3035551234","extension":null,"preferred":true}]},"contractAssignments":{"type":"array","description":"Every contract assignment that is not terminated the producer holds under your organization's contracts, empty when your organization sees the producer through its producer role only. More than 500 is a 422 assignments_over_cap, never a shortened list.","items":{"$ref":"#/components/schemas/ContractAssignmentSummary"},"example":[{"id":"contractassignment_01h455vb4pex5vsknk084sn02q","contractId":"contract_01h455vb4pex5vsknk084sn02q","productId":"product_01h455vb4pex5vsknk084sn02q","producerType":"individual","personId":"person_01h455vb4pex5vsknk084sn02q","status":"active","carrierStatus":"active","partnerStatus":"active","effectiveAt":"2026-02-01T00:00:00Z"}]}},"example":{"middleName":"Quincy","suffix":null,"deactivatedAt":null,"dateOfBirth":"1990-05-15","residentState":"CO","email":"jane.smith@example.com","ssnLastFour":"1234","addresses":[],"phones":[],"contractAssignments":[]}}],"example":{"id":"person_01h455vb4pex5vsknk084sn02q","npn":12345678,"status":"active","firstName":"Jane","lastName":"Smith","preferredFirstName":null,"middleName":"Quincy","suffix":null,"deactivatedAt":null,"dateOfBirth":"1990-05-15","residentState":"CO","email":"jane.smith@example.com","ssnLastFour":"1234","addresses":[],"phones":[],"contractAssignments":[]}},"ProducerAddress":{"type":"object","description":"One of a producer's addresses.","required":["type","addressLine1","addressLine2","city","county","state","zip","country","preferred"],"properties":{"type":{"type":"string","description":"The kind of address. other is a kind this API does not name yet.","enum":["physical","mailing","business","other"],"example":"physical"},"addressLine1":{"type":"string","description":"The first line of the street address.","example":"123 Main St"},"addressLine2":{"type":["string","null"],"description":"The second line of the street address.","example":"Apt 4B"},"city":{"type":"string","description":"The city.","example":"Denver"},"county":{"type":["string","null"],"description":"The county.","example":"Denver"},"state":{"type":"string","description":"The two-letter state code.","example":"CO"},"zip":{"type":["string","null"],"description":"The ZIP code.","example":"80202"},"country":{"type":["string","null"],"description":"The ISO alpha-2 country code.","example":"US"},"preferred":{"type":"boolean","description":"Whether this is the producer's preferred address.","example":true}},"example":{"type":"physical","addressLine1":"123 Main St","addressLine2":null,"city":"Denver","county":"Denver","state":"CO","zip":"80202","country":"US","preferred":true}},"ProducerPhone":{"type":"object","description":"One of a producer's phone numbers.","required":["type","number","extension","preferred"],"properties":{"type":{"type":"string","description":"The kind of phone. other is a kind this API does not name yet.","enum":["cell","resident","business","fax","other"],"example":"cell"},"number":{"type":"string","description":"The 10-digit phone number.","example":"3035551234"},"extension":{"type":["string","null"],"description":"The extension.","example":"1234"},"preferred":{"type":"boolean","description":"Whether this is the producer's preferred phone number.","example":true}},"example":{"type":"cell","number":"3035551234","extension":null,"preferred":true}},"TaskSummary":{"type":"object","description":"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.","required":["id","name","taskType","state","required","locked","createdAt","updatedAt"],"properties":{"id":{"$ref":"#/components/schemas/TaskId"},"name":{"type":"string","description":"The task's display name.","example":"Background questions"},"taskType":{"type":"string","description":"work asks the producer for answers; approval asks a reviewer to decide; review_submit asks the producer to review and submit their answers; forms_signature asks for a signature on forms.","enum":["work","approval","review_submit","forms_signature"],"example":"work"},"state":{"type":"string","description":"Where the task sits in its lifecycle.","enum":["not_started","in_progress","returned","completed","approved","rejected","skipped","closed"],"example":"in_progress"},"subjectPersonId":{"$ref":"#/components/schemas/PersonId"},"subjectOrganizationId":{"$ref":"#/components/schemas/OrganizationId"},"required":{"type":"boolean","description":"Whether the task is a required member of its requirement set, which means it cannot be skipped.","example":true},"locked":{"type":"boolean","description":"Whether the task waits on others first. A locked task can take answers but cannot be completed.","example":false},"owner":{"$ref":"#/components/schemas/TaskOwner"},"createdAt":{"type":"string","format":"date-time","description":"When the task was raised.","example":"2026-03-02T09:30:00Z"},"updatedAt":{"type":"string","format":"date-time","description":"When the task last changed.","example":"2026-03-03T14:00:00Z"},"completedAt":{"type":"string","format":"date-time","description":"When the task was completed or approved. Absent until it is.","example":"2026-03-04T16:45:00Z"}},"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"}},"TaskOwner":{"type":"object","description":"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.","required":["kind"],"properties":{"kind":{"type":"string","description":"person when personId names the owner; queue when queue does.","enum":["person","queue"],"example":"person"},"personId":{"$ref":"#/components/schemas/PersonId"},"queue":{"type":"object","description":"The queue that owns the task. Absent unless kind is queue.","required":["organizationId","persona"],"properties":{"organizationId":{"$ref":"#/components/schemas/OrganizationId"},"persona":{"type":"string","description":"The role whose holders work the queue.","example":"compliance_reviewer"}}}},"example":{"kind":"queue","queue":{"organizationId":"org_01h455vb4pex5vsknk084sn02q","persona":"compliance_reviewer"}}},"Task":{"type":"object","description":"One task: the list's fields except the name and timestamps, the requirement set and contract assignment behind it, and its slots and answers.","required":["id","taskType","state","required","locked","requirementSet","contractAssignmentId","contractAssignmentRelation","dependsOn","slots","submissions"],"properties":{"id":{"$ref":"#/components/schemas/TaskId"},"taskType":{"type":"string","description":"The kind of task, as on the list.","enum":["work","approval","review_submit","forms_signature"],"example":"work"},"state":{"type":"string","description":"Where the task sits in its lifecycle.","enum":["not_started","in_progress","returned","completed","approved","rejected","skipped","closed"],"example":"in_progress"},"subjectPersonId":{"$ref":"#/components/schemas/PersonId"},"subjectOrganizationId":{"$ref":"#/components/schemas/OrganizationId"},"required":{"type":"boolean","description":"Whether the task is a required member of its requirement set.","example":true},"locked":{"type":"boolean","description":"Whether the task waits on others before it can be completed.","example":false},"owner":{"$ref":"#/components/schemas/TaskOwner"},"requirementSet":{"type":["object","null"],"description":"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.","required":["id","revision"],"properties":{"id":{"$ref":"#/components/schemas/RequirementSetId"},"revision":{"type":"integer","description":"The revision of the set that raised the task.","example":3}},"example":{"id":"requirementset_01h455vb4pex5vsknk084sn02q","revision":3}},"contractAssignmentId":{"type":["string","null"],"description":"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.","pattern":"^contractassignment_[0-7][0-9a-hjkmnp-tv-z]{25}$","example":"contractassignment_01h455vb4pex5vsknk084sn02q"},"contractAssignmentRelation":{"type":["string","null"],"description":"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"},"dependsOn":{"type":"array","description":"The tasks this one waits on, empty when none.","items":{"$ref":"#/components/schemas/TaskId"}},"slots":{"type":"array","description":"The positions the task asks to be answered, empty when it asks nothing.","items":{"$ref":"#/components/schemas/TaskSlot"}},"submissions":{"type":"array","description":"The latest answer at each slot that has one.","items":{"$ref":"#/components/schemas/TaskSubmission"}}},"example":{"id":"task_01h455vb4pex5vsknk084sn02q","taskType":"work","state":"in_progress","subjectPersonId":"person_01h455vb4pex5vsknk084sn02q","required":true,"locked":false,"requirementSet":{"id":"requirementset_01h455vb4pex5vsknk084sn02q","revision":3},"contractAssignmentId":"contractassignment_01h455vb4pex5vsknk084sn02q","contractAssignmentRelation":"created","dependsOn":[],"slots":[{"key":"residentState","kind":"single","required":true,"locked":false,"sensitive":false}],"submissions":[{"slotKey":"residentState","performer":{"kind":"person","personId":"person_01h455vb4pex5vsknk084sn02q"},"value":{"kind":"inline","inline":"CO"}}]}},"TaskSlot":{"type":"object","description":"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.","required":["key","kind","required","locked","sensitive"],"properties":{"key":{"type":"string","description":"The slot's key, which submissions name as slotKey.","example":"residentState"},"kind":{"type":"string","description":"single or section.","enum":["single","section"],"example":"single"},"required":{"type":"boolean","description":"Whether the slot must be answered.","example":true},"locked":{"type":"boolean","description":"Whether the slot was locked after it was filled in from the producer's record.","example":false},"sensitive":{"type":"boolean","description":"Whether the slot's answers are sensitive. A sensitive answer is always masked.","example":false},"jurisdiction":{"type":"string","description":"The two-letter code of the state asking the question, or ADJUSTER. Absent unless the task asks state-specific questions.","example":"CO"},"fields":{"type":"array","description":"A section slot's member fields. Absent on a single slot.","items":{"type":"object","description":"One member field of a section slot.","required":["fieldKey","required","sensitive"],"properties":{"fieldKey":{"type":"string","description":"The field's key, which submissions name as fieldKey.","example":"addressLine1"},"required":{"type":"boolean","description":"Whether the field must be answered.","example":true},"sensitive":{"type":"boolean","description":"Whether the field's answers are sensitive. A sensitive answer is always masked.","example":false}}}},"entries":{"type":"array","description":"A repeatable section's entries, in the order they were added, which submissions name as entryId. Absent on any other slot.","items":{"$ref":"#/components/schemas/SectionEntryId"}}},"example":{"key":"residentState","kind":"single","required":true,"locked":false,"sensitive":false}},"TaskSubmission":{"type":"object","description":"The latest answer at one position: slotKey, with fieldKey for a section slot's field and entryId for a repeatable section's entry.","required":["slotKey","performer","value"],"properties":{"slotKey":{"type":"string","description":"The key of the slot answered.","example":"residentState"},"fieldKey":{"type":"string","description":"The member field answered. Absent unless the slot is a section.","example":"addressLine1"},"entryId":{"$ref":"#/components/schemas/SectionEntryId"},"performer":{"type":"object","description":"Who gave the answer. personId names the person who answered; it is absent for system, and for a person the requirement set's rules hide from your organization.","required":["kind"],"properties":{"kind":{"type":"string","description":"person for an answer a person gave; system for one filled in from the producer's record.","enum":["person","system"],"example":"person"},"personId":{"$ref":"#/components/schemas/PersonId"}}},"value":{"type":"object","description":"The answer. kind says which field carries it: inline the answer itself, file a description of an uploaded file. prefilled and masked carry neither: a prefilled answer stays in the producer's record, and a sensitive answer is never returned.","required":["kind"],"properties":{"kind":{"type":"string","description":"inline, file, prefilled or masked.","enum":["inline","file","prefilled","masked"],"example":"inline"},"inline":{"description":"The answer as given, any JSON value. Present only for inline.","example":"CO"},"file":{"$ref":"#/components/schemas/TaskFile","description":"The uploaded file. Present only for file; the bytes are not returned. GET /v1/tasks/{id}/files/{slot} returns a link to them."}}}},"example":{"slotKey":"ssn","performer":{"kind":"person","personId":"person_01h455vb4pex5vsknk084sn02q"},"value":{"kind":"masked"}}},"TaskFile":{"type":"object","description":"A file uploaded to answer a slot of a task. The bytes are not part of it.","required":["name","contentType","sizeBytes","sha256"],"properties":{"name":{"type":"string","description":"The file's name as uploaded.","example":"license.pdf"},"contentType":{"type":"string","description":"The file's media type.","example":"application/pdf"},"sizeBytes":{"type":"integer","format":"int64","description":"The file's size in bytes.","example":48213},"sha256":{"type":"string","description":"The hex SHA-256 of the file's bytes.","example":"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"}},"example":{"name":"license.pdf","contentType":"application/pdf","sizeBytes":48213,"sha256":"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"}},"TaskFileLink":{"type":"object","description":"A file that answers one slot of a task, and a presigned link to it.","required":["url","expiresAt","file"],"properties":{"url":{"type":"string","format":"uri","description":"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"},"expiresAt":{"type":"string","format":"date-time","description":"When the link stops working, ten minutes after it was issued.","example":"2026-11-10T17:10:00Z"},"file":{"$ref":"#/components/schemas/TaskFile","description":"The file the link downloads."}},"example":{"url":"https://files.example.com/task-files/abc123?X-Amz-Signature=redacted","expiresAt":"2026-11-10T17:10:00Z","file":{"name":"Errors and omissions certificate.pdf","contentType":"application/pdf","sizeBytes":421883,"sha256":"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"}}},"RequirementSetSummary":{"type":"object","description":"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.","required":["id","name","status","revision","createdAt","updatedAt"],"properties":{"id":{"$ref":"#/components/schemas/RequirementSetId"},"name":{"type":"string","description":"The set's name, unique within your organization.","example":"Producer onboarding - CA"},"description":{"type":"string","description":"Free text describing the set. Absent when it has none.","example":"Onboarding for new California producers"},"category":{"$ref":"#/components/schemas/RequirementSetCategory","description":"How the set is filed. Absent when it is unfiled.","example":"producer_onboarding"},"status":{"type":"string","description":"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.","enum":["active","archived"],"example":"active"},"revision":{"type":"integer","description":"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},"publishedAt":{"type":"string","format":"date-time","description":"When the set was first published. Absent when it never has been; archiving does not clear it.","example":"2026-02-01T12:00:00Z"},"archivedAt":{"type":"string","format":"date-time","description":"When the set was archived. Absent while it is not archived.","example":"2026-06-30T00:00:00Z"},"createdAt":{"type":"string","format":"date-time","description":"When the set was created.","example":"2026-01-15T17:04:05Z"},"updatedAt":{"type":"string","format":"date-time","description":"When the set last changed.","example":"2026-03-02T09:30:00Z"}},"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"}},"RequirementSet":{"description":"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.","allOf":[{"$ref":"#/components/schemas/RequirementSetSummary"},{"type":"object","description":"The fields only the detail carries.","required":["members"],"properties":{"members":{"type":"array","description":"The set's members, in the set's order. Empty when it has none.","items":{"$ref":"#/components/schemas/RequirementSetMember"},"example":[{"id":"requirement_01h455vb4pex5vsknk084sn02q","taskType":"naic","required":true,"taskDefinitionId":"taskdefinition_01h455vb4pex5vsknk084sn02q"}]}},"example":{"members":[{"id":"requirement_01h455vb4pex5vsknk084sn02q","taskType":"naic","required":true,"taskDefinitionId":"taskdefinition_01h455vb4pex5vsknk084sn02q"}]}}],"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","members":[{"id":"requirement_01h455vb4pex5vsknk084sn02q","taskType":"naic","required":true,"taskDefinitionId":"taskdefinition_01h455vb4pex5vsknk084sn02q"}]}},"RequirementSetMember":{"type":"object","description":"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.","required":["id","taskType","required","taskDefinitionId"],"properties":{"id":{"type":"string","description":"The member's ID, a TypeID with the prefix requirement.","pattern":"^requirement_[0-7][0-9a-hjkmnp-tv-z]{25}$","example":"requirement_01h455vb4pex5vsknk084sn02q"},"taskType":{"type":"string","description":"The kind of task the member raises. work collects information; approval records a decision; naic is the NAIC application; forms_signature asks for one signature over a list of forms; review_submit asks for the packet to be reviewed and submitted.","enum":["work","approval","naic","forms_signature","review_submit"],"example":"work"},"required":{"type":"boolean","description":"Whether the task the member raises must be completed.","example":true},"taskDefinitionId":{"$ref":"#/components/schemas/TaskDefinitionId"}},"example":{"id":"requirement_01h455vb4pex5vsknk084sn02q","taskType":"work","required":true,"taskDefinitionId":"taskdefinition_01h455vb4pex5vsknk084sn02q"}},"RequirementSetCategory":{"type":"string","description":"How a requirement set is filed.","enum":["producer_onboarding","producer_maintenance","producer_offboarding","partner_onboarding","partner_maintenance","partner_offboarding","hierarchy_maintenance"],"example":"producer_onboarding"},"TaskDefinitionId":{"type":"string","description":"A task definition's ID, a TypeID with the prefix taskdefinition.","pattern":"^taskdefinition_[0-7][0-9a-hjkmnp-tv-z]{25}$","example":"taskdefinition_01h455vb4pex5vsknk084sn02q"},"Error":{"type":"object","description":"The canonical error envelope. Every error the API writes carries a machine-readable code as the first details entry, the one whose param is \"code\"; branch on that, not on the message. There are two exceptions, both 500s the service could not build a normal error for: the platform's panic recovery writes an empty body, and a failure to encode a response writes {\"message\": \"internal server error\"} with no details. Treat a 500 without a code as internal_error. A 429 from the API gateway, in front of the API, carries a message only; treat any 429 as a signal to slow down.","required":["message"],"properties":{"message":{"type":"string","description":"Human-readable summary of why the request failed.","example":"invalid page_size"},"details":{"type":"array","description":"The code entry {\"param\": \"code\", \"message\": \"<code>\"} first, then entries that name the offending request parameter. Present on every error the service writes except the two code-less 500s described above, so it is not marked required.","items":{"$ref":"#/components/schemas/ErrorDetail"}}},"example":{"message":"invalid page_size","details":[{"param":"code","message":"parameter_invalid"},{"param":"page_size","message":"must be a positive integer"}]}},"ErrorDetail":{"type":"object","description":"One entry of an error's details: the error code, or a request parameter and what is wrong with it.","required":["param","message"],"properties":{"param":{"type":"string","description":"The parameter the entry is about, or \"code\" for the error code.","example":"code"},"message":{"type":"string","description":"For param \"code\", the error code; otherwise what is wrong with the parameter.","example":"parameter_invalid"}},"example":{"param":"code","message":"parameter_invalid"}},"ErrorCode":{"type":"string","description":"Every error code that applies across the API, as the message of the details entry whose param is \"code\". A code is never renamed or repurposed. parameter_invalid is a 400, a parameter is missing, malformed or out of range. token_invalid is a 401, the token is missing, malformed, expired or wrongly signed. caller_not_service_account is a 403, the token identifies a person. caller_claims_missing is a 403, the token lacks a usable organization or service account claim. scope_missing is a 403, the token lacks the scope the operation requires. role_missing is a 403, the service account no longer holds a role at its organization that may call the operation (its grant was revoked or it was disabled). route_not_found is a 404, no operation serves the path; operations that look a record up declare their own <entity>_not_found codes. contract_not_found, contract_assignment_not_found, producer_not_found, task_not_found and requirement_set_not_found are each a 404 for a record that does not exist or that the caller's organization may not see; the two are answered alike. file_not_found is a 404, the task has no file you may download at the slot. file_scan_pending is a 409, the file's malware scan has not finished; try again after Retry-After seconds. file_unavailable is a 409, the file cannot be downloaded because its malware scan did not find it clean. assignments_over_cap is a 422, the producer holds more contract assignments that are not terminated than the detail serves; page through the contract assignments list instead, skipping those whose status is terminated. producer_roster_too_large is a 422, the producer holds no contract assignment that is not terminated under your organization's contracts and its producer roster is longer than the API searches. method_not_allowed is a 405, the path exists but not for this method. rate_limit_exceeded is a 429, requests are arriving too fast; a 429 from the API gateway may arrive without it. internal_error is a 500, the service failed in a way the caller cannot fix. service_unavailable is a 503, a platform service this API depends on could not answer. upstream_auth_unavailable is a 503, the API could not get its own credentials for a platform service, so it did not call it.","enum":["parameter_invalid","token_invalid","caller_not_service_account","caller_claims_missing","scope_missing","role_missing","route_not_found","contract_not_found","contract_assignment_not_found","producer_not_found","assignments_over_cap","producer_roster_too_large","task_not_found","file_not_found","file_scan_pending","file_unavailable","requirement_set_not_found","method_not_allowed","rate_limit_exceeded","internal_error","service_unavailable","upstream_auth_unavailable"],"example":"scope_missing"},"Page":{"type":"object","description":"Pagination metadata of a collection response. nextToken is absent on the last page; pass it back as the page_token query parameter to continue.","properties":{"nextToken":{"type":"string","description":"Opaque token for the next page.","example":"eyJrIjoiZXhhbXBsZSJ9"}},"example":{"nextToken":"eyJrIjoiZXhhbXBsZSJ9"}}},"parameters":{"PageSize":{"name":"page_size","in":"query","description":"Items per page. Defaults to 50; a value above 200 is clamped to 200. A non-numeric or non-positive value is a 400.","required":false,"schema":{"type":"integer","minimum":1,"default":50},"example":100},"OrganizationsPageSize":{"name":"page_size","in":"query","description":"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.","required":false,"schema":{"type":"integer","minimum":1,"default":50},"example":25},"PageToken":{"name":"page_token","in":"query","description":"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.","required":false,"schema":{"type":"string"},"example":"eyJrIjoiZXhhbXBsZSJ9"}},"responses":{"BadRequest":{"description":"A parameter is missing, malformed or out of range (code parameter_invalid).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"message":"invalid page_size","details":[{"param":"code","message":"parameter_invalid"},{"param":"page_size","message":"must be a positive integer"}]}}}},"Unauthorized":{"description":"The request has no bearer token, or the token is malformed, expired or wrongly signed (code token_invalid). Every /v1 path answers this without a valid token, including paths no route serves. The response carries WWW-Authenticate: Bearer.","headers":{"WWW-Authenticate":{"description":"The authentication scheme the API expects.","schema":{"type":"string"},"example":"Bearer"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"message":"invalid or missing bearer token","details":[{"param":"code","message":"token_invalid"}]}}}},"Forbidden":{"description":"The token is valid but the API will not serve it. The code says why: caller_not_service_account (the token identifies a person; only service account tokens are accepted), caller_claims_missing (the token lacks a usable org_id or service_account_id claim), scope_missing (the token lacks the route's product scope, named in the details entry whose param is \"scope\"), or role_missing (the service account no longer holds a role at its organization that may call the route).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"message":"token lacks the required scope","details":[{"param":"code","message":"scope_missing"},{"param":"scope","message":"platform.contracts.read"}]}}}},"NotFound":{"description":"No operation serves the path (code route_not_found). That code is for an unmatched route only: an operation that looks a record up and finds none declares its own <entity>_not_found code on that operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"message":"route not found","details":[{"param":"code","message":"route_not_found"}]}}}},"ContractAssignmentNotFound":{"description":"No contract assignment with this id is under a contract your organization is a party to (code contract_assignment_not_found). An id that does not exist gets the same answer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"message":"contract assignment not found","details":[{"param":"code","message":"contract_assignment_not_found"}]}}}},"ProducerNotFound":{"description":"No producer your organization may see matches (code producer_not_found): the person holds no contract assignment that is not terminated under your organization's contracts and no producer role at it. A person or NPN that does not exist gets the same answer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"message":"producer not found","details":[{"param":"code","message":"producer_not_found"}]}}}},"TaskNotFound":{"description":"No task with this id is one your organization reaches (code task_not_found). An id that does not exist gets the same answer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"message":"task not found","details":[{"param":"code","message":"task_not_found"}]}}}},"TaskFileNotFound":{"description":"No task with this id is one your organization reaches (code task_not_found), or the task has no file you may download at this slot (code file_not_found): a slot the task does not list, one not answered with a file, or one whose answer the task detail masks.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"message":"file not found","details":[{"param":"code","message":"file_not_found"}]}}}},"TaskFileNotClean":{"description":"The file's malware scan has not found it clean, so no link is issued. The code says why: file_scan_pending (the scan has not finished; try again after Retry-After seconds when the response carries it) or file_unavailable (the file cannot be downloaded because its scan did not find it clean, and retrying does not help).","headers":{"Retry-After":{"description":"Seconds to wait before asking again. Present only on file_scan_pending.","schema":{"type":"integer"},"example":30}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"message":"the file's malware scan has not finished; try again later","details":[{"param":"code","message":"file_scan_pending"}]}}}},"ProducerRosterTooLarge":{"description":"The producer holds no contract assignment that is not terminated under your organization's contracts, and your organization's producer roster is longer than the API searches for them (code producer_roster_too_large). An NPN no person holds gets the same answer. Retrying does not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"message":"your organization's producer roster is too large to search for this producer","details":[{"param":"code","message":"producer_roster_too_large"}]}}}},"ProducerUnprocessable":{"description":"The producer cannot be served whole, and retrying does not help. The code says why: assignments_over_cap (the producer holds more than 500 contract assignments that are not terminated under your organization's contracts; page through GET /v1/contract-assignments?person_id= for them instead, skipping those whose status is terminated) or producer_roster_too_large (as for the lookup by NPN).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"message":"the producer holds more contract assignments than the detail serves; page through GET /v1/contract-assignments?person_id= instead","details":[{"param":"code","message":"assignments_over_cap"}]}}}},"RequirementSetNotFound":{"description":"Your organization authored no requirement set with this id (code requirement_set_not_found). An id that does not exist, or that is not a requirement set TypeID, gets the same answer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"message":"requirement set not found","details":[{"param":"code","message":"requirement_set_not_found"}]}}}},"MethodNotAllowed":{"description":"The path exists but not for this method (code method_not_allowed).","headers":{"Allow":{"description":"The methods the path does serve.","schema":{"type":"string"},"example":"GET, HEAD"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"message":"method not allowed","details":[{"param":"code","message":"method_not_allowed"}]}}}},"TooManyRequests":{"description":"Too many requests. A 429 written by the service carries the code rate_limit_exceeded; one written by the API gateway may have only a message and no details. Treat any 429 as rate limiting.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"message":"rate limit exceeded","details":[{"param":"code","message":"rate_limit_exceeded"}]}}}},"InternalError":{"description":"The service failed in a way the caller cannot fix (code internal_error). A 500 written when the platform recovers from a panic has an empty body, and one written when a response cannot be encoded has a message and no details.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"message":"internal server error","details":[{"param":"code","message":"internal_error"}]}}}},"ServiceUnavailable":{"description":"A platform service this API depends on is unavailable (code service_unavailable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"message":"service unavailable","details":[{"param":"code","message":"service_unavailable"}]}}}}}}}
```
