Skip to content

API keys API

Create, list and revoke secret keys. All requests need a secret key; see REST API for keys, errors and limits.

List the caller's organization's API keys

GET /v1/api-keys

List the caller's organization's API keys (never returns the secret)

Parameters

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

Response 200

NameTypeDescription
apikeysrequiredlist of object
paginationrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden, out_of_scope
  • 422: validation_failed
  • 429: rate_limited

Mint an org-owned API key — its permissions must be a subset of the caller's own

POST /v1/api-keys

Body

NameTypeDescription
permissionsrequiredlist of "auth::signup" | "auth::login" | "auth::logout" | "apikey::create" | "apikey::list" | "apikey::revoke" | "analytics::read" | "org::read" | "org::update" | "org::delete" | "member::list" | "member::update" | "member::remove" | "invite::create" | "invite::list" | "invite::cancel" | "product::list" | "product::write" | "site::list" | "site::create" | "site::update" | "site::delete" | "site::rotate" | "connection::list" | "connection::create" | "connection::update" | "connection::delete" | "video::list" | "video::write" | "tag::list" | "tag::write" | "playlist::list" | "playlist::write" | "theme::list" | "theme::write" | "experience::list" | "experience::write" | "location::list" | "location::write" | "screen::list" | "screen::create" | "screen::update" | "screen::delete" | "schedule::list" | "schedule::write" | "layout::list" | "layout::write" | "order::write" | "role::create" | "role::list" | "role::update" | "role::delete"
expiresInDaysinteger1 to 365
namestring1 to 255 characters
siteIdidRestrict the key to one site of the organization.
Terminal window
curl -X POST https://api.loomieo.com/v1/api-keys \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"permissions":[]}'

Response 200

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

Revoke

POST /v1/api-keys/{id}/revoke

Revoke (disable) one of the caller's organization's API keys

Parameters

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

Response 200

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