> ## 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.

# Replace Inbox

> Replace an existing inbox



## OpenAPI

````yaml /openapi/application.json put /api/v1/accounts/{account_id}/inboxes/{id}
openapi: 3.1.0
info:
  title: WiseApp API — Aplicação
  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:
  /api/v1/accounts/{account_id}/inboxes/{id}:
    put:
      tags:
        - Inboxes
      summary: Replace Inbox
      description: Replace an existing inbox
      operationId: replaceInbox
      parameters:
        - $ref: '#/components/parameters/account_id'
          schema:
            type: string
          example: sample
        - name: id
          in: path
          schema:
            type: number
          description: ID of the inbox
          required: true
          example: 1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/inbox_update_payload'
            example:
              name: Support
              avatar: https://example.com/resource
              greeting_enabled: true
              greeting_message: Hello, how can I help you?
              enable_email_collect: true
              csat_survey_enabled: true
              enable_auto_assignment: true
              working_hours_enabled: true
              out_of_office_message: >-
                We are currently out of office. Please leave a message and we
                will get back to you.
              timezone: America/New_York
              allow_messages_after_resolved: true
              lock_to_single_conversation: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inbox'
              example:
                id: 1
                name: Sample resource
                website_url: https://example.com/resource
                page_id: 1
                instagram_id: 1
                business_id: 1
                provider_name: Sample resource
                profile_id: 1
                line_channel_id: 1
                email: agent@example.com
                bot_name: Sample resource
                inbox_identifier: Sample text
        '403':
          description: Access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                error: Forbidden
        '404':
          description: Inbox not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                error: Resource not found
      security:
        - userApiKey: []
