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

# Create a conversation

> Create a conversation



## OpenAPI

````yaml /openapi/client.json post /public/api/v1/inboxes/{inbox_identifier}/contacts/{contact_identifier}/conversations
openapi: 3.1.0
info:
  title: WiseApp API — Cliente
  description: >-
    Referência completa da API do WiseApp: plataforma (provisionamento),
    aplicação (conta), cliente (canais públicos) e MCP.
  version: 1.1.0
servers:
  - url: https://chat.wiseapp360.com
    description: Sua instalação WiseApp
security: []
paths:
  /public/api/v1/inboxes/{inbox_identifier}/contacts/{contact_identifier}/conversations:
    parameters:
      - $ref: '#/components/parameters/public_inbox_identifier'
        schema:
          type: string
        example: sample
      - $ref: '#/components/parameters/public_contact_identifier'
        schema:
          type: string
        example: sample
    post:
      tags:
        - Conversations API
      summary: Create a conversation
      description: Create a conversation
      operationId: create-a-conversation
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/public_conversation_create_payload'
            example:
              custom_attributes:
                source: api
                segment: enterprise
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/public_conversation'
              example:
                id: 1
                uuid: 550e8400-e29b-41d4-a716-446655440000
                inbox_id: 1
                contact_last_seen_at: 1
                status: open
                agent_last_seen_at: 1
                messages:
                  - id: 1
                    content: Sample text
                    message_type: 1
                    content_type: Sample text
                    content_attributes:
                      source: api
                      segment: enterprise
                    created_at: 1
                    conversation_id: 1
                    attachments:
                      - id: 1
                        message_id: 1
                        file_type: image
                        account_id: 1
                        extension: Sample text
                        data_url: https://example.com/resource
                        thumb_url: https://example.com/resource
                        file_size: 1
                        width: 1
                        height: 1
                        coordinates_lat: 1
                        coordinates_long: 1
                    sender:
                      id: 1
                      name: Sample resource
                      avatar_url: https://example.com/resource
                      thumbnail: Sample text
                      type: contact
                      available_name: Sample resource
                      availability_status: open
                      email: agent@example.com
                      phone_number: '+15551234567'
                      identifier: Sample text
                      blocked: true
                      additional_attributes:
                        source: api
                        segment: enterprise
                contact:
                  id: 1
                  name: Sample resource
                  email: agent@example.com
                  phone_number: '+15551234567'
                  identifier: Sample text
                  blocked: true
                  additional_attributes:
                    source: api
                    segment: enterprise
                  custom_attributes:
                    source: api
                    segment: enterprise
                  contact_type: Sample text
                  country_code: Sample text
                  last_activity_at: '2026-05-20T12:00:00Z'
                  created_at: '2026-05-20T12:00:00Z'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                error: Unauthorized
      security: []
