List themes
GET/v2/themes
GET
/v2/themes
const url = 'https://api.ligr.live/rest/v2/themes';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 \ --header 'Authorization: Bearer <token>'Beta. This operation can change between minor versions. See Beta status.
Lists the themes your organization created. Public themes and themes LIGR linked to your organization are not in the list, because the theme routes cannot write to them.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Ok
Media typeapplication/json
Array<object>
One theme the organization owns.
object
id
required
Entity identifier
integer format: int32
name
required
string
sports
required
Sport keys the theme supports, for example football.
Array<string>
activeVersion
required
Theme version the overlays render. Null means no version is active.
integer format: int32
createdAt
required
ISO 8601 timestamp.
string
Examplegenerated
[ { "id": 1, "name": "example", "sports": [ "example" ], "activeVersion": 1, "createdAt": "example" }]Request is invalid
Media typeapplication/json
object
message
required
string
details
required
object
key
additional properties
Examplegenerated
{ "message": "example", "details": { "additionalProperty": "example" }}Missing or invalid api key
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}Api key provides insufficient access for the request
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}Theme not found
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}Api key has made too many requests
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}An unexpected error has occured. If problems persist please contact support
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}