# Traces

> SDK methods for the Traces module, accessed via `soat.traces`. See the [Traces module docs](/docs/modules/traces) for permissions and data model, and each method's REST page for the full request/response schema.

# Traces

SDK methods for the Traces module, accessed via `soat.traces`. See the [Traces module docs](/docs/modules/traces) for permissions and data model, and each method's REST page for the full request/response schema.

### `soat.traces.listTraces()`

List traces

- Method: `GET`
- Path: `/api/v1/traces`

```ts
await soat.traces.listTraces({
  query: { /* + optional */ },
});
```

→ [Request & response schema](/docs/api/traces/list-traces)

### `soat.traces.getTrace()`

Get a trace

- Method: `GET`
- Path: `/api/v1/traces/{trace_id}`

```ts
await soat.traces.getTrace({
  path: { trace_id },
});
```

→ [Request & response schema](/docs/api/traces/get-trace)

### `soat.traces.getTraceTree()`

Get trace tree

- Method: `GET`
- Path: `/api/v1/traces/{trace_id}/tree`

```ts
await soat.traces.getTraceTree({
  path: { trace_id },
  query: { /* + optional */ },
});
```

→ [Request & response schema](/docs/api/traces/get-trace-tree)

### `soat.traces.purgeTraceContent()`

Purge trace content

- Method: `DELETE`
- Path: `/api/v1/traces/{trace_id}/content`

```ts
await soat.traces.purgeTraceContent({
  path: { trace_id },
});
```

→ [Request & response schema](/docs/api/traces/purge-trace-content)
