Skip to main content

roamhq

Official Python SDK for the Roam API.

pip install roamhq

Requires Python 3.10+.

import os
from roamhq import RoamClient

client = RoamClient(token=os.environ["ROAM_TOKEN"])

result = client.chat.post(
    group_id="88bebce7-6cbb-4666-96f9-5c02d73e6661",
    text="Build completed successfully!",
)

Full usage — pagination, retries, error handling, version pinning — is in the SDK guide. The API reference documents every endpoint.

Verifying webhooks

from roamhq.webhooks import verify_webhook

event = verify_webhook(body, request.headers, os.environ["ROAM_WEBHOOK_SECRET"])

body must be the raw request bytes. Treat any exception as a 401. Pass the signing secret exactly as Roam issued it, whsec_ prefix included.

This is the one part of the SDK that is hand-written rather than generated. See src/roamhq/webhooks.py for why.

This repository is mostly generated

The client and types are generated from the Roam OpenAPI specification by Fern. Do not edit them by hand — the next regeneration will overwrite them.

A change to the spec opens or updates a single long-lived pull request here titled "Regenerate SDK from OpenAPI spec". A human reviews the diff, picks the semantic-version bump in pyproject.toml, and merges. Merging does not publish to PyPI.

Everything listed in .fernignore is hand-maintained.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

roamhq-0.1.0.tar.gz (198.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

roamhq-0.1.0-py3-none-any.whl (337.1 kB view details)

Uploaded Python 3

File details

Details for the file roamhq-0.1.0.tar.gz.

File metadata

  • Download URL: roamhq-0.1.0.tar.gz
  • Upload date:
  • Size: 198.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for roamhq-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b72d8e7b686e329a7e950f2e16336b2b955b09b7942247a4307425f6671638b7
MD5 dc2e3bdf86e8cbe0704e4ddc64713687
BLAKE2b-256 2220374404cdce3b769c1e083e89afc2b0f445092a28bf86c915f73aaafb61f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for roamhq-0.1.0.tar.gz:

Publisher: publish.yml on WonderInventions/roam-sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file roamhq-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: roamhq-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 337.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for roamhq-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b35f35c3a88d3519e3936caec00af5b421fbac251fc38f10c82eebc6d93abdd2
MD5 39bacd52db48d6758d13e4061257b260
BLAKE2b-256 b2b2376a32e5c08aaa2de61b109649ca620896a6160ad75ceb537ad31e8311d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for roamhq-0.1.0-py3-none-any.whl:

Publisher: publish.yml on WonderInventions/roam-sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page