Skip to content

Members API

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

NameInTypeDescription
cursorquerystring
limitqueryinteger
sortByquery"createdAt"
sortDirquery"asc" | "desc"
Terminal window
curl -X GET https://api.loomieo.com/v1/members \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

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

Remove a member

DELETE /v1/members/{id}

Remove a member (owner); the last owner can't be removed

Parameters

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

Response 200

NameTypeDescription
memberrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope, role_escalation
  • 404: member_not_found
  • 409: member_last_owner
  • 422: validation_failed
  • 429: 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

NameInTypeDescription
idrequiredpathid

Body

NameTypeDescription
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 PATCH https://api.loomieo.com/v1/members/:id \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"role":"…"}'

Response 200

NameTypeDescription
memberrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope, role_escalation
  • 404: location_not_found, member_not_found, role_not_found, site_not_found
  • 409: member_last_owner
  • 422: validation_failed
  • 429: rate_limited