Accept an invitation
const url = 'https://your-tenant-host/v1/org/accept-invitation';const options = { method: 'POST', headers: { cookie: 'ek.session_token=<ek.session_token>', 'x-edgekit-site-id': 'site_example', 'Content-Type': 'application/json' }, body: '{"invitationId":"01926f3a-8b50-7d77-8188-7a8b9c0d1e2f"}'};
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/accept-invitation \ --header 'Content-Type: application/json' \ --header 'x-edgekit-site-id: site_example' \ --cookie ek.session_token=<ek.session_token> \ --data '{ "invitationId": "01926f3a-8b50-7d77-8188-7a8b9c0d1e2f" }'Takes the seat and makes the organization active. Refused above the membership ceiling, because past it the organization is buying an enterprise or campus licence, not a seat. Also refused for a user whose own identifier is unverified. A retry after success is refused: the invitation is no longer pending.
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
01926f3a-8b50-7d77-8188-7a8b9c0d1e2fResponses
Section titled “Responses”The new membership.
object
Open: accept a member not listed. Known: owner, admin, member.
object
Example
{ "id": "01926f3a-8b4f-7c55-b066-6f7a8b9c0d1e", "organizationId": "01926f3a-8b4e-7b33-a944-5e6f7a8b9c0d", "userId": "01926f3a-8b4c-7d2e-9f10-2a3b4c5d6e7f", "role": "owner", "createdAt": "2026-07-31T09:00:00.000Z", "user": { "id": "01926f3a-8b4c-7d2e-9f10-2a3b4c5d6e7f", "email": "ada@example.com", "name": "Ada Lovelace" }}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." }}