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.
| Field | Description | Type |
|---|---|---|
state | The comment state | string |
organization | The organization resource | object |
organization.id | The organization's ID (will be null if the comment is not owned by an organization) | string |
comment | The comment resource | object |
comment.id | The comment's ID | string |
timestamp | When the event occurred as an ISO-8601 string | string |
Valid values for the state field are as follows:
| State | Description |
|---|---|
| PENDING_APPROVAL | The comment is pending approval before it can be sent. |
| EXPIRED_APPROVAL | The comment has been expired due to being in review for too long. |
| COMPLETED | The comment has been sent. |
| FAILED | The comment has failed to post to the social network. |
| DELETED | The comment has been deleted. It will not be sent. It can no longer be retrieved. |
| REJECTED | The 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.
| Field | Description | Type |
|---|---|---|
state | The message state | string |
organization | The organization resource | object |
organization.id | The organization's ID (will be null if the message is not owned by an organization) | string |
message | The message resource | object |
message.id | The message's ID | string |
timestamp | When the event occurred as an ISO-8601 string | string |
Valid values for the state field are as follows:
| State | Description |
|---|---|
| SCHEDULED | The message is currently scheduled and will be sent out at the scheduled send time. |
| PENDING_APPROVAL | The message is pending approval before it can be scheduled or sent. |
| APPROVED | The message has been approved and will be scheduled or sent. |
| SUBMITTED | The message has a video attached that is in the process of being uploaded to the social network. |
| SENT | The message has been posted to the specified social network. |
| SEND_FAILED_PERMANENTLY | The message has failed to post to the social network. |
| DELETED | The message has been deleted. It will not be scheduled or sent. It can no longer be retrieved. |
| REJECTED | The 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.
| Field | Description | Type |
|---|---|---|
state | The application state | string |
app | The application resource | object |
app.id | The application's ID | string |
member | An optional member resource that is only set for member apps | object |
member.id | The member's ID | string |
organization | An optional organization resource that is only set for organization apps | object |
organization.id | The organization's ID | string |
Valid values for the state field are as follows:
| State | Description |
|---|---|
| INSTALLED | The application was installed. |
| UNINSTALLED | The application was uninstalled. |