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

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

# Organization

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.

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