Skip to main content

Webhook Events

Ping​

com.hootsuite.ping.event.v1​

This is used by us to test whether a callback URL is responding (for example, when it has been consistently failing). You can safely ignore the contents of these events if you receive them and simply return a 200 OK response. A successful response will reenable a callback URL that has been previously disabled due to failure. Pings do not contain a sequence number, and pinging does not increment the sequence number associated with the callback URL.

{
"type": "com.hootsuite.ping.event.v1",
"data": {}
}

Comment​

com.hootsuite.comments.event.v1​

Comments represent the comment that is to be published on a social network. Message events are triggered when a comment's state changes. For example, an event will be triggered when a comment is successfully sent, or when it fails to send.

FieldDescriptionType
stateThe comment statestring
organizationThe organization resourceobject
organization.idThe organization's ID (will be null if the comment is not owned by an organization)string
commentThe comment resourceobject
comment.idThe comment's IDstring
timestampWhen the event occurred as an ISO-8601 stringstring

Valid values for the state field are as follows:

StateDescription
PENDING_APPROVALThe comment is pending approval before it can be sent.
EXPIRED_APPROVALThe comment has been expired due to being in review for too long.
COMPLETEDThe comment has been sent.
FAILEDThe comment has failed to post to the social network.
DELETEDThe comment has been deleted. It will not be sent. It can no longer be retrieved.
REJECTEDThe comment has failed approval. It will not be sent.
{
"seq_no": "123",
"type": "com.hootsuite.comments.event.v1",
"data": {
"state": "COMPLETED",
"organization": {
"id": "8962198"
},
"comment" : {
"id": "182836179"
},
"timestamp": "2018-02-03T18:27:41.000Z"
}
}

Message​

com.hootsuite.messages.event.v1​

Messages represent the content that is scheduled to be published on a social network. Message events are triggered when a message's state changes. For example, an event will be triggered when a message is successfully sent, or when it fails to send.

FieldDescriptionType
stateThe message statestring
organizationThe organization resourceobject
organization.idThe organization's ID (will be null if the message is not owned by an organization)string
messageThe message resourceobject
message.idThe message's IDstring
timestampWhen the event occurred as an ISO-8601 stringstring

Valid values for the state field are as follows:

StateDescription
SCHEDULEDThe message is currently scheduled and will be sent out at the scheduled send time.
PENDING_APPROVALThe message is pending approval before it can be scheduled or sent.
APPROVEDThe message has been approved and will be scheduled or sent.
SUBMITTEDThe message has a video attached that is in the process of being uploaded to the social network.
SENTThe message has been posted to the specified social network.
SEND_FAILED_PERMANENTLYThe message has failed to post to the social network.
DELETEDThe message has been deleted. It will not be scheduled or sent. It can no longer be retrieved.
REJECTEDThe message has failed approval. It will not be scheduled or sent.
{
"seq_no": "123",
"type": "com.hootsuite.messages.event.v1",
"data": {
"state": "SENT",
"organization": {
"id": "8962198"
},
"message" : {
"id": "182836179"
},
"timestamp": "2018-02-03T18:27:41.000Z"
}
}

Apps​

com.hootsuite.apps.event.v1​

These events represent changes to a registered application's state. There are two types of applications that work at different scopes: Member Applications, and Organization Applications. Events triggered for member applications will have a member field that will indicate the associated member affected in the event, while organization applications will have a corresponding organization field.

FieldDescriptionType
stateThe application statestring
appThe application resourceobject
app.idThe application's IDstring
memberAn optional member resource that is only set for member appsobject
member.idThe member's IDstring
organizationAn optional organization resource that is only set for organization appsobject
organization.idThe organization's IDstring

Valid values for the state field are as follows:

StateDescription
INSTALLEDThe application was installed.
UNINSTALLEDThe application was uninstalled.