GET
/
v4
/
themes
/
{theme_id}
import SGPClient from 'sgp';

const client = new SGPClient({
  apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});

async function main() {
  const theme = await client.themes.retrieve('theme_id');

  console.log(theme.id);
}

main();
{
  "id": "<string>",
  "title": "<string>",
  "theme_vars": {
    "accentPrimary": "<string>",
    "accentSecondary": "<string>",
    "background": "<string>",
    "foreground": "<string>"
  },
  "logo_blob": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "archived_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "created_by_user_id": "<string>",
  "account_id": "<string>"
}

Authorizations

x-api-key
string
header
required

Path Parameters

theme_id
string
required

Response

200
application/json
Successful Response
id
string
required
title
string
required
theme_vars
object
required
logo_blob
string
required
created_at
string
required

The date and time when the entity was created in ISO format.

updated_at
string
required

The date and time when the entity was last updated in ISO format.

created_by_user_id
string
required

The user who originally created the entity.

account_id
string
required

The ID of the account that owns the given entity.

archived_at
string

The date and time when the entity was archived in ISO format.