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

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

# OrganizationList

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

## 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
components:
  schemas:
    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
    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
    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
    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
```
