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

# Import sync data

> Post live data to the Collector for asynchronous processing

<Tip>This endpoint can only be used for testing purpose or very specific cases where you need to process the data synchronously. The queue will be skipped.</Tip>

<Tip>Don't forget to [generate your access token](/api-references/account-login) to use this endpoint.</Tip>


## OpenAPI

````yaml POST /sync
openapi: 3.0.1
info:
  title: Rimdian API reference
  description: >-
    Rimdian provides 2 apis: a Data Collector API to import data & a Server API
    to manage your workspace and settings.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: http://api-eu.rimdian.com
security: []
paths:
  /sync:
    servers:
      - url: http://collector-eu.rimdian.com
    post:
      description: Post live data to the Collector for asynchronous processing
      requestBody:
        description: >-
          This endpoint is used for special cases where you need to send &
          process data synchronously. The data is processed immediately and the
          response is returned in the same request.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DataImport'
        required: true
      responses:
        '200':
          description: Sync data import response
          content:
            application/json:
              schema:
                type: object
                example:
                  has_error: false
        '400':
          description: Item validation error
          content:
            application/json:
              schema:
                type: object
                example:
                  has_error: true
                  error: 'item validation error: ...'
                  queue_should_retry: false
      security:
        - bearerAuth: []
components:
  schemas:
    DataImport:
      required:
        - workspace_id
        - items
      type: object
      properties:
        workspace_id:
          description: Workspace ID
          type: string
        items:
          description: Array of 100 items max to import
          type: array
          items:
            type: object
            additionalProperties: true
            properties:
              kind:
                description: Kind of item
                type: string
          minItems: 1
          maxItems: 100
      example:
        workspace_id: acme_workspace
        items:
          - kind: user
            user:
              external_id: test_user_1
              is_authenticated: false
              created_at: '2024-01-01T00:00:00Z'
              updated_at: '2024-01-01T00:00:00Z'
              email: test@website.com
              first_name: John
              last_name: Doe
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````