components:
  parameters:
    public_inbox_identifier:
      in: path
      name: inbox_identifier
      schema:
        type: string
      required: true
      description: The identifier obtained from API inbox channel
    public_contact_identifier:
      in: path
      name: contact_identifier
      schema:
        type: string
      required: true
      description: The source id of contact obtained on contact create
  schemas:
    public_conversation_create_payload:
      type: object
      properties:
        custom_attributes:
          type: object
          description: Custom attributes of the conversation
          example: {}
    public_conversation:
      type: object
      properties:
        id:
          type: integer
          description: Id of the conversation
        uuid:
          type: string
          description: UUID of the conversation
        inbox_id:
          type: integer
          description: The inbox id of the conversation
        contact_last_seen_at:
          type: integer
          description: >-
            Timestamp of when the contact last seen the conversation (Unix
            timestamp)
        status:
          type: string
          enum:
            - open
            - resolved
            - pending
            - snoozed
          description: The status of the conversation
        agent_last_seen_at:
          type: integer
          description: >-
            Timestamp of when the agent last seen the conversation (Unix
            timestamp)
        messages:
          type: array
          items:
            $ref: '#/components/schemas/public_message'
          description: Messages in the conversation
        contact:
          $ref: '#/components/schemas/public_contact_record'
    bad_request_error:
      title: data
      type: object
      properties:
        description:
          type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/request_error'
    public_message:
      type: object
      properties:
        id:
          type: integer
          description: Id of the message
        content:
          type:
            - string
            - 'null'
          description: >-
            Text content of the message. Can be null for attachment-only
            messages.
        message_type:
          type: integer
          description: >-
            Denotes the message type. Possible values: 0 (incoming), 1
            (outgoing), 2 (activity), 3 (template)
        content_type:
          type: string
          description: Content type of the message
        content_attributes:
          type: object
          description: Additional content attributes of the message
        created_at:
          type: integer
          description: Created at Unix timestamp of the message
        conversation_id:
          type: integer
          description: Display Id of the conversation the message belongs to
        attachments:
          type: array
          description: Attachments if any
          items:
            $ref: '#/components/schemas/public_message_attachment'
        sender:
          $ref: '#/components/schemas/public_message_sender'
    public_contact_record:
      type: object
      additionalProperties: true
      description: >-
        Full serialized contact record returned when the public API renders a
        Contact model directly.
      properties:
        id:
          type: integer
          description: Id of the contact
        name:
          type:
            - string
            - 'null'
          description: Name of the contact when available
        email:
          type:
            - string
            - 'null'
          description: Email of the contact
        phone_number:
          type:
            - string
            - 'null'
          description: Phone number of the contact
        identifier:
          type:
            - string
            - 'null'
          description: Identifier of the contact
        blocked:
          type: boolean
          description: Whether the contact is blocked
        additional_attributes:
          type:
            - object
            - 'null'
          description: Additional attributes of the contact when present
        custom_attributes:
          type:
            - object
            - 'null'
          description: Custom attributes of the contact when present
        contact_type:
          type:
            - string
            - 'null'
          description: Contact type of the contact when available
        country_code:
          type:
            - string
            - 'null'
          description: Country code of the contact
        last_activity_at:
          type:
            - string
            - 'null'
          description: Last activity timestamp of the contact in ISO 8601 format
        created_at:
          type:
            - string
            - 'null'
          description: Created timestamp of the contact in ISO 8601 format
        updated_at:
          type:
            - string
            - 'null'
          description: Updated timestamp of the contact in ISO 8601 format
        last_name:
          type:
            - string
            - 'null'
          description: Last name of the contact
        middle_name:
          type:
            - string
            - 'null'
          description: Middle name of the contact
        location:
          type:
            - string
            - 'null'
          description: Location of the contact
        account_id:
          type: integer
          description: Account id of the contact
        company_id:
          type:
            - integer
            - 'null'
          description: Company id of the contact
        label_list:
          type: array
          description: Labels applied to the contact
          items:
            type: string
    request_error:
      type: object
      properties:
        field:
          type: string
        message:
          type: string
        code:
          type: string
    public_message_attachment:
      type: object
      additionalProperties: true
      description: Attachment payload. Available fields vary by attachment file_type.
      properties:
        id:
          type: integer
          description: Id of the attachment
        message_id:
          type: integer
          description: Id of the parent message
        file_type:
          type: string
          enum:
            - image
            - audio
            - video
            - file
            - location
            - fallback
            - share
            - story_mention
            - contact
            - ig_reel
            - ig_post
            - ig_story
            - embed
          description: Type of the attached file
        account_id:
          type: integer
          description: Id of the account
        extension:
          type:
            - string
            - 'null'
          description: File extension
        data_url:
          type:
            - string
            - 'null'
          description: >-
            URL of the file. Can be null when an attachment variant has no
            external URL.
        thumb_url:
          type: string
          description: URL of the file thumbnail
        file_size:
          type: integer
          description: File size in bytes
        width:
          type:
            - integer
            - 'null'
          description: Width of the attachment when available
        height:
          type:
            - integer
            - 'null'
          description: Height of the attachment when available
        coordinates_lat:
          type: number
          description: Latitude for location attachments
        coordinates_long:
          type: number
          description: Longitude for location attachments
        fallback_title:
          type:
            - string
            - 'null'
          description: >-
            Fallback title for location, fallback, and contact attachments when
            available
        meta:
          type: object
          description: Metadata for contact attachments
        transcribed_text:
          type: string
          description: Transcribed text for audio attachments
    public_message_sender:
      type: object
      additionalProperties: true
      description: >-
        Polymorphic sender payload returned by push_event_data. Available fields
        vary by sender type.
      properties:
        id:
          type: integer
          description: Id of the sender
        name:
          type:
            - string
            - 'null'
          description: Name of the sender when available
        avatar_url:
          type: string
          description: >-
            Avatar URL of the sender. Present for senders of type user,
            agent_bot, and captain_assistant. Not present for contact senders
            (use thumbnail instead).
        thumbnail:
          type: string
          description: >-
            Avatar/thumbnail URL of the sender. Contact senders use this field;
            user senders may also include it.
        type:
          type: string
          enum:
            - contact
            - user
            - agent_bot
            - captain_assistant
          description: Type of the sender
        available_name:
          type:
            - string
            - 'null'
          description: Display name for user senders
        availability_status:
          type:
            - string
            - 'null'
          description: Availability status for user senders
        email:
          type:
            - string
            - 'null'
          description: Email of the sender when the sender is a contact
        phone_number:
          type:
            - string
            - 'null'
          description: Phone number of the sender when the sender is a contact
        identifier:
          type:
            - string
            - 'null'
          description: Identifier of the sender when the sender is a contact
        blocked:
          type: boolean
          description: Whether the sender is blocked when the sender is a contact
        additional_attributes:
          type:
            - object
            - 'null'
          description: Additional attributes when the sender is a contact and available
        custom_attributes:
          type:
            - object
            - 'null'
          description: Custom attributes when the sender is a contact and available
        description:
          type:
            - string
            - 'null'
          description: Description when the sender is a captain assistant
        created_at:
          type:
            - string
            - 'null'
          description: >-
            Created timestamp in ISO 8601 format when the sender is a captain
            assistant

````

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