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

# Spaces.Models

> Reference for the spaces.models Python module in the X API SDK. Pydantic request and response models for the spaces endpoints of the X API v2.

This module provides Pydantic models for request and response data structures
for the spaces endpoints of the X API. All models are generated
from the OpenAPI specification and provide type safety and validation.

## GetBuyersResponse

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

<Badge color="gray">Bases: BaseModel</Badge>

Response model for get\_buyers

## Methods

### `class xdk.spaces.models.GetBuyersResponse`

Response model for get\_buyers

### `class xdk.spaces.models.GetByCreatorIdsResponse`

Response model for get\_by\_creator\_ids

### `class xdk.spaces.models.GetByIdResponse`

Response model for get\_by\_id

### `class xdk.spaces.models.GetByIdsResponse`

Response model for get\_by\_ids

### `class xdk.spaces.models.GetPostsResponse`

Response model for get\_posts

### `class xdk.spaces.models.SearchResponse`

Response model for search
