Skip to content

Invites API

Invite people to your organization. All requests need a secret key; see REST API for keys, errors and limits.

List the active organization's pending invites

GET /v1/invites

List the active organization's pending invites (owner); expired ones only with includeExpired=true

Parameters

NameInTypeDescription
cursorquerystring
limitqueryinteger
sortByquery"createdAt"
sortDirquery"asc" | "desc"
includeExpiredquery"true" | "false"Also list pending invites whose link has expired (default false).
Terminal window
curl -X GET https://api.loomieo.com/v1/invites \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
invitesrequiredlist of object
paginationrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 422: validation_failed
  • 429: rate_limited

Invite an email to the active organization with a role

POST /v1/invites

Invite an email to the active organization with a role (owner); the link is returned only here and in the email, and expires in 7 days

Body

NameTypeDescription
emailrequiredemail
rolerequiredstring
locationIdslist of id or nullScope the member to these stores: they see and run only these stores' screens and content. Store staff always have stores. Null clears it.
siteIdslist of id or nullScope the member to these sites and their stores. Not for owners or store staff. Null clears it.
Terminal window
curl -X POST https://api.loomieo.com/v1/invites \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"email":"…","role":"…"}'

Response 200

NameTypeDescription
inviterequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope, role_escalation
  • 404: location_not_found, organization_not_found, role_not_found, site_not_found
  • 409: member_exists
  • 422: validation_failed
  • 429: rate_limited

Accept an invite sent to the signed-in user's email, with the token from its link

POST /v1/invites/accept

Accept an invite sent to the signed-in user's email, with the token from its link; switch to the organization with auth::switch

Body

NameTypeDescription
tokenrequiredstring1 to 128 characters
Terminal window
curl -X POST https://api.loomieo.com/v1/invites/accept \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"token":"…"}'

Response 200

NameTypeDescription
membershiprequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, invite_email_mismatch
  • 404: invite_not_found
  • 409: invite_not_pending, member_exists
  • 410: invite_expired
  • 422: validation_failed
  • 429: rate_limited

Cancel a pending invite

DELETE /v1/invites/{id}

Cancel a pending invite (owner); its link stops working

Parameters

NameInTypeDescription
idrequiredpathid
Terminal window
curl -X DELETE https://api.loomieo.com/v1/invites/:id \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
inviterequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: invite_not_found
  • 409: invite_not_pending
  • 422: validation_failed
  • 429: rate_limited