Create an invite
POST
/api/invitesMake a one-time invite link carrying these roles. Shown once; the server keeps only a hash. Good for 72 hours. Only roles below your highest role.
Needs the ManageUsers permission.
AuthorizationBearer <token>
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/api/invites" \ -H "Content-Type: application/json" \ -d '{ "roleIds": [ "10960216-a894-4481-b8f2-270c1c8fab34" ] }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "path": "string", "url": null, "expiresAt": "2019-08-24T14:15:22Z"}