Official Python SDK for the Formalingo API, generated with Microsoft Kiota.
pip install git+https://github.com/Formalingo/sdk-python.gitOr with uv:
uv pip install git+https://github.com/Formalingo/sdk-python.gitimport asyncio
from formalingo import create_client
async def main():
client = create_client("af_live_YOUR_KEY")
# List forms
forms = await client.api.v1.forms.get()
print(forms)
asyncio.run(main())from formalingo.models.create_form_body import CreateFormBody
body = CreateFormBody()
body.title = "Customer Survey"
form = await client.api.v1.forms.post(body)from formalingo.models.create_recipient_body import CreateRecipientBody
body = CreateRecipientBody()
body.label = "John Doe"
body.email = "john@acme.com"
body.prefill = {"question-id": "pre-filled value"}
recipient = await client.api.v1.forms.by_form_id("FORM_ID").recipients.post(body)
print(recipient.link)from formalingo.models.create_submission_body import CreateSubmissionBody
submission = await client.api.v1.documents.by_document_id("DOC_ID").submissions.post(body)
print(submission.signers[0].link)- Python 3.10+
- Dependencies:
microsoft-kiota-bundle >= 1.9.0
This SDK is generated from the Formalingo OpenAPI spec using Microsoft Kiota. It is maintained as a submodule of the main Formalingo monorepo.
To regenerate after API changes:
# From the monorepo root
yarn sdk:generate