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

---
id: dffc71e8-1564-49f2-909c-958aab785ce2
---

# Update a message 

> Update a message's status to indicate if it was successfully sent, failed to send, or was read. For failed messages, this can also include the error message for the failure.

> [accordion] Supported products

> [accordion] Required Scopes


## OpenAPI

````yaml specs/2026-03/conversations-custom-channels-v2026-03.json PATCH /conversations/custom-channels/2026-03/{channelId}/messages/{messageId}
openapi: 3.0.1
info:
  title: Conversations Custom Channels
  description: Basepom for all HubSpot Projects
  version: 2026-03
  x-hubspot-product-tier-requirements:
    marketing: FREE
    sales: PROFESSIONAL
    service: PROFESSIONAL
    cms: FREE
    commerce: FREE
    crmHub: FREE
    dataHub: FREE
  x-hubspot-api-use-case: >-
    Allow admins to install an integration with a third-party messaging channel
    that your team uses to communicate with customers, to allow users in your
    account to manage their conversations for that channel directly in HubSpot.
  x-hubspot-introduction: >-
    Use the custom channels API to create custom channels to build a bridge
    between an external message service and HubSpot's inbox or help desk
    features. 
servers:
  - url: https://api.hubapi.com
security: []
tags:
  - name: Basic
  - name: Channel accounts
  - name: Channels
  - name: Messages
