> ## Documentation Index
> Fetch the complete documentation index at: https://superdoc-caio-pizzol-docs-ai-core-preset.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# tables.getStyles

> List all table styles and the document-level default table style setting.

## Summary

List all table styles and the document-level default table style setting.

* Operation ID: `tables.getStyles`
* API member path: `editor.doc.tables.getStyles(...)`
* Mutates document: `no`
* Idempotency: `idempotent`
* Supports tracked mode: `no`
* Supports dry run: `no`
* Deterministic target resolution: `yes`

## Expected result

Returns a TablesGetStylesOutput with the style catalog, explicit default, and effective default.

## Input fields

*No fields.*

### Example request

```json theme={null}
{}
```

## Output fields

| Field                     | Type           | Required | Description |
| ------------------------- | -------------- | -------- | ----------- |
| `effectiveDefaultSource`  | string         | yes      |             |
| `effectiveDefaultStyleId` | string \| null | yes      |             |
| `explicitDefaultStyleId`  | string \| null | yes      |             |
| `styles`                  | object\[]      | yes      |             |

### Example response

```json theme={null}
{
  "effectiveDefaultSource": "example",
  "effectiveDefaultStyleId": "example",
  "explicitDefaultStyleId": "example",
  "styles": [
    {
      "basedOn": "example",
      "conditionalRegions": [
        "example"
      ],
      "hidden": true,
      "id": "id-001",
      "isCustom": true,
      "isDefault": true,
      "name": "example",
      "quickFormat": true,
      "uiPriority": 1
    }
  ]
}
```

## Pre-apply throws

* None

## Non-applied failure codes

* None

## Raw schemas

<Accordion title="Raw input schema">
  ```json theme={null}
  {
    "additionalProperties": false,
    "properties": {},
    "type": "object"
  }
  ```
</Accordion>

<Accordion title="Raw output schema">
  ```json theme={null}
  {
    "additionalProperties": false,
    "properties": {
      "effectiveDefaultSource": {
        "type": "string"
      },
      "effectiveDefaultStyleId": {
        "type": [
          "string",
          "null"
        ]
      },
      "explicitDefaultStyleId": {
        "type": [
          "string",
          "null"
        ]
      },
      "styles": {
        "items": {
          "additionalProperties": false,
          "properties": {
            "basedOn": {
              "type": [
                "string",
                "null"
              ]
            },
            "conditionalRegions": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "hidden": {
              "type": "boolean"
            },
            "id": {
              "type": "string"
            },
            "isCustom": {
              "type": "boolean"
            },
            "isDefault": {
              "type": "boolean"
            },
            "name": {
              "type": [
                "string",
                "null"
              ]
            },
            "quickFormat": {
              "type": "boolean"
            },
            "uiPriority": {
              "type": [
                "integer",
                "null"
              ]
            }
          },
          "required": [
            "id",
            "name",
            "basedOn",
            "isDefault",
            "isCustom",
            "uiPriority",
            "hidden",
            "quickFormat",
            "conditionalRegions"
          ],
          "type": "object"
        },
        "type": "array"
      }
    },
    "required": [
      "explicitDefaultStyleId",
      "effectiveDefaultStyleId",
      "effectiveDefaultSource",
      "styles"
    ],
    "type": "object"
  }
  ```
</Accordion>
