Skip to content
Official libraries · Coming soon

Five official libraries with the same resource interface.

Server libraries (PHP · Node.js · Python) that create and track signature requests and verify event notifications, and two in-app signing libraries (iOS · Android) that show the signing page inside your app with no secret key in it. What you learn in one library applies to the rest.

All the libraries are published on GitHub and the standard package registries at the official launch; until then, call the API directly over HTTP as in the quick start guide.

Coming soon MIT licence SemVer versioning
Official libraries

Each library in its own box: installation, requirements and source.

Each box carries the install command, the runtime requirements and the package source; the GitHub and Package buttons become active at the official launch.

PHP

API library
Coming soon

The official server library for PHP: create signature requests, track them and verify event notifications.

Terminal
composer require wsign/wsign-php
  • PHP 8.1 or later · curl / json extensions
  • Packagist · wsign/wsign-php
GitHubPackage

Node.js

API library
Coming soon

The official server library for Node.js, with complete TypeScript definitions and no runtime dependencies.

Terminal
npm install @wsign/node
  • Node.js 18 or later · TypeScript definitions included · ESM / CommonJS
  • npm · @wsign/node
GitHubPackage

Python

API library
Coming soon

The official server library for Python, with synchronous and asynchronous clients and no required dependencies.

Terminal
pip install wsign
  • Python 3.10 or later · no required dependencies
  • PyPI · wsign
GitHubPackage

iOS

In-app signing library
Coming soon

SwiftUI and UIKit APIs that show the signing page inside your app and report the session result, with no secret key in the app.

Package.swift
.package(url: "https://github.com/wsign-io/wsign-ios", from: "1.0.0")
  • iOS 15 or later · Swift 5.9 or later
  • Swift Package · WsignSigning
GitHubPackage

Android

In-app signing library
Coming soon

Jetpack Compose, Fragment and Activity Result APIs that show the signing page inside your app, with no secret key in the app.

build.gradle.kts
implementation("io.wsign:signing:1.0.0")
  • Android 7.0 (minSdk 24) or later · Kotlin / Java
  • Maven Central · io.wsign:signing
GitHubPackage
Detailed guide

Library by library: installation and quick start.

Each library has its install command, a quick start example taken from its guide, what it covers and its runtime requirements.

PHP

API library
Coming soon

The official server library for PHP: create signature requests, track them and verify event notifications.

Installation

Terminal
composer require wsign/wsign-php

Quick start

quickstart.php
require 'vendor/autoload.php';

$wsign = new \Wsign\Client(getenv('WSIGN_API_KEY'));
$request = $wsign->signatureRequests->create([
    'source'  => ['type' => 'template', 'template_id' => 'tpl_123'],
    'signers' => [['name' => 'Noha Hassan', 'email' => 'noha@example.com']],
]);

echo $request->id . ' ' . $request->status; // sr_3n8Kd2Qa1V... sent
The example reads the key from the environment variable shown in the code. Use an sk_test_ key while you build, so no balance is deducted and no message reaches anyone.

What the library covers

  • Create, send and track signature requests
  • Templates and workflows
  • Embedded signing sessions in your site or app
  • Download the final document and the sealed evidence record
  • Verify event notification (webhook) signatures
  • Free test mode with an sk_test_ key, then live mode by changing the key alone

What sets it apart: Uses cURL by default and accepts any PSR-18 client (Guzzle · Symfony HttpClient), with immutable typed response objects and support for PHP 8.1 to 8.4.

Node.js

API library
Coming soon

The official server library for Node.js, with complete TypeScript definitions and no runtime dependencies.

Installation

Terminal
npm install @wsign/node

Quick start

quickstart.js
import Wsign from '@wsign/node';

const wt = new Wsign(process.env.WSIGN_API_KEY);

const sr = await wt.signatureRequests.create({
  title: 'Employment contract',
  source: { type: 'template', template_id: 'tpl_123' },
  legal_level: 'aes',
  signers: [{ name: 'Ahmed Ali', email: 'ahmed@example.com', method: 'draw', require_identity: true }],
});

console.log(sr.id, sr.status); // sr_3f1c… sent
The example reads the key from the environment variable shown in the code. Use an sk_test_ key while you build, so no balance is deducted and no message reaches anyone.

What the library covers

  • Create, send and track signature requests
  • Templates and workflows
  • Embedded signing sessions in your site or app
  • Download the final document and the sealed evidence record
  • Verify event notification (webhook) signatures
  • Free test mode with an sk_test_ key, then live mode by changing the key alone

What sets it apart: Written in TypeScript with complete definitions, ships ESM and CommonJS, accepts an AbortSignal to cancel a call, and verifies notifications synchronously, including on edge runtimes.

Python

API library
Coming soon

The official server library for Python, with synchronous and asynchronous clients and no required dependencies.

Installation

Terminal
pip install wsign

Quick start

quickstart.py
import os
import wsign

