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

# Get or create a v2 conversation



## OpenAPI

````yaml /api-reference/openapi.json post /v1/conversations
openapi: 3.1.0
info:
  title: Feather API
  description: >-
    Unified customer experience platform API. Manages identity, conversations,
    memory, agents, procedures, policies, model routing, knowledge bases,
    integrations, and runtime execution.
  version: 1.87.0
servers:
  - url: https://api-sandbox.featherhq.com
    description: Sandbox
  - url: http://localhost:8000
    description: Local dev
security: []
paths:
  /v1/conversations:
    post:
      tags:
        - conversations
      summary: Get or create a v2 conversation
      operationId: getOrCreateV2Conversation
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConversationCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    ConversationCreate:
      properties:
        end_user_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: End User Id
        org_external_end_user_id:
          anyOf:
            - type: string
              maxLength: 255
              minLength: 1
            - type: 'null'
          title: Org External End User Id
        assistant_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Assistant Id
        assistant_revision_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Assistant Revision Id
        team_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Team Id
        team_revision_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Team Revision Id
        session_type:
          type: string
          enum:
            - live
            - test
            - simulation
          title: Session Type
          default: live
        external_id:
          anyOf:
            - type: string
            - type: 'null'
          title: External Id
        subject:
          anyOf:
            - type: string
            - type: 'null'
          title: Subject
        metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Metadata
        tool_input_overrides:
          anyOf:
            - additionalProperties:
                additionalProperties:
                  $ref: '#/components/schemas/InputArgConfig'
                type: object
              type: object
            - type: 'null'
          title: Tool Input Overrides
        context_variables:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Context Variables
        test_features:
          anyOf:
            - $ref: '#/components/schemas/TestSessionFeatureInput'
            - type: 'null'
      type: object
      title: ConversationCreate
      description: >-
        Get-or-create a v2 conversation (Phase F2) — CHAT ONLY (D4/ADR-007).


        The generic create route creates ``chat`` conversations only: sms /
        voice /

        email creation stays adapter-owned (``/v1/sms/send``, voice dispatch,
        the

        email pipeline). ``channel`` is therefore not a request field (forced

        server-side), and ``origin`` / ``channel_subtype`` are gone — both are

        server-assigned (ADR-005 / ADR-004).


        Bind to exactly one of a single Assistant (``assistant_id``) or a Team

        (``team_id`` + ``team_revision_id``) — the ``single_xor_team`` CHECK on

        ``conversations``.  ``assistant_revision_id`` is optional; when omitted
        it

        is resolved from the agent's active revision and pinned at bind time.
    ConversationResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        organization_id:
          type: string
          format: uuid
          title: Organization Id
        end_user_id:
          type: string
          format: uuid
          title: End User Id
        channel:
          type: string
          title: Channel
        surface:
          type: string
          title: Surface
        status:
          type: string
          title: Status
        session_type:
          type: string
          title: Session Type
        assistant_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Assistant Id
        assistant_revision_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Assistant Revision Id
        team_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Team Id
        team_revision_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Team Revision Id
        external_id:
          anyOf:
            - type: string
            - type: 'null'
          title: External Id
        subject:
          anyOf:
            - type: string
            - type: 'null'
          title: Subject
        tool_input_overrides:
          anyOf:
            - additionalProperties:
                additionalProperties:
                  $ref: '#/components/schemas/InputArgConfig'
                type: object
              type: object
            - type: 'null'
          title: Tool Input Overrides
        test_features:
          anyOf:
            - $ref: '#/components/schemas/TestSessionFeatures'
            - type: 'null'
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - organization_id
        - end_user_id
        - channel
        - surface
        - status
        - session_type
        - created_at
        - updated_at
      title: ConversationResponse
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
        message:
          type: string
          title: Message
        retryable:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Retryable
        retry_after:
          anyOf:
            - type: integer
            - type: 'null'
          title: Retry After
      type: object
      required:
        - error
        - message
      title: ErrorResponse
      description: Standard error response returned by all API error handlers.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    InputArgConfig:
      properties:
        value:
          title: Value
        type:
          $ref: '#/components/schemas/InputArgType'
          default: default
      additionalProperties: false
      type: object
      required:
        - value
      title: InputArgConfig
      description: >-
        One operator-configured input field: a ``value`` plus its enforcement
        ``type``.


        The wire/stored shape of each entry in the ``input_defaults`` map.
        ``type``

        defaults to ``default`` so a caller can omit it for the common case.
    TestSessionFeatureInput:
      properties:
        identity_resolution:
          type: boolean
          title: Identity Resolution
          default: false
        memory:
          type: boolean
          title: Memory
          default: false
        summarization:
          type: boolean
          title: Summarization
          default: false
        extraction:
          type: boolean
          title: Extraction
          default: false
        evaluations:
          type: boolean
          title: Evaluations
          default: false
        knowledge_gap_analysis:
          type: boolean
          title: Knowledge Gap Analysis
          default: false
      additionalProperties: false
      type: object
      title: TestSessionFeatureInput
      description: Caller-supplied toggles. Unknown fields are rejected.
    TestSessionFeatures:
      properties:
        version:
          type: integer
          const: 1
          title: Version
          default: 1
        identity_resolution:
          type: boolean
          title: Identity Resolution
        memory:
          type: boolean
          title: Memory
        summarization:
          type: boolean
          title: Summarization
        extraction:
          type: boolean
          title: Extraction
        evaluations:
          type: boolean
          title: Evaluations
        knowledge_gap_analysis:
          type: boolean
          title: Knowledge Gap Analysis
      additionalProperties: false
      type: object
      required:
        - identity_resolution
        - memory
        - summarization
        - extraction
        - evaluations
        - knowledge_gap_analysis
      title: TestSessionFeatures
      description: Resolved, immutable snapshot persisted on a test conversation.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    InputArgType:
      type: string
      enum:
        - default
        - pinned
      title: InputArgType
      description: |-
        How an operator-configured input value is enforced.

        * ``DEFAULT`` — a suggestion the agent may overwrite.
        * ``PINNED`` — a forced value the caller must use and cannot overwrite.
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````