Invites
Create an invite
POST
https://discourse.example.com/invites.json
Body
application/json
emailstringrequired for email invites only
Example
not-a-user-yet@example.comskip_ emailbooleanfalsecustom_ messagestringoptional, for email invites
max_ redemptions_ allowedinteger1optional, for link invites
Example
5topic_ idintegergroup_ idsstringOptional, either this or group_names. Comma separated
list for multiple ids.
Example
42,43group_ namesstringOptional, either this or group_ids. Comma separated
list for multiple names.
Example
foo,barexpires_ atstringoptional, if not supplied, the invite_expiry_days site setting is used
Parameters
Api-KeystringrequiredheaderApi-UsernamestringrequiredheaderResponse
200OKobject
success response