Invite someone to an organization
const url = 'https://your-tenant-host/v1/org/invite-member';const options = { method: 'POST', headers: { cookie: 'ek.session_token=<ek.session_token>', 'x-edgekit-site-id': 'site_example', 'Content-Type': 'application/json' }, body: '{"email":"ada@example.com","role":"admin","organizationId":"01926f3a-8b4e-7b33-a944-5e6f7a8b9c0d","resend":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://your-tenant-host/v1/org/invite-member \ --header 'Content-Type: application/json' \ --header 'x-edgekit-site-id: site_example' \ --cookie ek.session_token=<ek.session_token> \ --data '{ "email": "ada@example.com", "role": "admin", "organizationId": "01926f3a-8b4e-7b33-a944-5e6f7a8b9c0d", "resend": true }'Sends a seat offer to an address. Re-inviting an address that already holds a pending seat supersedes it rather than failing, so a retry is safe but mints a new invitation id; resend decides whether the mail goes out again. The invitee accepts with their own verified session, so an offer addressed to one person cannot be claimed by another.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”The site this request is for, within this tenant. Every official EdgeKit SDK sets it from the client you configured; set it yourself only when calling this API directly.
Example
site_exampleThe site this request is for, within this tenant. Every official EdgeKit SDK sets it from the client you configured; set it yourself only when calling this API directly.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Example
ada@example.comExample
memberExample
01926f3a-8b4e-7b33-a944-5e6f7a8b9c0dExample
trueResponses
Section titled “Responses”The pending seat.
object
Open: accept a member not listed. Known: owner, admin, member.
Open: accept a member not listed. Known: pending, accepted, rejected, canceled.
Example
{ "id": "01926f3a-8b50-7d77-8188-7a8b9c0d1e2f", "organizationId": "01926f3a-8b4e-7b33-a944-5e6f7a8b9c0d", "email": "ada@example.com", "role": "owner", "status": "pending", "expiresAt": "2026-08-02T09:00:00.000Z"}Invalid request.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Missing or invalid credential.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Not allowed.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Resource not found.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Request validation failed.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Unexpected error.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}