Invite new people with a role.
By default the link lets one person join and works for 7 days. `max_uses` lets more people join with it (members only) and `expires_in_days` sets 1, 7 or 30 days. Sluby sends no email: pass the link on yourself.
By default the link lets one person join and works for 7 days. max_uses lets more people join with it (members only) and expires_in_days sets 1, 7 or 30 days. Sluby sends no email: pass the link on yourself.
AuthorizationBearer <token>A Sluby API key (sluby_...) sent as Authorization: Bearer <key>. Keys carry scopes: upload, read, manage.
application/json- body
role*string"admin""member"max_uses?|How many people may join with the link; null lets anyone join until it expires or is revoked. Anything but 1 needs role: member.
1 <= value <= 10001expires_in_days?integerHow many days the link works.
71730The invite, with its link shown only here.
application/json- response
id*stringuuidurl*string<PUBLIC_URL>/studio/join/<token>. Only shown here, so pass it on now.
role*string"admin""member"max_uses*|How many people may join with it; null lets anyone join until it expires or is revoked.
1 <= value <= 1000uses*integerHow many people joined with it.
0 <= valueexpires_at*stringdate-timecurl -X POST 'https://sluby.example.com/api/v1/invites' \ -H 'Content-Type: application/json' \ -d '{ "role": "admin"}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "url": "string", "role": "admin", "max_uses": 1, "uses": 0, "expires_at": "2019-08-24T14:15:22Z"}