People in your organization, their roles and scopes. All requests need a secret key; see REST API for keys, errors and limits.
List the active organization's members
GET /v1/members
Parameters
| Name | In | Type | Description |
|---|
cursor | query | string | |
limit | query | integer | |
sortBy | query | "createdAt" | |
sortDir | query | "asc" | "desc" | |
curl -X GET https://api.loomieo.com/v1/members \
-H "Authorization: Bearer $LUMIEO_KEY"
Response 200
| Name | Type | Description |
|---|
membersrequired | list of object | |
paginationrequired | object | |
Errors
401: auth_unauthenticated403: forbidden422: validation_failed429: rate_limited
Remove a member
DELETE /v1/members/{id}
Remove a member (owner); the last owner can't be removed
Parameters
| Name | In | Type | Description |
|---|
idrequired | path | id | |
curl -X DELETE https://api.loomieo.com/v1/members/:id \
-H "Authorization: Bearer $LUMIEO_KEY"
Response 200
| Name | Type | Description |
|---|
memberrequired | object | |
Errors
401: auth_unauthenticated403: auth_csrf_rejected, forbidden, out_of_scope, role_escalation404: member_not_found409: member_last_owner422: validation_failed429: rate_limited
Change a member's role to one the caller covers, and their scope
PATCH /v1/members/{id}
Change a member's role to one the caller covers, and their scope (sites or stores) to one inside the caller's; the last owner can't be demoted
Parameters
| Name | In | Type | Description |
|---|
idrequired | path | id | |
Body
| Name | Type | Description |
|---|
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 PATCH https://api.loomieo.com/v1/members/:id \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
Response 200
| Name | Type | Description |
|---|
memberrequired | object | |
Errors
400: bad_request401: auth_unauthenticated403: auth_csrf_rejected, forbidden, out_of_scope, role_escalation404: location_not_found, member_not_found, role_not_found, site_not_found409: member_last_owner422: validation_failed429: rate_limited