projectInfo
Last updated
Returns information about the current project.
projectInfo(): Promise<ProjectInfo>None.
Promise<ProjectInfo> - Object containing project details:
type ProjectInfo = {
projectName: string;
modelId: string;
modelIdBase62: string;
publishedId: string;
workspaceId: string;
}projectName
string
Name of the project
modelId
string
Unique model identifier (UUID)
modelIdBase62
string
Model ID in Base62 format
publishedId
string
Published version identifier
workspaceId
string
Workspace identifier
Last updated
const info = await api.projectInfo();
console.log(info.projectName);
console.log(info.modelId);