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
| 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/api-keys \ -H "Authorization: Bearer $LUMIEO_KEY"Response 200
| Name | Type | Description |
|---|---|---|
apikeysrequired | list of object | |
paginationrequired | object |
Errors
401:auth_unauthenticated403:forbidden,out_of_scope422:validation_failed429:rate_limited
Mint an org-owned API key — its permissions must be a subset of the caller's own
POST /v1/api-keys
Body
| Name | Type | Description |
|---|---|---|
permissionsrequired | list 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" | |
expiresInDays | integer | 1 to 365 |
name | string | 1 to 255 characters |
siteId | id | Restrict the key to one site of the organization. |
curl -X POST https://api.loomieo.com/v1/api-keys \ -H "Authorization: Bearer $LUMIEO_KEY" \ -H "Content-Type: application/json" \ -d '{"permissions":[]}'Response 200
| Name | Type | Description |
|---|---|---|
apikeyrequired | object |
Errors
400:bad_request401:auth_unauthenticated403:api_key_escalation,auth_csrf_rejected,forbidden,out_of_scope404:organization_not_found,site_not_found422:validation_failed429:rate_limited
Revoke
POST /v1/api-keys/{id}/revoke
Revoke (disable) one of the caller's organization's API keys
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | id |
curl -X POST https://api.loomieo.com/v1/api-keys/:id/revoke \ -H "Authorization: Bearer $LUMIEO_KEY"Response 200
| Name | Type | Description |
|---|---|---|
apikeyrequired | object |
Errors
400:bad_request401:auth_unauthenticated403:auth_csrf_rejected,forbidden,out_of_scope404:api_key_not_found422:validation_failed429:rate_limited