Deskhero Developer Hub
Back to deskhero.com
User invites

Create

Invites up to 25 email addresses to the workspace in one call, all with the same role (only ADMIN or USER) and the same groups, storing one invite per address and emailing each recipient a link that expires after a configured number of hours. Addresses that are already Users of the workspace or already hold an unexpired invite are rejected, an expired invite that is still marked active is revoked and replaced, and nobody is added to the workspace until they accept.

POST /api/{tenant:minlength(2)}/v{version:apiVersion}/user_invites/create
Authorisation
Minimum role: ADMIN

Request arguments

Name Type Source
inputDTO_invite_usersBody
Request body example

Response

Status
200 (OK)
Type
DTO_user_invite[]
Wrapper
DTO_response_wrap
Other statuses
400 (BadRequest), 403 (Forbidden)
Response body example
DTO_invite_users
NameTypeReadOnlyDescription
emailsString[]Emails
group_idsInt32[]Group ids
tenant_roleENUM tenant_user_roleTenant role
DTO_user_invite
NameTypeReadOnlyDescription
groupsDTO_reference[]Groups
idInt32ReadOnlyId
emailStringEmail
tenant_roleENUM tenant_user_roleTenant role
expires_dateDateTimeReadOnlyExpires date
expires_relativeStringReadOnlyExpires relative
DTO_reference
NameTypeReadOnlyDescription
idInt32The id of the reference
labelObjectReadOnlyName/Label from referenced object.
ENUM tenant_user_role
ValueNameDescription
0UNKNOWNUNKNOWN
1OWNEROwner
2ADMINAdmin
3USERUser

Generated Aug 4, 2026 18:37