Skip to content

Models (DTOs)

All request and response bodies are Pydantic models exported from stonepy.models. Naming follows the upstream API:

  • request DTO names end in RequestDTO,
  • response DTO names end in ResponseDTO,
  • v2 variants end in ...DTOv2.

Because every model is fully typed, your editor autocompletes each field and mypy validates your payloads. Every model carries a description and per-field documentation sourced from the upstream API; the same prose feeds editor tooltips and each model's JSON schema (model_json_schema()).

Every model has its own page under All models, grouped into request models, response models, enums, and other models. A few common examples:

Session

Orders