# approval_mode_key

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/approval_mode/approval_mode_key)

Return the store key for a thread's live approval mode.

## Signature

```python
approval_mode_key(
    thread_id: str,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `thread_id` | `str` | Yes | LangGraph thread id for the active session. |

## Returns

`str`

Deterministic store key that does not expose the raw thread id.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/e14e0adcbe78565ed3650e7f24b2a775d5437d25/libs/code/deepagents_code/approval_mode.py#L55)