Install and use the official Pivot Python SDK generated from the Pivot REST OpenAPI spec.
The Pivot Python SDK provides typed request/response models and endpoint helpers for the Pivot REST API. It is generated from the same OpenAPI document used by the REST API reference, so client updates can be produced with code generation instead of manual endpoint wiring.
pip install hellopivot-sdkIf you use uv in your own project:
uv add hellopivot-sdkimport os
from hellopivot_sdk import AuthenticatedClientfrom hellopivot_sdk.api.spaces import get_spaces_by_organization_id
client = AuthenticatedClient( base_url="https://api.pivot.app", token=os.environ["PIVOT_API_KEY"],)
with client as authenticated_client: response = get_spaces_by_organization_id.sync( organization_id="your-org-id", offset=0, client=authenticated_client, ) print(response)The SDK uses Authorization: Bearer <API_KEY> automatically through AuthenticatedClient.
Endpoint modules are grouped by REST API tags:
hellopivot_sdk.api.blockshellopivot_sdk.api.groupshellopivot_sdk.api.inviteshellopivot_sdk.api.labelshellopivot_sdk.api.roomshellopivot_sdk.api.spaceshellopivot_sdk.api.usershellopivot_sdk.api.webhooksEach endpoint module provides:
sync and sync_detailed for blocking callsasyncio and asyncio_detailed for async callsWas this guide helpful?