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.
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
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.
Examplegenerated
{ "id": 1, "name": "example", "activeVersion": 1, "versions": [ 1 ], "graphics": [ { "graphicId": "example", "name": "example", "type": "example", "workingVersion": 1, "publishedVersions": [ 1 ] } ]}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"}Api key has made too many requests
object
Examplegenerated
{ "message": "example"}An unexpected error has occured. If problems persist please contact support
object
Examplegenerated
{ "message": "example"}