Skip to main content

Social Media

GET/broadcast/v1/channels/setting/publish/current

Get details on the channels (e.g. Twitter account, Facebook page) connected to this portal that can be published to.

A "channel" is a specific destination like a Twitter profile, Facebook Page or LinkedIn Group. An account added to HubSpot may contain several channels, such as a Facebook account having access to several Facebook Pages.

Requirements
Auth Methods

Private apps

OAuth

Parameters

This endpoint doesn't take any parameters.

Response

Show more
GET/broadcast/v1/broadcasts

For a given portal, return details on a set of broadcast messages (e.g. a tweet or Facebook post).

A "broadcast" is a specific social message posted to a single social network.

Requirements
Auth Methods

Private apps

OAuth

Parameters
status

Query param

Only include broadcasts in matching state (success, waiting, canceled, error_fatal)

since

Query param

Only include broadcasts created at or more recently than given timestamp (milliseconds from epoch)

withChannelKeys

Query param

Only include broadcasts created on specific channels. To request multiple channels, include the withChannelKeys parameter multiple times

count

Query param

Only include specified number of results

offset

Query param

Used to get the next set of results. Increment the offset by the number your using in the count parameter to get the next set of results.

Response

Show more
GET/broadcast/v1/broadcasts/:broadcast_guid

For a given HubID, return details on a specific broadcast (e.g. a tweet or Facebook post).

A "broadcast" is a specific social message posted to a single social network.

Requirements
Scopes
  1. social
Auth Methods

Private apps

OAuth

Parameters
broadcast_guid*

Path param

Unique identifier for a specific broadcast.

Response

Show more
POST/broadcast/v1/broadcasts

Create a new broadcast message (e.g. a tweet or Facebook post) to be published. It can be scheduled immediately or at a time in the future.

Requirements
Auth Methods

Private apps

OAuth

Parameters
channelGuid*

Body param

The GUID of the publishing channel that the message is for. You can get all of the channels for a portal using this endpoint.

tirggerAt

Body param

A Unix timestamp in milliseconds of the time that the message should be published to the channel. If this is not included in the request, the message will be published immediately.

status

Body param

Use "status": "DRAFT" in the request body. This creates the message as a draft, meaning that it will not be scheduled to publish and can be reviewed and scheduled from within the HubSpot Social Media Publishing app.

Note: If the draft status is set, any triggerAt value will be unset.

Response

Show more
DELETE/broadcast/v1/broadcasts/:broadcast_guid

Cancel a scheduled broadcast (e.g. tweet or facebook post).

Requirements
Auth Methods

Private apps

OAuth

Parameters
broadcast_guid*

Path param

Unique identifier for a specific broadcast.

Response

Show more