Get a theme
GET/v2/themes/{themeId}
const url = 'https://api.ligr.live/rest/v2/themes/1';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.ligr.live/rest/v2/themes/1 \ --header 'Authorization: Bearer <token>'Beta. This operation can change between minor versions. See Beta status.
Returns one theme and its published versions. The response also lists every graphic in the theme with the published versions of that graphic.
The theme must belong to your organization. A linked or public theme answers 404, because the response holds editing data: working versions, unpublished graphics and editor settings.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Entity identifier
The theme identifier
Responses
Section titled “Responses”Ok
object
Entity identifier
Sport keys the theme supports, for example football.
Theme version the overlays render. Null means no version is active.
Published theme version numbers, in ascending order.
object
Stable graphic identifier. It does not change between versions.
code or rive.
Version number of the editable working copy.
Published version numbers, in ascending order.
True when every Rive import must carry editable source (.rev or project ZIP).
A Rive renderer release choice of a theme, or of one graphic. A graphic without one follows its theme.
object
The release for pinned, for example 2.41.0-r1.
True when every organization can use the theme. Only LIGR staff change it, in the dashboard.
Example
{ "rendererRelease": { "policy": "latest" }}Request is invalid
object
object
Examplegenerated
{ "message": "example", "details": { "additionalProperty": "example" }}Missing or invalid api key
object
Examplegenerated
{ "message": "example"}Api key provides insufficient access for the request
object
Examplegenerated
{ "message": "example"}Theme not found
object
Examplegenerated
{ "message": "example"}Organization has made too many requests
object
Examplegenerated
{ "message": "example"}An unexpected error has occured. If problems persist please contact support
object
Examplegenerated
{ "message": "example"}