POST /messages
Send a channel message or a direct message.
Servers
- https://{subdomain}.zulipchat.com/api/v1
- {server}/api/v1
- https://chat.zulip.org/api/v1
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 channel or users receiving the message. For channel messages, this is either the name or integer ID of the channel. For direct messages, this is either a list containing integer user IDs or a list containing string Zulip API email addresses. The ID or email address of the user sending the message can be included in the list, but will be ignored by the server, unless the user sending the message is the only recipient of the message. Changes: In Zulip 2.0.0, support for using user/channel IDs was added. |
|
topic |
String | No |
The topic of the message. Only required for channel messages
( Clients should use the Note: When When topics are required, this parameter can't
be Changes: Before Zulip 10.0 (feature level 370), Before Zulip 10.0 (feature level 334), empty string was not a valid topic name for channel messages. New in Zulip 2.0.0. Previous Zulip releases encoded
this as |
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. Changes: New in Zulip 8.0 (feature level 236). |
type |
String | Yes |
The type of message to be sent.
Changes: In Zulip 9.0 (feature level 248), In Zulip 7.0 (feature level 174), Valid values:
|
content |
String | Yes |
The content of the message. Clients should use the |
queue_id |
String | No |
For clients supporting local echo, the event queue ID for the client. If passed, If the message is successfully sent, the server will include
|
local_id |
String | No |
For clients supporting local echo, a unique string-format identifier chosen freely by the client. If passed, If the message is successfully sent, the server will pass it back to
the client without inspecting it as |
How to start integrating
- Add HTTP Task to your workflow definition.
- 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.
- Click Test request to test run your request to the API and see the API's response.