> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer.tradespace.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.tradespace.io/_mcp/server.

# Classification

GraphQL object

A global classification used to categorize records. Classifications form a tree.

Reference: https://developer.tradespace.io/api-reference/types/objects/classification

## Fields

- `ancestorIds` — The unique identifiers of all ancestors, from the root down.
- `ancestry` — The ancestor IDs joined by slashes, from the root down.
- `childrenCount` — The number of direct children.
- `createdAt` — The classification's creation date.
- `description` — The classification's description.
- `hasChildren` — Whether the node has children.
- `hasParent` — Whether the node has a parent.
- `id` — The classification's unique identifier.
- `level` — The depth in the tree. Root nodes are level 0.
- `parentId` — The unique identifier of the parent node. Returns null for a root node.
- `root` — Whether the node is a root node.
- `rootId` — The unique identifier of the root node.
- `slug` — The classification's URL-safe identifier. Accepted anywhere an ID is.
- `title` — The classification's title.
- `updatedAt` — The date the classification was last updated.

## Definition

```graphql
type Classification {
  ancestorIds: [Int!]
  ancestry: String
  childrenCount: Int!
  createdAt: ISO8601DateTime!
  description: String
  hasChildren: Boolean!
  hasParent: Boolean!
  id: Int!
  level: Int!
  parentId: Int
  root: Boolean
  rootId: Int
  slug: String
  title: String
  updatedAt: ISO8601DateTime!
}
```