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

# Sync Agent

> Trigger a data sync for an agent from NIPR

Queues a request to sync the agent's data from NIPR (National Insurance Producer Registry). This updates the agent's license and appointment information.

<Note>
  This is an asynchronous operation. The sync happens in the background and may take a few minutes to complete.
</Note>


## OpenAPI

````yaml openapi/v1.json POST /v1/agents/{agentId}/sync
openapi: 3.0.0
info:
  title: Turris Public API
  description: API for managing insurance compliance data
  version: 1.0.0
  contact: {}
servers:
  - url: https://public.api.live.turrisfi.com
    description: Production
  - url: https://public.api.sandbox.turrisfi.com
    description: Sandbox
security: []
tags: []
paths:
  /v1/agents/{agentId}/sync:
    post:
      tags:
        - agents
      operationId: AgentFeatureController_enqueueAgentEntityInfo_v1
      parameters:
        - name: agentId
          required: true
          in: path
          description: The unique identifier of the agent to sync
          schema:
            format: mongodb-objectid
            type: string
      responses:
        '201':
          description: Agent sync job enqueued successfully
        '401':
          description: Invalid or missing auth token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '404':
          description: Agent not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
components:
  schemas:
    ErrorResponseDto:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code
        requestId:
          type: string
          description: Unique request identifier for debugging
        errorType:
          type: string
          description: Error type classification
        errorMessage:
          description: Array of error messages
          type: array
          items:
            type: string
        timestamp:
          type: string
          description: ISO timestamp when the error occurred
        details:
          type: object
          description: Additional error context
      required:
        - statusCode
        - requestId
        - errorType
        - errorMessage
        - timestamp

````