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

Metadata

Release files for softsolz 0.9.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.9.0
File Size Uploaded
softsolz-0.9.0.tar.gz 18.0 kB Details

Built distribution (wheel)

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

Total release size: 46.3 kB

Release files / softsolz-0.9.0.tar.gz

Download URL softsolz-0.9.0.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b69375eaf659465df8c987dd1c2c256d6394aa9e582635eedaf6eb28f4efc068
BLAKE2b-256 checksum
How to use checksums
f1bfc1d428a9f54f6cf2605a61ef77707b2d4e515dfa004ab9352920ab37bbe4
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 Oct 2, 2026.

Transparency log

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

Download URL softsolz-0.9.0-py3-none-any.whl
Size 28.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ff3d796a76337a78b2f9bd118f08d73abfee9abd736c0a4fa4f2e4e7084489b
BLAKE2b-256 checksum
How to use checksums
534a6bc04598a2aa7e6b0ef54e5fccae7c4b1166d73f9d1e9d8633d88c035ac5
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 Oct 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 release files

0.8.0

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