curl -sS -X POST 'https://matrix.example.com/_matrix/client/v3/rooms/!abc123:example.com/invite' -H "Authorization: Bearer $ACCESS_TOKEN" -d '{"user_id":"@bob:example.com"}'

Category: Matrix & Synapse

curl -sS -X POST 'https://matrix.example.com/_matrix/client/v3/rooms/!abc123:example.com/invite' -H "Authorization: Bearer $ACCESS_TOKEN" -d '{"user_id":"@bob:example.com"}'

Invite a user to a room

Sends an invite to another user, who must accept it before they appear as a member. The client invite endpoint rate-limits aggressively (roughly two invites per 30 seconds), so for bulk onboarding use the admin join API instead, which adds users directly with no acceptance step. The invitee gets a notification in their client.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.