Skip to main content
POST
Toggle Hide Message
Use this endpoint to hide a message, or to unhide one that is already hidden. Each call flips the message’s hidden flag: a visible message becomes hidden, and a hidden message becomes visible again. There are no separate hide and unhide endpoints.
This call is not idempotent. Sending the same request twice returns the message to its original state. Read the message’s hidden value from Get history or List all before you call it, then check hidden in the response to confirm the new state.
While a message is hidden, the API returns it with an empty text and media and no custom content. This applies to this response, Get history, List all, and message webhook payloads. Unhide the message to get its content back.
The hide messages feature must be enabled for your team. If it isn’t, the endpoint returns 401 with the plain-text body not authorized.

Authorizations

Authorization
string
header
required

Recommended authentication for new integrations. Generate a short-lived JWT from your API Secret ID and API Secret Key, then pass the signed JWT as a bearer token in the Authorization header.

API Secret credentials are available in the Heymarket app under Settings > Integrations > API. The Secret Key is shown only when it is generated, so copy and store it securely before closing the dialog.

Use the following JWT values:

Replace CURRENT_UNIX_TIMESTAMP with the current Unix timestamp in seconds when generating the token.

Sign the JWT with HMAC-SHA256 using this signing secret:

Send the signed JWT as a bearer token:

Tokens expire 5 minutes after the iat timestamp. Generate a new JWT per request, or cache it briefly for less than 5 minutes. Generate JWTs only from trusted server-side code; do not expose the API Secret Key in browser, mobile, or other client-side code.

Path Parameters

id
integer
required

Message ID

Response

OK

author
string
broadcast_id
integer
conversation
object
custom
object
date
string
flagged
boolean
id
integer
local_id
string
media
string
phone
string
raw_error
string

Failure reason for an outbound message. Set when status is failed, undelivered, dropped, or bounce.

status
string
super
integer
support
boolean
target
string
target_errors
object

Failure detail for an outbound message. Keyed by target for carrier and group failures; some channels key it by provider metadata (provider, message, status_code) instead.

text
string
type
string
updated
string
user
integer