Create a user invitation
/api/invitesCreate a single-use invitation with the supplied expiration date and return its ID and registration token. Requires admin permission and credentials authentication to be enabled.
Authorization
apikey API key which can be obtained in the Homarr administration dashboard
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/invites" \ -H "Content-Type: application/json" \ -d '{ "expirationDate": "2019-08-24T14:15:22Z" }'{ "id": "string", "token": "string"}List user invitations
Return invitations with their expiration dates and creators, ordered by expiration. Invite tokens are excluded. Requires admin permission and credentials authentication to be enabled.
Delete a user invitation
Revoke an invitation by ID. Requires admin permission and credentials authentication to be enabled. Returns not found if the invitation does not exist.