> ## 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/v2/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.21.0
servers:
  - url: https://api-sandbox.featherhq.com
    description: Sandbox
  - url: http://localhost:8000
    description: Local dev
security: []
paths:
  /v1/v2/conversations:
    post:
      tags:
        - runtime v2
      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:
          type: string
          format: uuid
          title: End User Id
        channel:
          type: string
          title: Channel
          default: chat
        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
        channel_subtype:
          anyOf:
            - type: string
            - type: 'null'
          title: Channel Subtype
        origin:
          anyOf:
            - type: string
              enum:
                - inbound
                - outbound
            - type: 'null'
          title: Origin
        session_type:
          type: string
          enum:
            - live
            - test
            - simulation
          title: Session Type
          default: live
        external_id:
          anyOf:
            - type: string
            - type: 'null'
          title: External Id
        org_phone_number_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Org Phone Number 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
      type: object
      required:
        - end_user_id
      title: ConversationCreate
      description: >-
        Get-or-create a v2 conversation (Phase F2).


        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
        channel_subtype:
          anyOf:
            - type: string
            - type: 'null'
          title: Channel Subtype
        origin:
          anyOf:
            - type: string
            - type: 'null'
          title: Origin
        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
        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
        - status
        - session_type
        - created_at
        - updated_at
      title: ConversationResponse
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
        message:
          type: string
          title: Message
      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.
    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

````