Invite people into a project with a link
zitadel invitation create invites someone into your project. It asks who the invitation is for and which role it grants, then prints a link to share. The link expires in 72 hours. Whoever opens it signed in sees the project, the role, the expiry and who invited them, and can accept or decline. Accepting grants the role.
zitadel invitation create --name "John Doe" --relation editor
zitadel invitation listleaves accepted invitations out unless you ask for them with--status, which you can repeat.zitadel invitation getshows one invitation.zitadel invitation cancelnames who the invitation is for and its role before it asks. It removes a pending, expired or declined invitation, and refuses an accepted one. Without an id it offers the invitations you can cancel.--replacesmakes a new link for an earlier invitation.- In the API,
POST /invitations/lookup,POST /invitations/acceptandPOST /invitations/rejectredeem a link. The inviter cannot accept or decline their own invitation, and an unknown or finished link always answers the same404. GET /projects/{project_id}/invitationstakesstatusmore than once, andexpand=inviteradds who created each invitation.DELETEnow also removes an expired or declined invitation.- A declined invitation keeps its
metadata, so administrators still see who a declined link was for.
Breaking: invitations record who accepted or declined them and when as responded_by and responded_at, which replace accepted_by and accepted_at. status says whether the invitation was accepted or declined. Read the new fields in code that reads invitations from the API.