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

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

# Get a producer

`GET` `/v1/producers/{id}`

Operation ID: `getProducer`

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.

## Path parameters

- `id` (string, required) - The producer's person TypeID.

## Responses

- `200` - The producer.
- `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` - 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.
- `422` - 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).
- `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/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"
security:
  - oauth2:
      - platform.producers.read
components:
  schemas:
    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
    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: []
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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.
```
