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

# Sync Callback

> Sync employee data to the external system.
- Use Bearer Token (Authorization header) for JSON submission.
- Use username/password headers for multipart/form-data submission.




## OpenAPI

````yaml POST /api/external/sync/callback
openapi: 3.0.0
info:
  title: Employee List API
  description: Retrieve a paginated list of employees from the organization.
  version: 1.0.0
servers:
  - url: https://{env}.tartanhq.com
    description: Dynamic environment-based server
    variables:
      env:
        default: dev
security: []
paths:
  /api/external/sync/callback:
    post:
      summary: Sync Callback
      description: |
        Sync employee data to the external system.
        - Use Bearer Token (Authorization header) for JSON submission.
        - Use username/password headers for multipart/form-data submission.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmployeeData'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/EmployeeFormData'
      responses:
        '200':
          description: Sync successful
        '400':
          description: Invalid input
        '401':
          description: Unauthorized
      security:
        - bearerAuth: []
        - basicHeaderAuth: []
components:
  schemas:
    EmployeeData:
      type: object
      properties:
        name:
          type: string
        email:
          type: string
    EmployeeFormData:
      type: object
      properties:
        name:
          type: string
        email:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    basicHeaderAuth:
      type: apiKey
      in: header
      name: username

````