---
title: CtExpression type | Wartiva GraphQL API
description: Inspect or modify connection tracking (conntrack) state, such as connection state, marks, labels, addresses, or counters.
url: https://wartiva.com/api-docs/types/ct-expression.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL type

# `CtExpression` type

Inspect or modify connection tracking (conntrack) state, such as connection state, marks, labels, addresses, or counters.

## Fields

| Field Name | Description |
|---|---|
| `register` - [`NftRegister!`](https://wartiva.com/api-docs/types/nft-register.html) | Register index (destination if SourceRegister=false, source if true). |
| `sourceRegister` - [`Boolean!`](https://wartiva.com/api-docs/types/boolean.html) | Whether Register is used as a source (true) or destination (false). |
| `key` - [`CTKey!`](https://wartiva.com/api-docs/types/ct-key.html) | Which conntrack attribute to access. |
| `direction` - [`FlowDirection!`](https://wartiva.com/api-docs/types/flow-direction.html) | Flow direction for directional keys. |

## Used by

- [`ChainExpression`](https://wartiva.com/api-docs/types/chain-expression.html) union: A union of all possible nftables chain expression types.

## Example

### Example

```json
{
  "register": "VERDICT",
  "sourceRegister": true,
  "key": "STATE",
  "direction": "ORIGINAL"
}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
