Skip to main content

getById

client.themes.getById(themeId: string): Promise<Theme>

Retrieves a specific theme by its unique identifier.

Returns detailed information about a single theme including its configuration, colors, settings, and metadata.

Parameters​

ParameterTypeRequiredDescription
themeIdstringYesThe unique identifier of the theme to retrieve

Returns​

Promise<Theme> — A promise that resolves to the requested Theme object

Example​

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.themes.getById('themeId');
console.log(result);