POST /scheduled_messages

Create a new scheduled message.

Changes: In Zulip 7.0 (feature level 184), moved support for editing a scheduled message to a separate API endpoint, which removed the scheduled_message_id parameter from this endpoint.

New in Zulip 7.0 (feature level 179).

Servers

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/x-www-form-urlencoded"

Request body fields

Name Type Required Description
to Yes

The scheduled message's tentative target audience.

For channel messages, the integer ID of the channel. For direct messages, a list containing integer user IDs.

topic String No

The topic of the message. Only required for channel messages ("type": "stream" or "type": "channel"), ignored otherwise.

Clients should use the max_topic_length returned by the POST /register endpoint to determine the maximum topic length.

Note: When "(no topic)" or the value of realm_empty_topic_display_name found in the POST /register response is used for this parameter, it is interpreted as an empty string.

When topics are required, this parameter can't be "(no topic)", an empty string, or the value of realm_empty_topic_display_name.

Changes: Before Zulip 10.0 (feature level 370), "(no topic)" was not interpreted as an empty string.

Before Zulip 10.0 (feature level 334), empty string was not a valid topic name for channel messages.

read_by_sender Boolean No

Whether the message should be initially marked read by its sender. If unspecified, the server uses a heuristic based on the client name and the recipient.

Changes: New in Zulip 8.0 (feature level 236).

type String Yes

The type of scheduled message to be sent. "direct" for a direct message and "stream" or "channel" for a channel message.

Note that, while "private" is supported for scheduling direct messages, clients are encouraged to use to the modern convention of "direct" to indicate this message type, because support for "private" may eventually be removed.

Changes: In Zulip 9.0 (feature level 248), "channel" was added as an additional value for this parameter to indicate the type of a channel message.

Valid values:

  • "channel"
  • "private"
  • "stream"
  • "direct"
content String Yes

The content of the message.

Clients should use the max_message_length returned by the POST /register endpoint to determine the maximum message size.

scheduled_delivery_timestamp Integer Yes

The UNIX timestamp for when the message will be sent, in UTC seconds.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.