Conversations API Beta

jhartz
Équipe de développement de HubSpot
Équipe de développement de HubSpot

Conversations API & Webhooks Documentation

Hey there, beta users!

 

For the Conversations API private beta, the main documentation is located at: https://developers.hubspot.com/docs/api/conversations/conversations

 

We also have Conversations webhooks that you can subscribe to in order to lern about new Conversations threads, updates to existing Conversations threads, and new messages on threads. You can create subscriptions for these in the "Webhooks" page for your app in your developer portal, or via the Webhooks API.

 

The available webhook events are:

  • Conversation - Created (converation.creation)
    • Indicates that a new Conversations thread has been created
  • Conversation - Deleted (conversation.deletion)
    • Indicates that a Conversations thread has been archived (or soft-deleted)
  • Conversation - Deleted for privacy (conversation.privacyDeletion)
    • Indicates that a Conversations thead has been purged (or hard-deleted)
  • Conversation - Property changed (conversation.propertyChange)
    • Indicates that a property of a Conversations thread has changed
    • Available properties:
      • assignedTo: indicates a thread's assignment has changed; value: the agent ID of the new assignee, if any
      • status: indicates a thread's status has changed; value: OPEN or CLOSED
      • isArchived: when a thread is restored (un-archived), a conversation.propertyChange webhook will be sent with isArchived: false
  • Conversation - New message (conversation.newMessage)
    • Indicates that a new message has been posted on a Conversations thread
    • Extra fields available on webhook:
      • messageId: the ID of the new message
      • messageType: the type of the new message (MESSAGE, COMMENT, WELCOME_MESSAGE)

The objectId on all webhook events is the ID of the Conversations thread that the webhook corresponds to.

 

For any questions or feedback regarding the documentation, the APIs themselves, or the webhooks, please start new threads in this forum.

 

--Jake

Technical Lead, Conversations product group

 

0 Réponses

0 Réponses

Aucune réponse publiée pour l'instant

Personne n'a encore répondu à ce post. Revenez plus tard pour voir si une solution a été proposée, ou soumettez votre propre réponse pour aider d'autres utilisateurs.

Répondre à ce post

Si vous avez besoin d'aide pour publier une réponse, consultez la politique d'utilisation de la communauté.