Skip to main content
GET
/
asset-categories
Typescript (SDK)
import { Idalia } from "idalia";

const idalia = new Idalia({
  apiKeyAuth: process.env["IDALIA_API_KEY_AUTH"] ?? "",
});

async function run() {
  const result = await idalia.assetCategories.get();

  console.log(result);
}

run();
[
  {
    "id": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "workspaceId": "<string>",
    "name": "<string>",
    "description": "<string>",
    "parentId": "<string>"
  }
]

Response

Returns array of asset category objects

id
string
required

The asset category ID

createdAt
string
required

Datetime when the category was created

updatedAt
string
required

Datetime when the category was last updated

workspaceId
string
required

ID of the workspace the category belongs to

name
string
required

The category name

description
string | null

Optional description

parentId
string | null

The parent asset category