POST /invites
Send invitations to specified email addresses.
Changes: In Zulip 6.0 (feature level 126), the invite_expires_in_days
parameter was removed and replaced by invite_expires_in_minutes.
In Zulip 5.0 (feature level 117), added support for passing null as
the invite_expires_in_days parameter to request an invitation that never
expires.
In Zulip 5.0 (feature level 96), the invite_expires_in_days parameter was
added which specified the number of days before the invitation would expire.
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 |
|---|---|---|---|
stream_ids[] |
Array | Yes |
A list containing the IDs of the channels that the
newly created user will be automatically subscribed to if the invitation
is accepted, in addition to any default channels that the new user may
be subscribed to based on the Requested channels must either be default channels for the organization, or ones the acting user has permission to add subscribers to. This list must be empty if the current user has the unlikely configuration of being able to send invitations while lacking permission to subscribe other users to channels. Changes: Prior to Zulip 10.0 (feature level 342), default channels that the acting user did not directly have permission to add subscribers to would be rejected. Before Zulip 7.0 (feature level 180), specifying |
welcome_message_custom_text |
String | No |
Custom message text, in Zulip Markdown format, to be sent by the Welcome Bot to new users that join the organization via this invitation. Maximum length is 8000 Unicode code points. Only organization administrators can use this feature; for other
users, the value is always
Changes: New in Zulip 11.0 (feature level 416). |
invitee_emails |
String | Yes |
The string containing the email addresses, separated by commas or newlines, that will be sent an invitation. |
invite_expires_in_minutes |
Integer | No |
The number of minutes before the invitation will expire. If Changes: New in Zulip 6.0 (feature level 126). Previously, there was an
|
notify_referrer_on_join |
Boolean | No |
A boolean indicating whether the referrer would like to receive a direct message from notification bot when a user account is created using this invitation. Changes: New in Zulip 9.0 (feature level 267). Previously, referrers always received such direct messages. Default value: true |
include_realm_default_subscriptions |
Boolean | No |
Boolean indicating whether the newly created user should be subscribed to the default channels for the organization. Note that this parameter can be Changes: New in Zulip 9.0 (feature level 261). Previous versions
of Zulip behaved as though this parameter was always Default value: false |
invite_as |
Integer | No |
The organization-level role of the user that is created when the invitation is accepted. Possible values are:
Users can only create invitation links for roles with equal or stricter restrictions as their own. For example, a moderator cannot invite someone to be an owner or administrator, but they can invite them to be a moderator or member. Changes: In Zulip 4.0 (feature level 61), added support for inviting users as moderators. Valid values:
Default value: 400 |
group_ids[] |
Array | No |
A list containing the IDs of the user groups that the newly created user will be automatically added to if the invitation is accepted. If the list is empty, then the new user will not be added to any user groups. The acting user must have permission to add users to the groups listed in this request. Changes: New in Zulip 10.0 (feature level 322). |
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.