Skip to main content

softsolz

Official Python SDK for the SoftSolz platform API.

pip install softsolz

Requires Python 3.9 or later. Fully type-annotated (py.typed).

Usage

import os
from softsolz import SoftSolz

client = SoftSolz(api_key=os.environ["SOFTSOLZ_API_KEY"])

me = client.whoami()

form = client.forms.create_form({"name": "Contact Us", "status": "published"})
client.forms.submit_form(form["slug"], {"data": {"full_name": "Jane Doe", "email": "jane@example.com"}})

invoice = client.invoicing.create_invoice({
    "customer_id": 42,
    "lines": [{"description": "Design work", "quantity": 1, "unit_price_cents": 50000}],
})
client.invoicing.send_invoice(invoice["id"])

Use an sk_test_* key to run against your sandbox workspace; swap to sk_live_* in production. No other configuration changes.

Services

client.blogs, client.customer_auth, client.forms, client.invoicing, client.payments, client.smart_chat, client.social, client.workflows - one method per API operation, generated from the platform's service manifests.

Pagination

List methods return a Page you can iterate; extra pages are fetched automatically:

for invoice in client.invoicing.list_invoices({"status": "overdue"}):
    print(invoice["invoice_number"])

Or page manually with page.data, page.has_more, and page.next_page().

Errors

All API failures raise a typed subclass of SoftSolzError carrying status, code, message, details, and request_id:

from softsolz import NotFoundError

try:
    client.forms.get_form(999)
except NotFoundError as err:
    print(err.code, err.request_id)

Classes: InvalidRequestError (400/422), AuthenticationError (401), PaymentRequiredError (402), PermissionDeniedError (403), NotFoundError (404), ConflictError (409), RateLimitError (429, with retry_after_seconds), APIConnectionError (network).

Retries and idempotency

429 and 5xx responses are retried automatically with exponential backoff (default 2 retries), honouring Retry-After. Every mutating request carries an auto-generated Idempotency-Key, so retries are always safe. Pass your own to control replays:

client.invoicing.create_invoice(body, idempotency_key="order-1234")

Configure per client: SoftSolz(api_key=..., max_retries=3, timeout=60.0).

Webhooks

Verify the Softsolz-Signature header on incoming webhooks using the raw request body:

from softsolz import webhooks

webhooks.assert_valid(
    raw_body=request.get_data(),
    header_value=request.headers.get("Softsolz-Signature"),
    secret=os.environ["SOFTSOLZ_WEBHOOK_SECRET"],
)

webhooks.verify(...) returns {"valid": False, "reason": ...} if you prefer not to raise.

Escape hatch

Call any endpoint directly while keeping auth, retries, and errors:

client.request("GET", "/api/v1/services/forms/forms", query={"limit": 10})

Sending files

client.files.upload() sends an image, video, PDF or Word, PowerPoint or Excel file to a service and returns a file_id to pass to that service. Files up to 700 KB go inline; larger ones go through a one-time upload link, handled for you.

file = client.files.upload("smart-chat", "handbook.pdf")
client.request(
    "POST",
    "/api/v1/services/smart-chat/kb/documents/import",
    body={"collection_id": collection_id, "file_id": file["file_id"]},
)

The real type is read from the file's bytes, and a file can only be used by the key that sent it, with that service, for 24 hours.

Documentation

License

MIT

Release files for softsolz 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for softsolz 0.8.0
File Size Uploaded
softsolz-0.8.0.tar.gz 19.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for softsolz 0.8.0
File Interpreter ABI Platform
softsolz-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 48.9 kB

Release files / softsolz-0.8.0.tar.gz

Download URL softsolz-0.8.0.tar.gz
Size 19.3 kB
Tags Source
SHA-256 checksum
How to use checksums
845da7547caffcdf4e8550e0c30faccd285df54b6f7fa11a3488677049da448b
BLAKE2b-256 checksum
How to use checksums
c9ded7497ff9e5f3e4d71d6c9e917d6ef08ea5e43b5f8e9e3efffc187f48282e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / softsolz-0.8.0-py3-none-any.whl

Download URL softsolz-0.8.0-py3-none-any.whl
Size 29.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5d221dfa802bf33e704aac39dd62eda3214a529533d65fd31362aa28d97bb2a
BLAKE2b-256 checksum
How to use checksums
825901ed87822a45c25b3be8f738eeb817e0e976fb399454e9554198ee2dd21a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 release files

0.6.0

2 release files

0.4.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release 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