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
| Name | In | Type | Description |
|---|---|---|---|
cursor | query | string | |
limit | query | integer | |
sortBy | query | "createdAt" | |
sortDir | query | "asc" | "desc" | |
includeExpired | query | "true" | "false" | Also list pending invites whose link has expired (default false). |
curl -X GET https://api.loomieo.com/v1/invites \ -H "Authorization: Bearer $LUMIEO_KEY"Response 200
| Name | Type | Description |
|---|---|---|
invitesrequired | list of object | |
paginationrequired | object |
Errors
401:auth_unauthenticated403:forbidden422:validation_failed429: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
| Name | Type | Description |
|---|---|---|
emailrequired | email | |
rolerequired | string | |
locationIds | list of id or null | Scope the member to these stores: they see and run only these stores' screens and content. Store staff always have stores. Null clears it. |
siteIds | list of id or null | Scope the member to these sites and their stores. Not for owners or store staff. Null clears it. |
curl -X POST https://api.loomieo.com/v1/invites \ -H "Authorization: Bearer $LUMIEO_KEY" \ -H "Content-Type: application/json" \ -d '{"email":"…","role":"…"}'Response 200
| Name | Type | Description |
|---|---|---|
inviterequired | object |
Errors
400:bad_request401:auth_unauthenticated403:auth_csrf_rejected,forbidden,out_of_scope,role_escalation404:location_not_found,organization_not_found,role_not_found,site_not_found409:member_exists422:validation_failed429: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
| Name | Type | Description |
|---|---|---|
tokenrequired | string | 1 to 128 characters |
curl -X POST https://api.loomieo.com/v1/invites/accept \ -H "Authorization: Bearer $LUMIEO_KEY" \ -H "Content-Type: application/json" \ -d '{"token":"…"}'Response 200
| Name | Type | Description |
|---|---|---|
membershiprequired | object |
Errors
400:bad_request401:auth_unauthenticated403:auth_csrf_rejected,forbidden,invite_email_mismatch404:invite_not_found409:invite_not_pending,member_exists410:invite_expired422:validation_failed429:rate_limited
Cancel a pending invite
DELETE /v1/invites/{id}
Cancel a pending invite (owner); its link stops working
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | id |
curl -X DELETE https://api.loomieo.com/v1/invites/:id \ -H "Authorization: Bearer $LUMIEO_KEY"Response 200
| Name | Type | Description |
|---|---|---|
inviterequired | object |
Errors
401:auth_unauthenticated403:auth_csrf_rejected,forbidden,out_of_scope404:invite_not_found409:invite_not_pending422:validation_failed429:rate_limited