Skip to main content

Overview

The GeneralClient provides access to general utility endpoints, including the OpenAPI specification.

Initialization

Access the general client through the main Client instance:
from xdk import Client

client = Client(bearer_token="your_token")
general = client.general

Methods

get_open_api_spec()

Retrieves the full OpenAPI Specification in JSON format.
None
None
This method takes no parameters.
Returns: GetOpenApiSpecResponse - The OpenAPI specification document Example:
# Get the OpenAPI specification
spec = client.general.get_open_api_spec()
print(spec)

Authentication

The general endpoints support:
  • Bearer Token (App-only)
  • OAuth 2.0 User Context

See Also

Build docs developers (and LLMs) love