> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aiinsurance.io/llms.txt
> Use this file to discover all available pages before exploring further.

# List Assignees

> Returns the list of users assigned to a specific entity.

**Required permission:** Permission depends on entity type:
- `policies` → `company.policy:read`
- `submissions` → `company.submission:read`
- `insureds` → `company.insured:read`
- `events` → `company.claim:read`




## OpenAPI

````yaml /openapi/generated-external-api.yaml get /api/external/companies/{companyId}/{entityType}/{entityId}/assignees
openapi: 3.0.3
info:
  title: AI Insurance External API
  description: External API for AI Insurance platform
  version: 1.0.0
  contact:
    email: support@aiinsurance.io
servers:
  - url: https://app.aiinsurance.io
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /api/external/companies/{companyId}/{entityType}/{entityId}/assignees:
    get:
      tags:
        - Assignees
      summary: List Assignees
      description: |
        Returns the list of users assigned to a specific entity.

        **Required permission:** Permission depends on entity type:
        - `policies` → `company.policy:read`
        - `submissions` → `company.submission:read`
        - `insureds` → `company.insured:read`
        - `events` → `company.claim:read`
      operationId: listAssignees
      parameters:
        - $ref: '#/components/parameters/companyId'
        - $ref: '#/components/parameters/assigneeEntityType'
        - $ref: '#/components/parameters/entityId'
      responses:
        '200':
          description: List of assignees for the entity
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/Assignee'
                  totalCount:
                    type: integer
                    description: Total number of assignees
              examples:
                success:
                  summary: Policy with two assignees
                  value:
                    items:
                      - id: google-oauth2|123456789
                        name: John Smith
                        email: john@example.com
                        assignedAt: >-
                          Thu Mar 20 2026 14:30:00 GMT+0000 (Coordinated
                          Universal Time)
                      - id: google-oauth2|987654321
                        name: Jane Doe
                        email: jane@example.com
                        assignedAt: >-
                          Sat Mar 21 2026 09:15:00 GMT+0000 (Coordinated
                          Universal Time)
                    totalCount: 2
                empty:
                  summary: Entity with no assignees
                  value:
                    items: []
                    totalCount: 0
        '400':
          description: Bad Request - Invalid path parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalidEntityType:
                  summary: Invalid entity type
                  value:
                    error:
                      code: INVALID_ENTITY_TYPE
                      message: >-
                        entityType must be one of: policies, submissions,
                        insureds, events
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  parameters:
    companyId:
      name: companyId
      in: path
      required: true
      schema:
        type: string
        format: uuid
      description: Company identifier
    assigneeEntityType:
      name: entityType
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/AssigneeEntityType'
      description: The type of entity (policies, submissions, insureds, or events)
    entityId:
      name: entityId
      in: path
      required: true
      schema:
        type: string
        format: uuid
      description: The ID of the entity
  schemas:
    Assignee:
      type: object
      description: A user assigned to an entity
      properties:
        id:
          type: string
          description: The user's ID
        name:
          type: string
          description: The user's display name
        email:
          type: string
          format: email
          description: The user's email address
        assignedAt:
          type: string
          description: When the user was assigned (date string)
    ErrorResponse:
      type: object
      description: Standard error response for all external API endpoints
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: Machine-readable error code
              example: VALIDATION_ERROR
            message:
              type: string
              description: Human-readable error message
              example: 'submissionId: Required field is missing'
            details:
              type: array
              description: Additional details for validation errors (field-level errors)
              items:
                type: object
                properties:
                  field:
                    type: string
                    description: The field that caused the error
                    example: submissionId
                  message:
                    type: string
                    description: Description of the field error
                    example: Required field is missing
    AssigneeEntityType:
      type: string
      description: The type of entity to manage assignees for
      enum:
        - policies
        - submissions
        - insureds
        - events
  responses:
    Unauthorized:
      description: Unauthorized - Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missingApiKey:
              summary: Missing API key
              value:
                error:
                  code: UNAUTHORIZED
                  message: Authorization header is required
            bearerTokenNotAllowed:
              summary: Bearer token used instead of API key
              value:
                error:
                  code: UNAUTHORIZED
                  message: External API endpoints require API key authentication
    Forbidden:
      description: Forbidden - Insufficient permissions
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            insufficientPermissions:
              summary: Insufficient permissions
              value:
                error:
                  code: FORBIDDEN
                  message: Insufficient permissions to perform this action
    InternalServerError:
      description: Internal Server Error - Unexpected error occurred
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            internalError:
              summary: Unexpected server error
              value:
                error:
                  code: INTERNAL_ERROR
                  message: An unexpected error occurred. Please try again later.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        API key authentication. Include your API key in the Authorization
        header.

````