paths:
  /conversations/custom-channels/2026-03/{channelId}/messages/{messageId}:
    patch:
      tags:
        - Messages
      summary: 'Update a message '
      description: >-
        Update a message's status to indicate if it was successfully sent,
        failed to send, or was read. For failed messages, this can also include
        the error message for the failure.
      operationId: >-
        patch-/conversations/custom-channels/2026-03/{channelId}/messages/{messageId}
      parameters:
        - name: channelId
          in: path
          description: >-
            The unique identifier of the custom channel that contains the
            message.
          required: true
          style: simple
          explode: false
          schema:
            type: integer
            format: int32
        - name: messageId
          in: path
          description: The unique identifier of the message to update.
          required: true
          style: simple
          explode: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/PublicChannelIntegrationMessageUpdateRequest
        required: true
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicConversationsMessage'
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - conversations.custom_channels.write
components:
  schemas:
    PublicChannelIntegrationMessageUpdateRequest:
      required:
        - statusType
      type: object
      properties:
        errorMessage:
          type: string
          description: A string containing an error message, if applicable.
        statusType:
          type: string
          description: Valid status are SENT, FAILED, and READ
          enum:
            - FAILED
            - READ
            - SENT
    PublicConversationsMessage:
      required:
        - archived
        - attachments
        - channelAccountId
        - channelId
        - client
        - conversationsThreadId
        - createdAt
        - createdBy
        - direction
        - id
        - recipients
        - senders
        - text
        - truncationStatus
        - type
      type: object
      properties:
        archived:
          type: boolean
          description: A boolean indicating whether the message is archived.
        attachments:
          type: array
          description: >-
            An array of attachments included with the message, which can be
            files, locations, contacts, or other supported types.
          items:
            oneOf:
              - $ref: '#/components/schemas/PublicFile'
              - $ref: '#/components/schemas/PublicLocation'
              - $ref: '#/components/schemas/PublicContact'
              - $ref: '#/components/schemas/PublicUnsupportedContent'
              - $ref: '#/components/schemas/PublicMessageHeader'
              - $ref: '#/components/schemas/PublicQuickReplies'
              - $ref: '#/components/schemas/PublicWhatsAppTemplateMetadata'
              - $ref: '#/components/schemas/PublicSocialMetadataAttachment'
        channelAccountId:
          type: string
          description: The identifier of the channel account associated with the message.
        channelId:
          type: string
          description: The identifier of the channel through which the message was sent.
        client:
          $ref: '#/components/schemas/PublicClient'
        conversationsThreadId:
          type: string
          description: >-
            The identifier for the conversation thread to which this message
            belongs.
        createdAt:
          type: string
          description: The date and time when the message was created, in ISO 8601 format.
          format: date-time
        createdBy:
          type: string
          description: The identifier of the user or system that created the message.
        direction:
          type: string
          description: The direction of the message, either 'INCOMING' or 'OUTGOING'.
          enum:
            - INCOMING
            - OUTGOING
        id:
          type: string
          description: The unique identifier for the message.
        inReplyToId:
          type: string
          description: >-
            The identifier of the message to which this message is a reply, if
            applicable.
        recipients:
          type: array
          description: >-
            An array of recipients of the message, each containing recipient
            details.
          items:
            $ref: '#/components/schemas/PublicRecipient'
        richText:
          type: string
          description: The rich text content of the message, if available.
        senders:
          type: array
          description: >-
            An array of senders associated with the message, each containing
            sender details.
          items:
            $ref: '#/components/schemas/PublicSender'
        status:
          $ref: '#/components/schemas/PublicMessageStatus'
        subject:
          type: string
          description: The subject of the message, if applicable.
        text:
          type: string
          description: The plain text content of the message.
        truncationStatus:
          type: string
          description: >-
            Indicates whether the message content is truncated. Valid values are
            'NOT_TRUNCATED', 'TRUNCATED_TO_MOST_RECENT_REPLY', and 'TRUNCATED'.
          enum:
            - NOT_TRUNCATED
            - TRUNCATED
            - TRUNCATED_TO_MOST_RECENT_REPLY
        type:
          type: string
          description: The type of the message, which is always 'MESSAGE'.
          default: MESSAGE
          enum:
            - MESSAGE
        updatedAt:
          type: string
          description: >-
            The date and time when the message was last updated, in ISO 8601
            format.
          format: date-time
      x-hubspot-sub-type-impl: true
    PublicFile:
      title: FILE
      required:
        - fileId
        - fileUsageType
        - type
      type: object
      properties:
        fileId:
          type: string
          description: A string representing the unique identifier for the file.
        fileUsageType:
          type: string
          description: >-
            A string specifying the usage type of the file, which can be
            'STICKER', 'VOICE_RECORDING', 'IMAGE', 'AUDIO', or 'OTHER'.
          enum:
            - AUDIO
            - IMAGE
            - OTHER
            - STICKER
            - VOICE_RECORDING
        name:
          type: string
          description: A string containing the name of the file.
        type:
          type: string
          description: >-
            A string indicating the type of the attachment, which is always
            'FILE'.
          default: FILE
          enum:
            - FILE
        url:
          type: string
          description: A string containing the URL where the file can be accessed.
      x-hubspot-sub-type-impl: true
    PublicLocation:
      title: LOCATION
      required:
        - latitude
        - longitude
        - type
      type: object
      properties:
        address:
          type: string
          description: A string representing the address of the location.
        latitude:
          type: number
          description: A number representing the latitude of the location.
        longitude:
          type: number
          description: A number representing the longitude of the location.
        name:
          type: string
          description: A string representing the name of the location.
        type:
          type: string
          description: >-
            A string that specifies the type of the component, which is
            'LOCATION'.
          default: LOCATION
          enum:
            - LOCATION
        url:
          type: string
          description: A string representing a URL associated with the location.
      x-hubspot-sub-type-impl: true
    PublicContact:
      title: CONTACT
      required:
        - contactProfile
        - type
      type: object
      properties:
        contactProfile:
          $ref: '#/components/schemas/ContactProfile'
        type:
          type: string
          description: >-
            A string indicating the type of the component, which is 'CONTACT' by
            default.
          default: CONTACT
          enum:
            - CONTACT
      x-hubspot-sub-type-impl: true
    PublicUnsupportedContent:
      title: UNSUPPORTED_CONTENT
      required:
        - type
      type: object
      properties:
        type:
          type: string
          description: >-
            A string that specifies the type of unsupported content. The default
            and only valid value is 'UNSUPPORTED_CONTENT'.
          default: UNSUPPORTED_CONTENT
          enum:
            - UNSUPPORTED_CONTENT
      x-hubspot-sub-type-impl: true
    PublicMessageHeader:
      title: MESSAGE_HEADER
      required:
        - type
      type: object
      properties:
        fileId:
          type: integer
          description: >-
            An integer representing the ID of an associated file, formatted as
            an int64.
          format: int64
        text:
          type: string
          description: A string containing the text content of the message header.
        type:
          type: string
          description: >-
            A string indicating the type of message header. The default and only
            valid value is 'MESSAGE_HEADER'.
          default: MESSAGE_HEADER
          enum:
            - MESSAGE_HEADER
      x-hubspot-sub-type-impl: true
    PublicQuickReplies:
      title: QUICK_REPLIES
      required:
        - allowMultiSelect
        - allowUserInput
        - quickReplies
        - type
      type: object
      properties:
        allowMultiSelect:
          type: boolean
          description: >-
            A boolean indicating whether multiple quick replies can be selected
            by the user.
        allowUserInput:
          type: boolean
          description: >-
            A boolean indicating whether the user is allowed to input their own
            response in addition to selecting from the quick replies.
        quickReplies:
          type: array
          description: >-
            An array of QuickReply objects, each representing a single quick
            reply option available to the user.
          items:
            $ref: '#/components/schemas/QuickReply'
        type:
          type: string
          description: >-
            A string indicating the type of the component, which is
            'QUICK_REPLIES'.
          default: QUICK_REPLIES
          enum:
            - QUICK_REPLIES
      x-hubspot-sub-type-impl: true
    PublicWhatsAppTemplateMetadata:
      title: WHATSAPP_TEMPLATE_METADATA
      required:
        - crmObjectIds
        - parameters
        - type
      type: object
      properties:
        contentId:
          type: integer
          description: >-
            An integer representing the content ID associated with the template.
            This is a 64-bit integer.
          format: int64
        crmObjectIds:
          type: object
          additionalProperties:
            type: integer
            format: int64
          description: >-
            An object mapping CRM object types to their respective IDs, where
            each ID is a 64-bit integer.
        mappedTemplateId:
          type: integer
          description: >-
            An integer representing the ID of the mapped template. This is a
            64-bit integer.
          format: int64
        parameters:
          type: object
          additionalProperties:
            type: string
          description: >-
            An object containing key-value pairs of parameters used for template
            customization, where each value is a string.
        rootMicId:
          type: integer
          description: >-
            An integer representing the root message interaction context ID.
            This is a 64-bit integer.
          format: int64
        type:
          type: string
          description: >-
            A string indicating the type of metadata, which is
            'WHATSAPP_TEMPLATE_METADATA'.
          default: WHATSAPP_TEMPLATE_METADATA
          enum:
            - WHATSAPP_TEMPLATE_METADATA
      x-hubspot-sub-type-impl: true
    PublicSocialMetadataAttachment:
      title: SOCIAL_MEDIA_METADATA
      required:
        - socialMetadata
        - type
      type: object
      properties:
        socialMetadata:
          $ref: '#/components/schemas/SocialMetadata'
        type:
          type: string
          description: >-
            A string indicating the type of attachment, which is
            'SOCIAL_MEDIA_METADATA'.
          default: SOCIAL_MEDIA_METADATA
          enum:
            - SOCIAL_MEDIA_METADATA
      x-hubspot-sub-type-impl: true
    PublicClient:
      required:
        - clientType
      type: object
      properties:
        clientType:
          type: string
          description: >-
            The type of client interacting with the API. Valid values include
            'HUBSPOT', 'SYSTEM', 'INTEGRATION', and 'UNKNOWN'.
          enum:
            - HUBSPOT
            - INTEGRATION
            - SYSTEM
            - UNKNOWN
        integrationAppId:
          type: integer
          description: >-
            The unique identifier for the integration application associated
            with this client. It is an integer value.
          format: int32
    PublicRecipient:
      required:
        - deliveryIdentifier
      type: object
      properties:
        actorId:
          type: string
          description: >-
            A string representing the unique identifier of the actor associated
            with the recipient.
        deliveryIdentifier:
          $ref: '#/components/schemas/PublicDeliveryIdentifier'
        name:
          type: string
          description: A string representing the name of the recipient.
        recipientField:
          type: string
          description: A string representing a specific field related to the recipient.
    PublicSender:
      type: object
      properties:
        actorId:
          type: string
          description: The unique identifier for the sender, represented as a string.
        deliveryIdentifier:
          $ref: '#/components/schemas/PublicDeliveryIdentifier'
        name:
          type: string
          description: The name of the sender, represented as a string.
        senderField:
          type: string
          description: >-
            A string field associated with the sender, its specific use is not
            detailed in the spec.
    PublicMessageStatus:
      required:
        - statusType
      type: object
      properties:
        failureDetails:
          $ref: '#/components/schemas/PublicMessageFailureDetails'
        statusType:
          type: string
          description: >-
            The current status of the message. Valid values include 'SENT',
            'FAILED', 'RECEIVED', and 'READ'.
          enum:
            - FAILED
            - READ
            - RECEIVED
            - SENT
    Error:
      required:
        - category
        - correlationId
        - message
      type: object
      properties:
        category:
          type: string
          description: The error category
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Context about the error condition
          example: >-
            {invalidPropertyName=[propertyValue], missingScopes=[scope1,
            scope2]}
        correlationId:
          type: string
          description: >-
            A unique identifier for the request. Include this value with any
            error reports or support tickets
          format: uuid
          example: aeb5f871-7f07-4993-9211-075dc63e7cbf
        errors:
          type: array
          description: further information about the error
          items:
            $ref: '#/components/schemas/ErrorDetail'
        links:
          type: object
          additionalProperties:
            type: string
          description: >-
            A map of link names to associated URIs containing documentation
            about the error or recommended remediation steps
        message:
          type: string
          description: >-
            A human readable message describing the error along with remediation
            steps where appropriate
          example: An error occurred
        subCategory:
          type: string
          description: >-
            A specific category that contains more specific detail about the
            error
      description: >-
        Represents an error response returned by the API when an operation
        fails. This component is used in various endpoints to provide detailed
        information about the error encountered.
      example:
        message: Invalid input (details will vary based on the error)
        correlationId: aeb5f871-7f07-4993-9211-075dc63e7cbf
        category: VALIDATION_ERROR
        links:
          knowledge-base: https://www.hubspot.com/products/service/knowledge-base
    ContactProfile:
      required:
        - addresses
        - emails
        - phones
        - urls
      type: object
      properties:
        addresses:
          type: array
          description: >-
            An array of addresses associated with the contact, where each
            address includes details such as type (e.g., HOME, WORK), street,
            city, state, zip, country, and country code.
          items:
            $ref: '#/components/schemas/ContactAddress'
        emails:
          type: array
          description: >-
            An array of email addresses for the contact, with each email having
            a type (e.g., HOME, WORK) and the email address itself.
          items:
            $ref: '#/components/schemas/ContactEmail'
        name:
          $ref: '#/components/schemas/ContactName'
        org:
          $ref: '#/components/schemas/ContactOrg'
        phones:
          type: array
          description: >-
            An array of phone numbers for the contact, with each phone number
            including a type (e.g., CELL, MAIN, HOME, WORK) and the phone
            number.
          items:
            $ref: '#/components/schemas/ContactPhone'
        urls:
          type: array
          description: >-
            An array of URLs related to the contact, where each URL includes a
            type (e.g., HOME, WORK) and the URL itself.
          items:
            $ref: '#/components/schemas/ContactUrl'
    QuickReply:
      required:
        - value
        - valueType
      type: object
      properties:
        label:
          type: string
          description: >-
            The label displayed to the user for the quick reply option. It is a
            string.
        value:
          type: string
          description: >-
            The value associated with the quick reply, typically used as the
            response when the quick reply is selected. It is a string.
        valueType:
          type: string
          description: >-
            The type of the value, indicating how the value should be
            interpreted. It is a string and can be either 'TEXT' or 'URL'.
          enum:
            - TEXT
            - URL
    SocialMetadata:
      required:
        - mediaType
      type: object
      properties:
        description:
          type: string
          description: A description of the media content.
        id:
          type: string
          description: The unique identifier for this media content.
        mediaTitle:
          type: string
          description: The title of the media content.
        mediaType:
          type: string
          description: >-
            The type of media content, such as 'PHOTO', 'VIDEO', 'CAROUSEL',
            'LINK', 'ARTICLE', 'GIF', 'DOCUMENT', 'POLL', 'NONE', 'STORY', or
            'AUDIO'.
          enum:
            - ARTICLE
            - AUDIO
            - CAROUSEL
            - DOCUMENT
            - GIF
            - LINK
            - NONE
            - PHOTO
            - POLL
            - STORY
            - VIDEO
        mediaUrl:
          type: string
          description: The URL where the media content is located.
        mediaUrlString:
          type: string
          description: A string representing the URL of the media content.
        thumbnailUrl:
          type: string
          description: The URL of the thumbnail image for the media content.
    PublicDeliveryIdentifier:
      required:
        - type
        - value
      type: object
      properties:
        type:
          type: string
          description: >-
            A string representing the type of delivery identifier. Valid values
            include 'HS_EMAIL_ADDRESS', 'HS_PHONE_NUMBER', 'HS_SHORT_CODE', and
            'CHANNEL_SPECIFIC_OPAQUE_ID'.
          enum:
            - CHANNEL_SPECIFIC_OPAQUE_ID
            - HS_EMAIL_ADDRESS
            - HS_PHONE_NUMBER
            - HS_SHORT_CODE
        value:
          type: string
          description: >-
            A string representing the value associated with the delivery
            identifier type.
    PublicMessageFailureDetails:
      required:
        - errorMessageTokens
      type: object
      properties:
        errorMessage:
          type: string
          description: >-
            A string containing a human-readable description of the error that
            occurred during message delivery.
        errorMessageTokens:
          type: object
          additionalProperties:
            type: string
          description: >-
            An object containing key-value pairs where each key is a token name
            and each value is a string. These tokens provide additional context
            or details related to the error message.
    ErrorDetail:
      required:
        - message
      type: object
      properties:
        code:
          type: string
          description: The status code associated with the error detail
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Context about the error condition
          example: '{missingScopes=[scope1, scope2]}'
        in:
          type: string
          description: The name of the field or parameter in which the error was found.
        message:
          type: string
          description: >-
            A human readable message describing the error along with remediation
            steps where appropriate
        subCategory:
          type: string
          description: >-
            A specific category that contains more specific detail about the
            error
      description: >-
        Represents detailed information about an error that occurred in the API.
        This component is used to provide additional context and specifics about
        errors, typically as part of an error response.
    ContactAddress:
      type: object
      properties:
        city:
          type: string
          description: The city where the contact is located. It is a string value.
        country:
          type: string
          description: The country where the contact is located. It is a string value.
        countryCode:
          type: string
          description: >-
            The code representing the country of the contact's address. It is a
            string value.
        state:
          type: string
          description: The state where the contact is located. It is a string value.
        street:
          type: string
          description: The street address of the contact. It is a string value.
        type:
          type: string
          description: The type of address, which can be either 'HOME' or 'WORK'.
          enum:
            - HOME
            - WORK
        zip:
          type: string
          description: The postal code of the contact's address. It is a string value.
    ContactEmail:
      required:
        - email
      type: object
      properties:
        email:
          type: string
          description: The actual email address of the contact, represented as a string.
        type:
          type: string
          description: The type of email address, which can be either 'HOME' or 'WORK'.
          enum:
            - HOME
            - WORK
    ContactName:
      type: object
      properties:
        firstName:
          type: string
          description: A string representing the first name of the contact.
        lastName:
          type: string
          description: A string representing the last name of the contact.
        middleName:
          type: string
          description: A string representing the middle name of the contact.
        prefix:
          type: string
          description: >-
            A string representing the prefix of the contact's name, such as
            'Mr.', 'Ms.', or 'Dr.'.
        suffix:
          type: string
          description: >-
            A string representing the suffix of the contact's name, such as
            'Jr.', 'Sr.', or 'III'.
    ContactOrg:
      type: object
      properties:
        company:
          type: string
          description: >-
            The name of the company the contact is associated with. It is a
            string value.
        department:
          type: string
          description: >-
            The department within the company where the contact works. It is a
            string value.
        title:
          type: string
          description: >-
            The job title of the contact within their company. It is a string
            value.
    ContactPhone:
      required:
        - phone
      type: object
      properties:
        phone:
          type: string
          description: >-
            The phone number associated with the contact. This is a string
            representing the contact's phone number.
        type:
          type: string
          description: >-
            The type of phone, which can be one of the following: 'CELL',
            'MAIN', 'HOME', or 'WORK'.
          enum:
            - CELL
            - HOME
            - MAIN
            - WORK
    ContactUrl:
      required:
        - url
      type: object
      properties:
        type:
          type: string
          description: >-
            The category of the URL, indicating its purpose. Valid values
            include 'HOME' and 'WORK'.
          enum:
            - HOME
            - WORK
        url:
          type: string
          description: The actual URL string associated with the contact.
  responses:
    Error:
      description: An error occurred.
      content:
        '*/*':
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://app.hubspot.com/oauth/authorize
          tokenUrl: https://api.hubapi.com/oauth/v1/token
          scopes:
            conversations.custom_channels.read: ''
            conversations.custom_channels.write: ''

````