> ## 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.

# GeneralClient

> Reference for the general.client Python module in the X API SDK. Client class and methods for calling the general endpoints of the X API v2.

## GeneralClient

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

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

Client for general operations

## Constructors

### `__init__`

#### Parameters

<ParamField path="path.client" type="Client" />

### `get_open_api_spec`

Get OpenAPI Spec.
Retrieves the full OpenAPI Specification in JSON format. (See [https://github.com/OAI/OpenAPI-Specification/blob/master/README.md](https://github.com/OAI/OpenAPI-Specification/blob/master/README.md))
:returns: Response data
:rtype: GetOpenApiSpecResponse

#### Returns

`GetOpenApiSpecResponse`
