---
title: "Get a requirement set"
url: "https://developer-staging.agentsync.io/apis/platform-api/versions/8177e94d-86f2-48a5-8ed6-d5fbcb69f38a/operations/getRequirementSet"
---

> Full API specification: https://developer-staging.agentsync.io/apis/platform-api/versions/8177e94d-86f2-48a5-8ed6-d5fbcb69f38a.md

# Get a requirement set

`GET` `/v1/requirement-sets/{id}`

Operation ID: `getRequirementSet`

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.

## Path parameters

- `id` (string, required) - The requirement set's TypeID.

## Responses

- `200` - The requirement set at its current revision.
- `401` - 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.
- `403` - 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).
- `404` - 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.
- `503` - A platform service this API depends on is unavailable (code service_unavailable).

## OpenAPI definition

```yaml
openapi: 3.1.1
info:
  title: AgentSync Platform API
  version: 0.0.1
servers:
  - url: https://api.{environment}.agentsync.io/platform
    description: AgentSync API gateway
    variables:
      environment:
        default: sandbox
        enum:
          - sandbox
paths:
  /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"
security:
  - oauth2:
      - platform.requirement-sets.read
components:
  schemas:
    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
    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
    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
    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
    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
    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
    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
  responses:
    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
    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
    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
  securitySchemes:
    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.
```
