Skip to content

Organization API

Your organization's details. All requests need a secret key; see REST API for keys, errors and limits.

Delete the caller's active organization

DELETE /v1/organization

Delete the caller's active organization (owner): keys stop working, sessions in it end

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

Response 200

NameTypeDescription
organizationrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: organization_not_found
  • 422: validation_failed
  • 429: rate_limited

The caller's active organization

GET /v1/organization

Terminal window
curl -X GET https://api.loomieo.com/v1/organization \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
organizationrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 404: organization_not_found
  • 422: validation_failed
  • 429: rate_limited

Rename the caller's active organization

PATCH /v1/organization

Rename the caller's active organization (owner)

Body

NameTypeDescription
namerequiredstring1 to 120 characters
Terminal window
curl -X PATCH https://api.loomieo.com/v1/organization \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"…"}'

Response 200

NameTypeDescription
organizationrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: organization_not_found
  • 422: validation_failed
  • 429: rate_limited