wt = wsign.Client(os.environ["WSIGN_API_KEY"])  # sk_test_... while you build

sr = wt.signature_requests.create(
    title="عقد عمل — أحمد سامي",
    source={"type": "template", "template_id": "tpl_123"},
    legal_level="aes",
    signers=[{"name": "أحمد سامي", "email": "ahmed@example.com", "method": "draw"}],
)

print(sr.id, sr.status)  # sr_3n8Kd2Qa1V... sent
The example reads the key from the environment variable shown in the code. Use an sk_test_ key while you build, so no balance is deducted and no message reaches anyone.

What the library covers

  • Create, send and track signature requests
  • Templates and workflows
  • Embedded signing sessions in your site or app
  • Download the final document and the sealed evidence record
  • Verify event notification (webhook) signatures
  • Free test mode with an sk_test_ key, then live mode by changing the key alone

What sets it apart: A synchronous Client and an asynchronous AsyncClient with the same methods, full typing (py.typed), and optional httpx for true asynchronous I/O.

iOS

In-app signing library
Coming soon

SwiftUI and UIKit APIs that show the signing page inside your app and report the session result, with no secret key in the app.

Installation

Package.swift
.package(url: "https://github.com/wsign-io/wsign-ios", from: "1.0.0")

Quick start

OrderView.swift
import SwiftUI
import WsignSigning

struct OrderView: View {
    @State private var signingURL: URL?
    @State private var isSigning = false

    var body: some View {
        Button("Sign the contract") {
            Task {
                signingURL = try? await MyBackend.signingURL(forOrder: 42) // your API call
                isSigning = signingURL != nil
            }
        }
        .wsignSigning(isPresented: $isSigning, url: signingURL) { result in
            if case .signed = result { /* confirm on your backend via webhooks */ }
        }
    }
}
The signing link comes from your server (through one of the server libraries or directly through the API), and no key goes into the app. The result the library reports drives your interface; the event notification on your server is the proof.

What the library covers

  • Show the signing page full screen inside the app, not in an external browser
  • Report the result to the app once: signed · declined · canceled · expired · failed
  • In-session events to update your interface
  • Loading, error and retry screens, dark mode, Arabic right-to-left and English
  • ID attachments, camera and identity verification inside the page
  • No key in the app: your server creates the signing link, and the event notification it receives is the proof

What sets it apart: The SwiftUI modifier .wsignSigning(isPresented:url:) or WsignSigningSheet; in UIKit, presentWsignSigning(url:) or WsignSigningViewController with a delegate; distributed through Swift Package Manager only.

Android

In-app signing library
Coming soon

Jetpack Compose, Fragment and Activity Result APIs that show the signing page inside your app, with no secret key in the app.

Installation

build.gradle.kts
implementation("io.wsign:signing:1.0.0")

Quick start

OrderActivity.kt
class OrderActivity : ComponentActivity() {

    private val signing = registerForActivityResult(WsignSigning.Contract()) { result ->
        when (result) {
            is SigningResult.Signed -> showConfirming(result.outcome.reference.signatureRequestId)
            is SigningResult.Declined -> showDeclined(result.outcome.reason)
            SigningResult.Canceled -> Unit
            SigningResult.Expired -> requestNewLink()
            is SigningResult.Failed -> showError(result.error)
        }
    }

    private fun sign(signingUrl: String) {
        signing.launch(signingUrl)
    }
}
The signing link comes from your server (through one of the server libraries or directly through the API), and no key goes into the app. The result the library reports drives your interface; the event notification on your server is the proof.

What the library covers

  • Show the signing page full screen inside the app, not in an external browser
  • Report the result to the app once: signed · declined · canceled · expired · failed
  • In-session events to update your interface
  • Loading, error and retry screens, dark mode, Arabic right-to-left and English
  • ID attachments, camera and identity verification inside the page
  • No key in the app: your server creates the signing link, and the event notification it receives is the proof

What sets it apart: Activity Result API via WsignSigning.Contract() · Jetpack Compose via rememberWsignSigningLauncher or WsignSigningSheet with the additional io.wsign:signing-compose artifact · WsignSigningFragment inside your screen · Kotlin or Java · AndroidX dependencies only.

Shared behaviour

One behaviour across the server libraries.

No need to rebuild networking and security logic: the server libraries (PHP · Node.js · Python) implement the following capabilities the same way, for a consistent experience across all your projects.

Safe automatic retries

On connection errors, timeouts and transient responses (429 or 5xx), the library retries with exponential backoff that honours the Retry-After header, and automatically attaches an Idempotency-Key to every POST request and reuses it across its retries, so the same resource is never created twice.

Retry-After Idempotency-Key: 5f3c9c2e-...

Automatic pagination

Browse thousands of records without managing cursors yourself: the list method returns one page, and the iterator fetches the following pages automatically until the last item.

123…

Verifying the Webhooks signature

A ready-made helper verifies the Wsign-Signature header with a constant-time comparison, rejects timestamps older than 300 seconds, and returns the typed event once verified.

