invites.createInvite
Description
Creates a group invite. Can be shared with other identities to let them join this group.
Code Examples
Request
POST
https://api.rivet.gg/group/groups/{group_id}/invites# Write the request body to body.json before running
curl -X POST -d '@body.json' 'https://api.rivet.gg/group/groups/{group_id}/invites'
Request Parameters
group_id
Path parameter, required
Request Body
ttl
number
How long until the group invite expires (in milliseconds).
use_count
number
How many times the group invite can be used.
Response Body
code
string
(required)
The code that will be passed to rivet.api.group#ConsumeInvite
to join a group.