Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

HubSpot Messages API

Operations for sending, receiving, and managing messages within conversation threads.

HubSpot Messages API is one of 93 APIs that HubSpot publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 652 JSON Schema definitions.

Tagged areas include Messages. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, code examples, and 652 JSON Schemas.

This API exposes 3 operations across 2 paths, and defines 11 schemas. It is described by OpenAPI 3.1.0, at version 3.0.0.

Requests are made against a single base URL, https://api.hubapi.com.

3 operations 2 paths 11 schemas 2 GET1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
3.0.0
Base URL
https://api.example.com
Authentication
OAuth 2.0
License
Resource Areas
1

Authentication & Security 1

HubSpot Messages API declares 1 security scheme for authenticating requests. It supports OAuth 2.0 (OAuth2) using the authorizationCode flow, exposing 1 scope.

Paths & Operations 3

Across 2 paths, the API surfaces 3 operations — 2 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.

Messages 3

Operations for sending, receiving, and managing messages within conversation threads.

GET
/conversations/v3/conversations/threads/{threadId}/messages
Hubspot List Thread Messages
listThreadMessages 3 params → 200default
POST
/conversations/v3/conversations/threads/{threadId}/messages
Hubspot Send a Message
sendMessage 1 param body → 201default
GET
/conversations/v3/conversations/threads/{threadId}/messages/{messageId}
Hubspot Retrieve a Message
getMessageById 2 params → 200default

Schemas 11

The contract defines 11 schemas that model the data the API accepts and returns. The most detailed are Message (13 properties), Error (7 properties), SendMessageRequest (7 properties), ErrorDetail (5 properties). Each schema is shown below with its type and property counts.

ErrorDetail
object
Detailed information about a specific error.
5 properties 1 required
MessageRecipient
object
Recipient information for a message.
1 property
SendMessageRequest
object
Request payload for sending a message to a thread.
7 properties 3 required
MessageCollection
object
Paginated collection of messages
2 properties 1 required
Error
object
Standard error response structure.
7 properties 3 required
MessageStatus
object
Delivery status information for a message
1 property
Paging
object
Pagination information for list responses.
1 property
Message
object
Represents a message within a conversation thread.
13 properties 3 required
Attachment
object
Represents a file attachment on a message.
5 properties
PagingNext
object
Pagination cursor information for retrieving the next page.
2 properties
Actor
object
Represents a participant in a conversation (visitor, agent, or bot).
5 properties 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

hubspot-messages-api-openapi.yml Raw ↑

Other APIs HubSpot publishes across the network.

HubSpot Posts API
HubSpot URL Redirects API
HubSpot Pipelines API
HubSpot Products API
HubSpot Line Items API
HubSpot Quotes API
HubSpot CRM Properties API
HubSpot Owners API
HubSpot CRM Imports API
HubSpot Custom Objects API
HubSpot Marketing Events API
HubSpot Forms API