Invite people
/invitesInvites up to 75 people by email, as the app does, including the invitation email. Accepting an invite is the only way to become a member. Each person is invited or listed in failed with a reason. Anyone invited whose email couldn’t be sent is also listed in not_emailed. The whole request is refused when the organisation lacks the seats or a group doesn’t exist.
Authorization
apiKey invites:writeAn organisation API key, sent as Authorization: Bearer enl_…. Create keys in Settings, API Keys.
In: header
Scope: invites:write
Header Parameters
A unique value per change, up to 255 characters. Retrying with the same key returns the first response for 24 hours.
length <= 255Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/invites" \ -H "Idempotency-Key: string" \ -H "Content-Type: application/json" \ -d '{ "invites": [ { "email": "user@example.com", "role": "admin" } ] }'{ "invited": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "email": "string", "role": "owner", "status": "pending", "invited_by": "0fdabe0c-eb7c-440a-96d2-2c65906c3777", "group_ids": [ "5aef9104-43e7-46ed-987c-2d3050996d77" ], "created_at": "2019-08-24T14:15:22Z" } ], "failed": [ { "email": "string", "code": "trial_not_allowed", "message": "string" } ], "not_emailed": [ { "email": "string", "message": "string" } ]}