POST /invites/multiuse

Create a reusable invitation link which can be used to invite new users to the organization.

Changes: In Zulip 8.0 (feature level 209), added support for non-admin users with permission to use this endpoint. Previously, it was restricted to administrators only.

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

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 No

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 include_realm_default_subscriptions parameter.

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 create reusable invitation links 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.

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 null.

  • null: the organization's default welcome_message_custom_text is used.
  • Empty string: no Welcome Bot custom message is sent.
  • Otherwise, the provided string is the custom message.

Changes: New in Zulip 11.0 (feature level 416).

invite_expires_in_minutes Integer No

The number of minutes before the invitation will expire. If null, the invitation will never expire. If unspecified, the server will use a default value (based on the INVITATION_LINK_VALIDITY_MINUTES server setting, which defaults to 14400, i.e. 10 days) for when the invitation will expire.

Changes: New in Zulip 6.0 (feature level 126). Previously, there was an invite_expires_in_days parameter, which specified the duration in days instead of minutes.

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 true even if the current user does not generally have permission to subscribe other users to channels.

Changes: New in Zulip 9.0 (feature level 261). Previous versions of Zulip behaved as though this parameter was always false; clients needed to include the organization's default channels in the stream_ids parameter for a newly created user to be automatically subscribed to them.

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:

  • 100 = Organization owner
  • 200 = Organization administrator
  • 300 = Organization moderator
  • 400 = Member
  • 600 = Guest

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:

  • 100
  • 200
  • 300
  • 400
  • 600

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

  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.