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

# Create conversation assignment

> Assign a conversation to a team member. Only one active assignment is allowed per conversation.

The user must be a member of the project.




## OpenAPI

````yaml /api/platform/v1/openapi-platform.yaml post /whatsapp/conversations/{conversation_id}/assignments
openapi: 3.1.0
info:
  title: Kapso Platform API
  version: 0.2.0
  description: >
    Build WhatsApp messaging into your product. Manage customers, connect phone
    numbers, send broadcasts, and handle conversations.
servers:
  - url: https://api.kapso.ai/platform/v1
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Customers
    description: Manage customer accounts
  - name: Setup Links
    description: WhatsApp onboarding via embedded signup
  - name: Phone Numbers
    description: Connect and manage WhatsApp numbers
  - name: Webhooks
    description: Subscribe to WhatsApp events
  - name: Display Names
    description: Update WhatsApp business display names
  - name: Broadcasts
    description: |
      Send template messages at scale

      **Alpha**: This API is in alpha and subject to change
  - name: Conversations
    description: Manage conversation state
  - name: Media
    description: Upload media files for WhatsApp messaging
  - name: Users
    description: Manage project team members
  - name: Inbox Embeds
    description: Create and manage embeddable inbox access links
  - name: Webhook Deliveries
    description: View webhook delivery attempts and their status
  - name: External API Logs
    description: View logs of external API calls made by the project
  - name: Log Search
    description: Search log events across API, Meta, workflow, and webhook sources
  - name: Events
    description: Emit and query project-scoped events
  - name: Provider Models
    description: List available AI provider models
  - name: WhatsApp Flows
    description: Build interactive WhatsApp Flows for surveys and forms
  - name: Contacts
    description: Manage WhatsApp contacts
paths:
  /whatsapp/conversations/{conversation_id}/assignments:
    parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
    post:
      tags:
        - Conversations
      summary: Create conversation assignment
      description: >
        Assign a conversation to a team member. Only one active assignment is
        allowed per conversation.


        The user must be a member of the project.
      operationId: createConversationAssignment
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConversationAssignmentCreateRequest'
            examples:
              with_notes:
                summary: Assign with notes
                value:
                  assignment:
                    user_id: f1e2d3c4-b5a6-9870-fedc-ba0987654321
                    notes: Customer needs help with integration
              simple:
                summary: Simple assignment
                value:
                  assignment:
                    user_id: f1e2d3c4-b5a6-9870-fedc-ba0987654321
      responses:
        '201':
          description: Assignment created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationAssignmentResponse'
              examples:
                success:
                  value:
                    data:
                      id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                      user_id: f1e2d3c4-b5a6-9870-fedc-ba0987654321
                      created_by_user_id: f1e2d3c4-b5a6-9870-fedc-ba0987654321
                      notes: Customer needs help with integration
                      active: true
                      created_at: '2026-01-19T10:30:00Z'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '404':
          $ref: '#/components/responses/NotFoundError'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                user_not_found:
                  summary: User not in project
                  value:
                    error: User not found or not a member of this project
                already_assigned:
                  summary: Conversation already assigned
                  value:
                    error: Conversation already has an active assignment
components:
  schemas:
    ConversationAssignmentCreateRequest:
      type: object
      required:
        - assignment
      properties:
        assignment:
          type: object
          required:
            - user_id
          properties:
            user_id:
              type: string
              format: uuid
              description: ID of the user to assign
            notes:
              type: string
              description: Optional notes about the assignment
    ConversationAssignmentResponse:
      type: object
      required:
        - data
      properties:
        data:
          $ref: '#/components/schemas/ConversationAssignment'
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
    ConversationAssignment:
      type: object
      required:
        - id
        - user_id
        - active
        - created_at
      properties:
        id:
          type: string
          format: uuid
        user_id:
          type: string
          format: uuid
          description: ID of the user assigned to the conversation
        created_by_user_id:
          type:
            - string
            - 'null'
          format: uuid
          description: ID of the user who created the assignment
        notes:
          type:
            - string
            - 'null'
          description: Optional notes about the assignment
        active:
          type: boolean
          description: Whether this assignment is currently active
        created_at:
          type: string
          format: date-time
  responses:
    UnauthorizedError:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFoundError:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````