Custom Social Profile API
Custom Social Profile lets enterprises connect a proprietary messaging channel to Hootsuite Inbox. Agents receive customer messages and reply from Inbox while your system remains the channel runtime.
Integration model
The API documents two provider APIs — the Integrator API (implemented by you) and the Hootsuite API (implemented by Hootsuite). Both are secured with HMAC (X-Hootsuite-Signature) on every request. One shared secret is provisioned per Custom Social Profile integration. The sender signs the raw request body; the receiver verifies the signature before processing.
Ownership is contact-scoped — there is no conversation object in the public contract. The integrator-native contact.id is the canonical identifier for routing, ownership, and messaging.
Configure your integration
- In Inbox admin settings, create the Custom Social Profile channel and note the shared secret and Hootsuite webhook delivery URL shown on the social profile settings page (
https://webhooks.hootsuite.com/custom/webhook/{socialProfileId}). - Provide Hootsuite with your integrator base URL. Hootsuite appends:
/inbox/v1/custom-social-profile/messages— Hootsuite calls this path to send an outbound message./inbox/v1/custom-social-profile/events— Hootsuite → integrator webhook events (OWNERSHIP_TAKEN,OWNERSHIP_RELEASED).
- Store credentials securely. Rotate the shared secret through your Hootsuite contact if it is compromised.
Contact identity
contact.idis your integrator-native identifier.primaryIdentifierandsecondaryIdentifierare optional onINBOUND_MESSAGE_RECEIVEDandOUTBOUND_MESSAGE_SENT. A message stream may start with either event; both use the samecontactobject.- When identifiers are not provided, Hootsuite may display a generated human-readable alias until non-empty values are sent.
- Non-empty values on later message events update the contact (last apply wins), so identifiers can change mid-thread. Omission, empty, and null do not clear existing values.
Contact attributes
On INBOUND_MESSAGE_RECEIVED and OUTBOUND_MESSAGE_SENT only, you may include optional contact.attributes: a map of org contact-attribute aliases to string values.
- Keys must match org attribute definition aliases (case-sensitive exact match).
- A known alias creates or updates the value; unknown aliases are ignored.
- Updates are a partial merge onto the contact.
- An empty string (
"") clears a known alias. - Do not send
attributeson ownership events or on Hootsuite → integrator events.
Topics
On INBOUND_MESSAGE_RECEIVED and OUTBOUND_MESSAGE_SENT only, you may include optional topics: an array of org topic names (strings).
- Names must match org-defined topics (case-sensitive exact match).
- Known topics are added to the conversation associated with the contact; unknown names are ignored.
- Updates are additive — each event adds topics; omitting
topicsleaves existing topics unchanged; an empty array ([]) is a no-op. - Re-applying a topic already on the conversation is a no-op.
- Duplicate names within the same request are deduplicated. Leading and trailing whitespace is trimmed; empty or whitespace-only entries are rejected with
400. - Topics apply even when the integrator holds external ownership.
- Do not send
topicson ownership events.
Outbound message flow
- Hootsuite calls your send outbound message REST command at
POST /inbox/v1/custom-social-profile/messages. - Your service returns
message.idimmediately in the2xxresponse (integrator-generated). - Hootsuite adds the outbound message to the agent conversation using that ID.
An OUTBOUND_MESSAGE_SENT webhook with the same message.id is optional after this path — not required, and not wrong if you send it. The main use of OUTBOUND_MESSAGE_SENT is outbound messages sent on your channel outside Inbox, so Hootsuite can record them.
Keeping ownership
When your system holds contact-scoped ownership, the conversation is hidden from Inbox human agents and virtual agents. External ownership lasts one day by default from the last successful OWNERSHIP_TAKEN.
If you need to keep owning longer, send OWNERSHIP_TAKEN again before that window ends — each take renews the duration. You can also take ownership mid-thread after messages have already been exchanged.
If external ownership is removed (including when that window ends without renewal), the conversation becomes visible to human agents again and Hootsuite treats the contact as not externally owned (Hootsuite or an agent can own it).
Ownership flows
The safe pattern is to take ownership before your automation messages the contact, so Inbox agents and VAs do not see the thread while you own it. See Integrator › Webhooks and Hootsuite › Webhooks for payload details.
Flow 1 — Own, message, hand back to a human
Take ownership, exchange messages while hidden from Inbox agents/VAs, then release without finishedBy so a human can continue in Hootsuite.
- Send
OWNERSHIP_TAKENforcontact.id(before messaging, or mid-thread). - While you own the contact, send message events as needed (
INBOUND_MESSAGE_RECEIVED,OUTBOUND_MESSAGE_SENT, and/or handle HootsuitePOST …/messages). The conversation stays hidden from Inbox agents and VAs. - Send
OWNERSHIP_RELEASEDwithoutfinishedByto hand ownership back. The conversation becomes visible for a human agent in Hootsuite.
Flow 2 — Own, then finish and resolve
Same ownership start as Flow 1, but release with finishedBy so Hootsuite resolves the conversation into the resolved queue.
- Send
OWNERSHIP_TAKEN(and message while owned, as in Flow 1). - When the interaction is complete, send
OWNERSHIP_RELEASEDwithfinishedBy.type:BOT— your automation finished the contact (typical integrator-bot path).HUMAN— a human in your system (HITL) finished the contact; you are attributing the resolve reason as human.
- Hootsuite resolves the conversation; it appears in the resolved queue.
Flow 3 — Inbox ownership sync (Hootsuite → integrator)
When Inbox takes or releases ownership of a contact, Hootsuite POSTs the matching event to your integrator. Treat these as authoritative state sync for contact-scoped ownership on the Hootsuite side.
- Inbox takes ownership of the contact — Hootsuite POSTs
OWNERSHIP_TAKENwithcontact.id. Clear any local assumption that your integrator still holds external ownership for that contact. - Inbox releases ownership of the contact — Hootsuite POSTs
OWNERSHIP_RELEASEDwithcontact.id. Update your local ownership state accordingly.
OWNERSHIP_TAKEN and OWNERSHIP_RELEASED use the same type strings in both directions. Discriminate by who POSTs and which URL receives the request.
Webhook delivery
Integrator → Hootsuite
POST integrator-fired events to the Hootsuite delivery URL shown on your Custom Social Profile settings page:
https://webhooks.hootsuite.com/custom/webhook/{socialProfileId}
Replace {socialProfileId} with the profile ID from channel settings. The profile ID appears only in the URL — it is not included in event payloads.
Hootsuite → Integrator
Hootsuite delivers events to your registered integrator base URL with the path suffix /inbox/v1/custom-social-profile/events:
{integratorBaseUrl}/inbox/v1/custom-social-profile/events
Route by the type field in the request body. Supported types are OWNERSHIP_TAKEN and OWNERSHIP_RELEASED (shared webhook envelope plus data.contact.id only).
Return 200 for unknown future type values you do not yet handle. Respond with 400 for malformed payloads, 401 when signature verification fails, and 5xx for temporary processing failures — Hootsuite retries 5xx with exponential backoff.
HMAC authentication
Every Custom Social Profile request — integrator-fired webhooks, Hootsuite REST commands, and Hootsuite-fired webhooks — includes an X-Hootsuite-Signature header.
The signature is an HMAC-SHA256 digest of the raw request body using the integration shared secret. Both the secret and the signature are hexadecimal strings. Convert the secret from hex to binary before computing the HMAC.
Example request (integrator-fired event):
curl -X POST https://webhooks.hootsuite.com/custom/webhook/{socialProfileId} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-Hootsuite-Signature: e6f93239a06e46ae9654fc9ad2fb4e1cc4eb213830a0d94e711570c047e43c57' \
-d '{
"type": "INBOUND_MESSAGE_RECEIVED",
"version": 1,
"timestamp": "2026-07-13T09:43:26.635984618Z",
"idempotencyKey": "6ebc6a78-d9e9-48be-b172-51eda40b7af8",
"data": {
"contact": { "id": "cust-9f3a2b1c", "primaryIdentifier": "Jane Customer" },
"message": { "id": "msg-1", "text": "Hello", "timestamp": "2026-07-13T09:43:26.635984618Z" }
}
}'
Node.js verification example:
const crypto = require("crypto");
const secret = "..."; // integration shared secret — do not share
const expectedSignature = request.headers["x-hootsuite-signature"];
const actualSignature = crypto
.createHmac("sha256", Buffer.from(secret, "hex"))
.update(request.rawBody, "utf-8")
.digest("hex");
if (actualSignature !== expectedSignature) {
throw new Error("X-Hootsuite-Signature verification failed");
}
Calculate the signature from the body before JSON deserialization. Whitespace in the body is significant.
To mitigate replay attacks, verify that timestamp in webhook envelopes is no older than five minutes.
Authentication
- API Key: SharedSecret
Security Scheme Type: | apiKey |
|---|---|
Header parameter name: | X-Hootsuite-Signature |
Contact