> ## Documentation Index
> Fetch the complete documentation index at: https://x-preview-mintlify-5e62557c.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Direct_messages.Models

> Reference for the direct_messages.models Python module in the X API SDK. Pydantic request and response models for the direct messages endpoints of the X API.

이 모듈은 요청 및 응답 데이터 구조를 위한 Pydantic 모델을 제공합니다.
X API의 direct messages 엔드포인트를 위한 것입니다. 모든 모델은
OpenAPI 명세에서 생성되며 타입 안전성과 검증을 제공합니다.

### class xdk.direct\_messages.models.CreateByConversationIdRequest

create\_by\_conversation\_id에 대한 요청 모델

<ResponseField name="model_config" type="ConfigDict">
  Default: `{'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}`

  Configuration for the model, should be a dictionary conforming to \[ConfigDict]\[pydantic.config.ConfigDict].
</ResponseField>

## CreateByConversationIdResponse

<Badge color="blue">Class</Badge>

<Badge color="gray">기반 클래스: BaseModel</Badge>

create\_by\_conversation\_id에 대한 응답 모델

## 메서드

### `class xdk.direct_messages.models.CreateByConversationIdResponse`

create\_by\_conversation\_id에 대한 응답 모델

### `class xdk.direct_messages.models.CreateByParticipantIdResponse`

create\_by\_participant\_id에 대한 응답 모델

### `class xdk.direct_messages.models.CreateConversationResponse`

create\_conversation에 대한 응답 모델

### `class xdk.direct_messages.models.DeleteEventsResponse`

delete\_events에 대한 응답 모델

### `class xdk.direct_messages.models.GetEventsByConversationIdResponse`

get\_events\_by\_conversation\_id에 대한 응답 모델

### `class xdk.direct_messages.models.GetEventsByIdResponse`

get\_events\_by\_id에 대한 응답 모델

### `class xdk.direct_messages.models.GetEventsByParticipantIdResponse`

get\_events\_by\_participant\_id에 대한 응답 모델

### `class xdk.direct_messages.models.GetEventsResponse`

get\_events에 대한 응답 모델
