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.10.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.10.0
File Size Uploaded
softsolz-0.10.0.tar.gz 18.1 kB Details

Built distribution (wheel)

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

Total release size: 46.5 kB

Release files / softsolz-0.10.0.tar.gz

Download URL softsolz-0.10.0.tar.gz
Size 18.1 kB
Tags Source
SHA-256 checksum
How to use checksums
16ee19850735dd57f9bf0c7121e9bb628e84b1d46749f2cf190c9dc72f64f063
BLAKE2b-256 checksum
How to use checksums
8e15b46834bb537ad1d715fd5f63219bdf67aa3735595cdc8fc43ca87ce11ec4
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 7, 2026.

Transparency log

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

Download URL softsolz-0.10.0-py3-none-any.whl
Size 28.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0fd250a97e766f207b37ea559d078063ed8d27556368de4a0213f4001063ddbe
BLAKE2b-256 checksum
How to use checksums
d54e5f0b556c97f377cab8637108f5f57755ef6d05bd3d6b7ba67d4bd47e6899
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 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.10.0 This release

2 release files

0.9.0

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