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

# Create from Transcript Segments

> Create a conversation from structured transcript segments with speaker diarization. Unlike text-based conversations, transcript segments are stored and can be retrieved with `include_transcript=true`.



## OpenAPI

````yaml POST /v1/dev/user/conversations/from-segments
openapi: 3.1.0
info:
  title: Omi Developer API
  description: >-
    Programmatic access to your Omi data — memories, conversations, action
    items, and API keys. Build custom integrations, analytics dashboards, and
    automation workflows.
  version: 1.0.0
  contact:
    name: Omi
    url: https://omi.me
  license:
    name: MIT
    url: https://github.com/BasedHardware/omi/blob/main/LICENSE
servers:
  - url: https://api.omi.me
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Memories
    description: Read and write user memories — timeless facts, preferences, and insights.
  - name: Conversations
    description: Create and retrieve conversation transcripts with AI-generated summaries.
  - name: Folders
    description: Retrieve user-defined folders for organizing conversations.
  - name: Action Items
    description: Manage tasks and to-dos extracted from conversations or created manually.
  - name: API Keys
    description: Create, list, and revoke developer API keys.
paths:
  /v1/dev/user/conversations/from-segments:
    post:
      tags:
        - Conversations
      summary: Create conversation from transcript segments
      description: >-
        Create a conversation from structured transcript segments with speaker
        diarization. Unlike text-based conversations, transcript segments are
        stored and can be retrieved with `include_transcript=true`.
      operationId: createConversationFromSegments
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateConversationFromSegments'
            example:
              transcript_segments:
                - text: Let's review the quarterly results
                  speaker: SPEAKER_00
                  is_user: true
                  start: 0
                  end: 3.5
                - text: Revenue is up 25% from last quarter
                  speaker: SPEAKER_01
                  is_user: false
                  start: 4
                  end: 7.2
              source: phone
              language: en
      responses:
        '200':
          description: Conversation created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationResponse'
              example:
                id: conv_789
                status: completed
                discarded: false
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/ValidationError'
components:
  schemas:
    CreateConversationFromSegments:
      type: object
      required:
        - transcript_segments
      properties:
        transcript_segments:
          type: array
          minItems: 1
          maxItems: 500
          items:
            $ref: '#/components/schemas/TranscriptSegmentInput'
          description: List of transcript segments (1–500).
        source:
          type: string
          default: external_integration
          description: Source of conversation.
        started_at:
          type: string
          format: date-time
          description: When conversation started.
        finished_at:
          type: string
          format: date-time
          description: When conversation finished.
        language:
          type: string
          default: en
          description: Language code.
        geolocation:
          $ref: '#/components/schemas/GeolocationInput'
    ConversationResponse:
      type: object
      properties:
        id:
          type: string
          description: Conversation ID.
        status:
          type: string
          description: Processing status.
        discarded:
          type: boolean
          description: Whether the conversation was discarded.
    TranscriptSegmentInput:
      type: object
      required:
        - text
        - start
        - end
      properties:
        text:
          type: string
          description: The spoken text.
        speaker:
          type: string
          default: SPEAKER_00
          description: Speaker identifier (e.g. `SPEAKER_00`).
        speaker_id:
          type: integer
          description: Numeric speaker ID.
        is_user:
          type: boolean
          default: false
          description: Whether this segment is from the user.
        person_id:
          type: string
          description: ID of known person speaking.
        start:
          type: number
          description: Start time in seconds.
        end:
          type: number
          description: End time in seconds.
    GeolocationInput:
      type: object
      properties:
        latitude:
          type: number
        longitude:
          type: number
    ErrorResponse:
      type: object
      properties:
        detail:
          type: string
          description: Error description.
  responses:
    Unauthorized:
      description: Invalid or missing API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            detail: Invalid API key
    ValidationError:
      description: Validation error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            detail: 'Validation error: content is required'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Developer API key. Get one from **Settings → Developer → Create Key** in
        the Omi app. Keys are prefixed with `omi_dev_`.

````