# ThreadsCreate

> **Class** in `langgraph_sdk`

📖 [View in docs](https://reference.langchain.com/python/langgraph-sdk/auth/types/ThreadsCreate)

Parameters for creating a new thread.

???+ example "Examples"

    ```python
    create_params = {
        "thread_id": UUID("123e4567-e89b-12d3-a456-426614174000"),
        "metadata": {"owner": "user123"},
        "if_exists": "do_nothing"
    }
    ```

## Signature

```python
ThreadsCreate()
```

## Extends

- `typing.TypedDict`

## Constructors

```python
__init__(
    thread_id: UUID,
    metadata: MetadataInput,
    if_exists: OnConflictBehavior,
    ttl: ThreadTTL,
)
```

| Name | Type |
|------|------|
| `thread_id` | `UUID` |
| `metadata` | `MetadataInput` |
| `if_exists` | `OnConflictBehavior` |
| `ttl` | `ThreadTTL` |


## Properties

- `thread_id`
- `metadata`
- `if_exists`
- `ttl`

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/d27d4b2d9895a4aa83170b4aaa135878f99c7fd6/libs/sdk-py/langgraph_sdk/auth/types.py#L443)