components:
  parameters:
    account_id:
      in: path
      name: account_id
      schema:
        type: integer
      required: true
      description: The numeric ID of the account
  schemas:
    inbox_update_payload:
      type: object
      properties:
        name:
          type: string
          description: The name of the inbox
          example: Support
        avatar:
          type: string
          format: binary
          description: Image file for avatar
        greeting_enabled:
          type: boolean
          description: Enable greeting message
          example: true
        greeting_message:
          type: string
          description: Greeting message to be displayed on the widget
          example: Hello, how can I help you?
        enable_email_collect:
          type: boolean
          description: Enable email collection
          example: true
        csat_survey_enabled:
          type: boolean
          description: Enable CSAT survey
          example: true
        enable_auto_assignment:
          type: boolean
          description: Enable Auto Assignment
          example: true
        working_hours_enabled:
          type: boolean
          description: Enable working hours
          example: true
        out_of_office_message:
          type: string
          description: Out of office message to be displayed on the widget
          example: >-
            We are currently out of office. Please leave a message and we will
            get back to you.
        timezone:
          type: string
          description: Timezone of the inbox
          example: America/New_York
        allow_messages_after_resolved:
          type: boolean
          description: Allow messages after conversation is resolved
          example: true
        lock_to_single_conversation:
          type: boolean
          description: Lock to single conversation
          example: true
        comments_enabled:
          type: boolean
          description: >-
            Facebook and Instagram inboxes. Receive post comments as messages
            (needs the account feature `social_comments`).
          example: true
        comments_top_level_only:
          type: boolean
          description: >-
            Facebook and Instagram inboxes. Skip comments that reply to other
            comments, so only top-level comments become messages.
          example: true
        portal_id:
          type: integer
          description: Id of the help center portal to attach to the inbox
          example: 1
        sender_name_type:
          type: string
          description: Sender name type for the inbox
          enum:
            - friendly
            - professional
          example: friendly
        business_name:
          type: string
          description: Business name for the inbox
          example: My Business
        branded_email_layout:
          type:
            - string
            - 'null'
          maxLength: 262144
          description: >
            Liquid HTML layout for outbound email replies. Must include `{{
            content_for_layout }}` and be 262,144 characters or shorter.


            Available for: `Email`
          example: <html><body>{{ content_for_layout }}</body></html>
        channel:
          type: object
          properties:
            website_url:
              type: string
              description: URL at which the widget will be loaded
              example: https://example.com
            welcome_title:
              type: string
              description: Welcome title to be displayed on the widget
              example: Welcome to our support
            welcome_tagline:
              type: string
              description: Welcome tagline to be displayed on the widget
              example: We are here to help you
            widget_color:
              type: string
              description: A Hex-color string used to customize the widget
              example: '#FF5733'
    inbox:
      type: object
      properties:
        id:
          type: number
          description: ID of the inbox
        name:
          type: string
          description: The name of the inbox
        website_url:
          type: string
          description: Website URL
        page_id:
          type:
            - string
            - 'null'
          description: Facebook Page ID associated with the inbox
        instagram_id:
          type:
            - string
            - 'null'
          description: Instagram account ID associated with the inbox
        business_id:
          type:
            - string
            - 'null'
          description: TikTok business ID associated with the inbox
        provider_name:
          type:
            - string
            - 'null'
          description: Provider username or page name associated with the social inbox
        profile_id:
          type:
            - string
            - 'null'
          description: X profile ID associated with the inbox
        line_channel_id:
          type:
            - string
            - 'null'
          description: LINE channel ID associated with the inbox
        email:
          type:
            - string
            - 'null'
          description: Email address associated with the inbox
        bot_name:
          type:
            - string
            - 'null'
          description: Telegram bot name associated with the inbox
        inbox_identifier:
          type:
            - string
            - 'null'
          description: Public identifier associated with an API inbox
        channel_type:
          type: string
          description: The type of the inbox
        avatar_url:
          type: string
          description: The avatar image of the inbox
        widget_color:
          type: string
          description: Widget Color used for customization of the widget
        website_token:
          type: string
          description: Website Token
        enable_auto_assignment:
          type: boolean
          description: The flag which shows whether Auto Assignment is enabled or not
        web_widget_script:
          type: string
          description: Script used to load the website widget
        welcome_title:
          type:
            - string
            - 'null'
          description: Welcome title to be displayed on the widget
        welcome_tagline:
          type:
            - string
            - 'null'
          description: Welcome tagline to be displayed on the widget
        greeting_enabled:
          type: boolean
          description: The flag which shows whether greeting is enabled
        greeting_message:
          type:
            - string
            - 'null'
          description: A greeting message when the user starts the conversation
        channel_id:
          type: number
          description: ID of the channel this inbox belongs to
        working_hours_enabled:
          type: boolean
          description: The flag which shows whether working hours feature is enabled
        enable_email_collect:
          type: boolean
          description: The flag to enable collecting email from contacts
        csat_survey_enabled:
          type: boolean
          description: The flag to enable CSAT survey
        auto_assignment_config:
          type: object
          description: Configuration settings for auto assignment
        out_of_office_message:
          type:
            - string
            - 'null'
          description: Message to show when agents are out of office
        out_of_office_config:
          type: object
          description: Conversations that never get the out-of-office message
          properties:
            ignore_groups:
              type: boolean
              description: Skip WhatsApp groups
            ignored_targets:
              type: array
              items:
                type: string
              description: Identifiers (entries with @) or phone numbers to skip
            ignored_labels:
              type: array
              items:
                type: string
              description: Contact labels to skip
        working_hours:
          type: array
          description: Configuration for working hours of the inbox
          items:
            type: object
            properties:
              day_of_week:
                type: number
                description: Day of the week (0-6, where 0 is Sunday)
              closed_all_day:
                type: boolean
                description: Whether the inbox is closed for the entire day
              open_hour:
                type:
                  - number
                  - 'null'
                description: Hour when inbox opens (0-23)
              open_minutes:
                type:
                  - number
                  - 'null'
                description: Minutes of the hour when inbox opens (0-59)
              close_hour:
                type:
                  - number
                  - 'null'
                description: Hour when inbox closes (0-23)
              close_minutes:
                type:
                  - number
                  - 'null'
                description: Minutes of the hour when inbox closes (0-59)
              break_start_hour:
                type:
                  - number
                  - 'null'
                description: Hour when lunch break starts (0-23)
              break_start_minutes:
                type:
                  - number
                  - 'null'
                description: Minutes when lunch break starts (0-59)
              break_end_hour:
                type:
                  - number
                  - 'null'
                description: Hour when lunch break ends (0-23)
              break_end_minutes:
                type:
                  - number
                  - 'null'
                description: Minutes when lunch break ends (0-59)
              open_all_day:
                type: boolean
                description: Whether the inbox is open for the entire day
        timezone:
          type: string
          description: Timezone configuration for the inbox
        callback_webhook_url:
          type:
            - string
            - 'null'
          description: Webhook URL for callbacks
        allow_messages_after_resolved:
          type: boolean
          description: Whether to allow messages after a conversation is resolved
        lock_to_single_conversation:
          type: boolean
          description: Whether to lock a contact to a single conversation
        comments_enabled:
          type: boolean
          description: >-
            Whether Facebook and Instagram post comments are received as
            messages. Off by default.
        comments_top_level_only:
          type: boolean
          description: >-
            Whether comments that reply to other comments are skipped. On by
            default.
        sender_name_type:
          type: string
          description: Type of sender name to display (e.g., friendly)
        business_name:
          type:
            - string
            - 'null'
          description: Business name associated with the inbox
        branded_email_layout:
          type:
            - string
            - 'null'
          maxLength: 262144
          description: >-
            Liquid HTML layout for branded email replies, up to 262,144
            characters. Available to administrators for Email inbox show/update
            responses.
        hmac_mandatory:
          type: boolean
          description: Whether HMAC verification is mandatory
        selected_feature_flags:
          type:
            - array
            - 'null'
          description: Selected feature flags for the inbox
          items:
            type: string
        reply_time:
          type: string
          description: Expected reply time
        messaging_service_sid:
          type:
            - string
            - 'null'
          description: Messaging service SID for SMS providers
        phone_number:
          type:
            - string
            - 'null'
          description: Phone number associated with the inbox
        medium:
          type: string
          description: Medium of communication (e.g., sms, email)
        provider:
          type:
            - string
            - 'null'
          description: Provider of the channel
        direct_send_enabled:
          type: boolean
          description: >-
            WhatsApp Cloud only. Direct Send is turned on and the inbox still
            meets Meta's requirement (100K or unlimited messaging limit).
        direct_send_eligible:
          type: boolean
          description: >-
            WhatsApp Cloud only, administrators only. The inbox meets Meta's
            usual Direct Send requirement (100K or unlimited messaging limit).
    bad_request_error:
      title: data
      type: object
      properties:
        description:
          type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/request_error'
    request_error:
      type: object
      properties:
        field:
          type: string
        message:
          type: string
        code:
          type: string
  securitySchemes:
    userApiKey:
      type: apiKey
      in: header
      name: api_access_token
      description: >-
        Token de acesso do usuário (Perfil → Token de acesso). Dá acesso
        conforme o papel do usuário e age em nome dele.

````

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