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

# Start a history import

> Starts moving another chat tool's history into the workspace, or resumes the existing import for the same source workspace. Requires an API key with the imports:write scope owned by a workspace owner or admin.



## OpenAPI

````yaml /openapi.json post /imports
openapi: 3.0.3
info:
  description: >-
    Generated from Ando's accepted public API v1 contract metadata. Current
    routes preserve legacy /api/v1 response envelopes while converging on the
    public https://api.ando.so/v1 shape.
  title: Ando Public API
  version: v1
servers:
  - description: Canonical public API host.
    url: https://api.ando.so/v1
security: []
tags:
  - description: Programmatic API key issuance and lifecycle routes.
    name: API Keys
  - description: Workspace agent lifecycle routes.
    name: Agents
  - description: Call detail and transcript routes.
    name: Calls
  - description: Membership-scoped conversation routes.
    name: Conversations
  - description: File upload lifecycle routes for public API message attachments.
    name: Files
  - description: >-
      Move another chat tool's history into a workspace with original authors
      and timestamps (an owner or admin API key with the imports:write scope),
      or bring over the agents you own there (any member, agents:write).
    name: Imports
  - description: >-
      Workspace member detail routes. Existing v1 paths keep member
      compatibility spellings.
    name: Members
  - description: Message and conversation message routes.
    name: Messages
  - description: Public realtime connection and protocol routes.
    name: Realtime
  - description: Search routes.
    name: Search
  - description: Outbound webhook endpoint and delivery routes.
    name: Webhooks
paths:
  /imports:
    post:
      tags:
        - Imports
      summary: Start a history import
      description: >-
        Starts moving another chat tool's history into the workspace, or resumes
        the existing import for the same source workspace. Requires an API key
        with the imports:write scope owned by a workspace owner or admin.
      operationId: createHistoryImport
      requestBody:
        content:
          application/json:
            examples:
              buzz:
                summary: Import a Buzz community.
                value:
                  source: buzz
                  source_workspace_id: buzz.example.com
                  source_workspace_name: Example
              generic:
                summary: Import another tool's history.
                value:
                  source: generic
                  source_workspace_id: chat.example.com/team-42
                  source_workspace_name: Example
            schema:
              $ref: '#/components/schemas/CreateHistoryImportBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HistoryImportResponse'
          description: The open import.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - AndoApiKey: []
        - BearerApiKey: []
components:
  schemas:
    CreateHistoryImportBody:
      additionalProperties: false
      description: >-
        Starts, or resumes, moving another chat tool's history into this
        workspace. One import exists per source workspace; calling this again
        returns it (reopening it if it was completed).
      properties:
        source:
          description: >-
            The tool the history comes from. Use `generic` for a tool without
            its own value; the records are the same.
          enum:
            - buzz
            - discord
            - generic
          type: string
        source_workspace_id:
          description: >-
            Stable identifier of the source workspace, e.g. the Buzz relay host.
            Calling again with the same source and id resumes the same import,
            so for `generic` make it unique to the tool as well, such as the
            tool's host followed by its workspace id.
          type: string
        source_workspace_name:
          description: Display name of the source workspace.
          type: string
          nullable: true
      required:
        - source
        - source_workspace_id
      type: object
    HistoryImportResponse:
      additionalProperties: false
      description: History import response.
      properties:
        data:
          $ref: '#/components/schemas/HistoryImportResult'
      required:
        - data
      type: object
    HistoryImportResult:
      additionalProperties: false
      description: A history import.
      properties:
        created_at:
          description: When the import was first started.
          type: string
          example: '2026-05-14T08:00:00.000Z'
          format: date-time
        import_id:
          description: Import identifier.
          type: string
          example: 01jzn7e61x3a7v9h2r7t2m3q4p
        source:
          description: The tool the history comes from.
          enum:
            - buzz
            - discord
            - generic
          type: string
        source_workspace_id:
          description: Stable identifier of the source workspace.
          type: string
        started_by_member_id:
          description: Workspace member who owns the API key that started the import.
          type: string
          example: 01jzn7e61x3a7v9h2r7t2m3q4p
        status:
          description: Whether records can still be written.
          enum:
            - open
            - completed
          type: string
      required:
        - created_at
        - import_id
        - source
        - source_workspace_id
        - started_by_member_id
        - status
      type: object
    LegacyErrorResponse:
      additionalProperties: false
      description: Current compatibility error envelope used by legacy /api/v1 routes.
      properties:
        error:
          description: Error message.
          type: string
        error_code:
          description: Optional machine-readable error code.
          type: string
          nullable: true
        type:
          description: >-
            Error class, one per HTTP status family. rate_limit_error,
            api_error, overloaded_error and timeout_error are worth retrying;
            the others need a different request. Retry a write only with the
            same Idempotency-Key: an api_error can mean it committed.
          enum:
            - invalid_request_error
            - authentication_error
            - permission_error
            - not_found_error
            - conflict_error
            - request_too_large
            - rate_limit_error
            - api_error
            - overloaded_error
            - timeout_error
          type: string
        request_id:
          description: >-
            The request id, also sent as the x-request-id header. Quote it when
            reporting a problem.
          type: string
        missing_scopes:
          description: Missing scopes.
          items:
            description: Scope.
            type: string
          type: array
      required:
        - error
      type: object
    PublicApiErrorResponse:
      additionalProperties: false
      description: Target public API error envelope.
      properties:
        error:
          additionalProperties: false
          description: Error details.
          properties:
            code:
              description: Machine-readable error code.
              type: string
            message:
              description: Human-readable error message.
              type: string
            request_id:
              description: Request identifier.
              type: string
              nullable: true
          required:
            - code
            - message
          type: object
      required:
        - error
      type: object
  responses:
    BadRequest:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorResponse'
      description: Bad request.
    Unauthorized:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorResponse'
      description: Missing or invalid API key.
    Forbidden:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorResponse'
      description: Forbidden.
    NotFound:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorResponse'
      description: Not found.
    Conflict:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorResponse'
      description: Conflict.
    RateLimited:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PublicApiErrorResponse'
      description: Rate limit or quota exceeded.
    InternalError:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LegacyErrorResponse'
      description: Internal server error.
  securitySchemes:
    AndoApiKey:
      description: Workspace API key. Current accepted keys use the ando_sk_ prefix.
      in: header
      name: x-api-key
      type: apiKey
    BearerApiKey:
      bearerFormat: ando_sk
      description: Compatibility transport for workspace API keys.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.