Wsign-Signature: t=1754500000,v1=<hmac_sha256 hex>

Typed errors

API errors become exceptions classified by type: authentication, invalid request, rate limit, conflict and connection; each carries the fields code · param · request_id for quick diagnosis.

{ "code": "plan_required", "param": ..., "request_id": "req_9f2a1c" }

Pinning the API version

Every library sends the header Wsign-Version: 2026-07-01 pinned on every request, so later changes do not affect your integrations. You can set a different version when you initialise the client.

Wsign-Version: 2026-07-01

Configurable timeouts

Set the timeout per attempt and the number of retries per client or per call, cancel a call in Node.js with an AbortSignal, and use your own HTTP client in PHP (PSR-18) or Python (httpx).

AbortSignalPSR-18httpx

And the two in-app signing libraries

— iOS · Android: they show the page and report the result, and carry no key.

No secret key in the app

Your server creates the signing link with its secret key and returns it to the app; the library only shows the page. It accepts only https links on wsign domains and keeps session data in memory by default.

One clear result

The library reports to your app once with one of five results: signed, declined, canceled, expired or failed. That result drives your interface; the proof is the event notification that reaches your server.

Ready for Arabic and dark mode

The library interface runs in Arabic right-to-left or in English, follows the system dark mode, and includes loading, error and retry screens, plus ID attachments, camera and identity verification inside the page.

Versions and support

Policy Clear and stable to upgrade.

We keep the library version separate from the API version and keep changes within predictable limits, so you can plan upgrades with confidence.

SemVer versioning

Every library follows semantic versioning MAJOR.MINOR.PATCH. Breaking changes are only introduced in a new MAJOR version; compatible additions and bug fixes ship safely in MINOR and PATCH releases.

The library version is independent of the API version pinned by the header Wsign-Version, so you can upgrade the library without changing API behavior.

A changelog for every library

Every library has a CHANGELOG file in its repository recording what was added and changed in each release, while API changes are dated by the version header and every released version stays supported.

Follow the Changelog to learn early what needs updating.

Minimum runtime versions

The libraryMinimum runtime requirementsPackage sourceVersion
PHPPHP 8.1 or later · curl / json extensionsPackagist · wsign/wsign-phpComing soon
Node.jsNode.js 18 or later · TypeScript definitions included · ESM / CommonJSnpm · @wsign/nodeComing soon
PythonPython 3.10 or later · no required dependenciesPyPI · wsignComing soon
iOSiOS 15 or later · Swift 5.9 or laterSwift Package · WsignSigningComing soon
AndroidAndroid 7.0 (minSdk 24) or later · Kotlin / JavaMaven Central · io.wsign:signingComing soon
The shared foundation: Each server library pins the header Wsign-Version: 2026-07-01 by default, and connects tohttps://wsign.io/api/v1, and authenticate through Authorization: Bearer sk_.... A live key sk_ actually sends and is billed, while its test version sk_test_ deducts no balance and sends no message to anyone. The two in-app signing libraries carry no key at all.
FAQs

Developer questions About the libraries.

Which languages and platforms are officially supported?

Five official libraries: server libraries (PHP · Node.js · Python) that call the full API, and two in-app signing libraries (iOS · Android) that show the signing page inside your app. The server libraries share the same resource interface and operation names, so what you learn in one language applies to the rest.

Are the libraries open source?

Yes, under the MIT licence. They are published on the github.com/wsign-io organization and the standard package registries (Packagist · npm · PyPI · Swift Package · Maven Central) at the official launch; until then, the GitHub and Package buttons on this page stay disabled.

How do the server libraries handle retries and safe repetition?

The library retries automatically (twice by default) on connection errors, timeouts and transient responses (429 or 5xx), with exponential backoff that honours the Retry-After header. It attaches an Idempotency-Key to every POST request and reuses it across its retries, so the same resource is never created twice, and you can pass your own key per call.

How do I pin the API version in the library?

The server libraries send the Wsign-Version: 2026-07-01 header pinned on every request, so responses keep their shape despite later updates. You can choose another version when you initialise the client, or for a single call after testing it.

What do the in-app signing libraries need from my server?

A signing link that your server creates with one of the server libraries or directly through the API; no key goes into the app. The library shows the page and reports the result to your app once, and the event notification that reaches your server is the final proof.

What are the minimum runtimes and the versioning policy?

PHP: PHP 8.1 or later · curl / json extensions; Node.js: Node.js 18 or later · TypeScript definitions included · ESM / CommonJS; Python: Python 3.10 or later · no required dependencies; iOS: iOS 15 or later · Swift 5.9 or later; Android: Android 7.0 (minSdk 24) or later · Kotlin / Java. All the libraries follow semantic versioning (SemVer): compatible additions in minor releases, and any breaking change in a new major release.

Sign your first document today through the API.

Until the libraries are published, call the API directly over HTTP and follow the quickstart guide to create your first signature request in minutes.