Get a Rive graphic
GET/v2/themes/{themeId}/rive-graphics/{graphicId}
const url = 'https://api.ligr.live/rest/v2/themes/1/rive-graphics/example';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/rive-graphics/example \ --header 'Authorization: Bearer <token>'Beta. This operation can change between minor versions. See Beta status.
Return the sanitized working Rive graphic configuration.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Ok
object
The organization that owns the theme. The dashboard builder link starts with /o/<organizationId>.
null for a theme LIGR owns.
object
object
object
object
object
object
object
object
object
object
object
object
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.
How deep the graphic sits when several are on air. Higher covers lower. Absent: the default depth, 100 for a Rive graphic. A code graphic has 200.
object
Published versions in ascending order.
The Rive renderer release the graphic renders with, for example 2.44.0-r1. It comes from the
graphic’s own choice, then the theme’s. A published version keeps the release it recorded.
object
Example
{ "type": "rive", "stateMachine": { "controlVariables": [ { "exitMode": "immediate" } ], "dataBindings": [ { "exposed": { "entityType": "player" }, "imageTransform": { "fit": "cover", "anchor": "center" } } ], "stateMachineInputs": [ { "type": "boolean" } ], "assets": [ { "type": "image", "exposed": { "entityType": "player" } } ], "renderer": "webgl2", "rendererRelease": { "policy": "latest" } }}Invalid Rive request
object
Examplegenerated
{ "message": "example", "code": "example"}Theme, import, graphic, version, or file not found
object
Examplegenerated
{ "message": "example", "code": "example"}Rive import or graphic state conflict
object
Examplegenerated
{ "message": "example", "code": "example"}Rive candidate or source is no longer available
object
Examplegenerated
{ "message": "example", "code": "example"}Rive file or configuration cannot be used
object
Examplegenerated
{ "message": "example", "code": "example"}Rive source imports are unavailable
object
Examplegenerated
{ "message": "example", "code": "example"}