Prescreen integration
Overview
This document describes how Hootsuite prescreening works and the steps involved with integrating your application with our prescreening workflows. Please note the Prescreen integration is not publicly configurable, and requires an Enterprise Account.
End User Workflow
- A social media practitioner schedules a message for a social profile that has been shared with their organization or team. When a prescreen app is installed to the organization, messages created for all social profiles shared with an organization will be sent for prescreening. This will also include comments for the configured social profiles.

- The newly created message goes into a pending approval queue in Hootsuite. At this point a publishing webhook event will be sent to the prescreen application installed to the organization (See API workflow below).

- If the message is approved by the prescreen app, the message moves back into the scheduled queue (if it's been scheduled), or will be posted momentarily (within 1-5 minutes). If the comment is approved, it will be posted, as comments cannot currently be scheduled.

- If the message or comment is rejected it goes into the rejected queue and will not be sent. The prescreen app can set a reason message that will be displayed to the user.

- An audit trial will be created and include requests to third party applications to approve the message.

Integration Architecture
Prescreen Apps
Prescreen apps are a type of app that can be installed to Hootsuite organizations. A Hootsuite organization represents the customer who has purchased Hootsuite. When a prescreen app is installed, messages and comments created for all social profiles shared with an organization will be put into a pending approval state. At the same time a HTTP webhook (described further below) is broadcast to all apps installed to the organization. A prescreening app can then use the Hootsuite REST API to approve or reject the message/comment.
In order to integrate with our prescreening workflow, you will need to host an application connector that can receive HTTP POST webhook events and call our approve/reject REST APIs after processing has completed in your application. The high level architecture is documented below:

Publishing Webhooks
Messages created with Hootsuite go through a number of phases before they are ready to be sent to social media platforms. When an end user takes an action that changes the message an HTTP Webhook will be broadcast to all apps installed to the organization. Actions can be invoked by end users via the Hootsuite Dashboard, Hootsuite Mobile Apps or via the Hootsuite REST API. The message state machine and actions that invoke change are documented below:

Message API Workflow
- Hootsuite sends an HTTP Webhook event when a message requires approval. This is triggered at Step 2 of the User Workflow above and the URL is configured via MyApps
https://yourserver.com/webhooks/messageHandler
[
{
"seq_no": "123",
"type":"com.hootsuite.messages.event.v1",
"data":{
"state":"PENDING_APPROVAL",
"organization": {
"id":"776781"
},
"message": {
"id":"4094517701"
},
"timestamp":"2016-07-19T21:51:32.175Z"
}
}
]
This is a HTTP webhook sent by Hootsuite to your server, it includes:
- Organization an identifier for the Hootsuite customer who has enabled prescreening.
- Message an identifier for the Hootsuite message. This is used in the next step to gather information
about the message. - Hootsuite expects a 200 OK from the call to ensure the message from successfully delivered.
- Your application should retrieve a Hootsuite access token using the organization_app grant type.
- Using the access token, your application can request additional metadata about the message to use in the approval process:
https://platform.hootsuite.com/v1/messages/4094517701
Authorization: Bearer e9a90a81-xf2d-dgh3-cfsd-23jhvn76
---
{
"data": [
{
"id": "4094517701",
"state": "PENDING_APPROVAL",
"text": "After the show it's the after party. After the party it's the hotel lobby. http://ow.ly/qGNC302pqEt",
"scheduledSendTime": "2016-07-19T22:00:00Z",
"socialProfile": {
"id": "112023411"
}
"media": {
"id": "aHR0cHM6Ly9ob290c3VpdGUtdmlkZW8uczM"
},
"webhookUrls": null,
"tags": null,
"targeting": null,
"privacy": null,
"location": {
"latitude": 49.282729,
"longitude": -123.120738
},
"emailNotification": null,
"postUrl": null,
"postId": null,
"createdByMember": {
"id": "12255244"
},
"lastUpdatedByMember": {
"id": "12255244"
},
"sequenceNumber": 1
}
}
]
}
Data includes:
- text to examine message text & links attached
- media to examine attached images and videos
- scheduledSendTime scheduled Date/Time the message is due to be published.
- createdByMember Hootsuite user who created the message
- targeting / privacy Targeting and Privacy options used.
- sequenceNumber Message sequence number used when approving / rejecting message to ensure your application has latest version of message. sequenceNumber will only be set when the message is in a state of PENDING_APPROVAL.
- Endpoints documented in detail here
- Approve / Reject Message
https://platform.hootsuite.com/v1/messages/4094517701/approve
{
"sequenceNumber" : 1
}
---
200 OK
https://platform.hootsuite.com/v1/messages/4094517701/reject
{
"reason": "The message contains profanity",
"sequenceNumber" : 1
}
---
200 OK
Data includes:
- reason text to be rendered in Hootsuite
- sequenceNumber to sync version of message being approved. Ensures your application has latest version of message.
- Endpoints documented in detail here