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

# Import a ChatGPT or Claude export

> Send the parsed `conversations.json` from a ChatGPT or Claude data export. The newest
conversations are ingested (default 50, max 200). Re-importing the same export is a no-op.




## OpenAPI

````yaml /openapi.yaml post /api/memories/import
openapi: 3.1.0
info:
  title: MemContext API
  version: 1.1.0
  description: |
    REST API for persistent, evolving AI memory. Save, search, and manage
    memories with automatic deduplication, version chains, and hybrid retrieval.
servers:
  - url: https://api.memcontext.in
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Memories
    description: Save, search, list, update, and delete memories.
  - name: History
    description: Inspect how memories evolve over time.
  - name: Feedback
    description: Rate retrieval quality to improve future results.
  - name: Profiles
    description: Pre-aggregated user context from memory.
  - name: Workspaces
    description: >-
      Company/team account boundaries for billing, members, API keys, and
      vaults.
  - name: API Keys
    description: Workspace-bound API keys for server-side integrations.
  - name: Subscription
    description: Workspace-owned billing and member-memory limits.
  - name: Context Vault
    description: Document ingestion and workspace RAG retrieval.
paths:
  /api/memories/import:
    post:
      tags:
        - Memories
      summary: Import a ChatGPT or Claude export
      description: >
        Send the parsed `conversations.json` from a ChatGPT or Claude data
        export. The newest

        conversations are ingested (default 50, max 200). Re-importing the same
        export is a no-op.
      operationId: importConversations
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - conversations
              properties:
                format:
                  type: string
                  enum:
                    - chatgpt
                    - claude
                    - auto
                  default: auto
                conversations:
                  type: array
                  items: {}
                project:
                  type: string
                scope:
                  type: string
                limit:
                  type: integer
                  minimum: 1
                  maximum: 200
      responses:
        '202':
          description: Accepted for background extraction.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportConversationsResponse'
        '400':
          description: Unrecognized export format.
components:
  schemas:
    ImportConversationsResponse:
      type: object
      required:
        - format
        - conversations
        - accepted
        - skipped
        - redacted
      properties:
        format:
          type: string
          enum:
            - chatgpt
            - claude
        conversations:
          type: integer
        accepted:
          type: integer
        skipped:
          type: integer
        redacted:
          type: integer
        deferred:
          type: integer
          description: >-
            Chunks over the per-import budget (100) or the memory limit.
            Re-import to continue.
        limitExceeded:
          type: boolean
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >
        API key created from the MemContext dashboard. Keys are prefixed with
        `mc_`, bound to one workspace, and API-key requests cannot override that
        workspace.

````

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