Electronic Signature API: REST Developer Guide 2026
Integrating an electronic signature API into your business application has never been more strategic. This developer guide covers authentication, webhooks and eIDAS compliance from A to Z.
Certyneo Team
Writer — Certyneo · About Certyneo
Introduction
The integration of a REST electronic signature API has become an essential prerequisite for development teams in 2026. With more than 73% of European companies having digitized at least one contractual process (source: IDC European Digital Transformation Report 2025), the demand for robust technical integrations is exploding. Whether you are building a LegalTech SaaS, an ERP or an HR platform, understanding how to consume an electronic signature API — OAuth2 authentication, webhook management, eIDAS compliance — directly determines the quality and legal value of your document flows. This REST developer guide takes you step by step: architecture, authentication, document lifecycle, real-time webhooks and security best practices.
---
Architecture of a REST Electronic Signature API
RESTful principles and endpoint structure
A well-designed REST electronic signature API is based on clearly identified resources and semantic HTTP verbs. The fundamental resources are generally:
- `/documents` — upload, management and retrieval of PDF/DOCX documents
- `/signature-requests` — creation and management of signature requests
- `/signatories` — management of signatories and their identities
- `/audit-trails` — retrieval of certified audit logs
- `/templates` — management of reusable document templates
Each resource exposes standard CRUD endpoints (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`) and returns JSON responses with standardized HTTP codes: `200 OK`, `201 Created`, `400 Bad Request`, `401 Unauthorized`, `422 Unprocessable Entity`, `429 Too Many Requests`.
A critical aspect often overlooked: pagination management. Mature APIs use cursor-based pagination rather than offset/limit, which guarantees stable performance even with thousands of signed documents. Verify that the target API exposes an `X-Next-Cursor` header or a `next_page_token` field in the body.
API versioning and backwards compatibility
Versioning is a major point of vigilance for integrators. The two dominant approaches in 2026 are:
- URL versioning: `https://api.certyneo.com/v2/signature-requests` — readable, cacheable by CDNs, recommended for B2B APIs.
- Header versioning: `Accept: application/vnd.certyneo.v2+json` — architecturally cleaner but less visible.
Prioritize vendors who commit to a minimum deprecation policy of 12 months and who publish a public changelog. An unannounced compatibility break in your signature flow can have direct legal consequences (unsigned contracts, missed deadlines).
---
OAuth2 Authentication and API Call Security
OAuth2: client_credentials vs authorization_code flows
Authentication is the cornerstone of any electronic signature API integration. The two most relevant OAuth2 flows for developers are:
Client Credentials Flow (M2M — Machine to Machine): ``` POST /oauth/token Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials &client_id=YOUR_CLIENT_ID &client_secret=YOUR_CLIENT_SECRET &scope=documents:write signature_requests:write audit_trails:read ``` This flow is ideal for server-to-server integrations where no end user is involved in authentication (batch processing, contract automation).
Authorization Code Flow + PKCE: recommended when your application acts on behalf of an identified end user. PKCE (Proof Key for Code Exchange) has been mandatory since RFC 7636 and protects against interception attacks.
Essential security tips:
- Store `client_secret` in a vault (HashiCorp Vault, AWS Secrets Manager) — never in an unencrypted environment variable
- Implement automatic token rotation with a 60-second buffer before expiration
- Use granular scopes: only request strictly necessary permissions
API key management and rate limiting
For lightweight integrations or test environments, some APIs offer static API keys (Bearer Token). If you use them in production, systematically apply:
- Quarterly key rotation
- Restriction by IP (allowlist)
- Monitoring of abnormal calls via your SIEM
Rate limiting is an inevitable reality: signature APIs generally limit between 100 and 1000 calls/minute depending on the plan. Implement an exponential retry mechanism with jitter: ``` retry_delay = base_delay * (2^attempt) + random_jitter ``` Scrupulously respect the `Retry-After` header returned with `429 Too Many Requests`.
---
Lifecycle of a Signature Request via API
Creating and configuring a signature request
The lifecycle of a signature request via REST API follows a state schema (`draft` → `pending` → `in_progress` → `completed` | `declined` | `expired`). Here are the detailed technical steps:
Step 1 — Document upload: ``` POST /v2/documents Content-Type: multipart/form-data
file=@contrat.pdf ``` Response: `{ "document_id": "doc_a1b2c3", "checksum_sha256": "e3b0c442..." }`
Step 2 — Creating the request: ```json POST /v2/signature-requests { "document_id": "doc_a1b2c3", "name": "Service agreement Q3 2026", "signatories": [ { "email": "signatory@client.fr", "first_name": "Marie", "last_name": "Dupont", "signature_level": "advanced", "fields": [{ "type": "signature", "page": 3, "x": 120, "y": 680 }] } ], "expiry_date": "2026-06-05T23:59:59Z", "reminder_settings": { "enabled": true, "frequency_days": 3 } } ```
Step 3 — Activation: `POST /v2/signature-requests/req_x9y8z7/activate`
Once activated, signatories receive their invitations and the request moves to `in_progress` state.
Retrieving the signed document and audit trail
Once the `completed` status is reached (detectable via webhook — see next section), retrieve:
``` GET /v2/signature-requests/req_x9y8z7/document/signed → PDF signed with embedded electronic signatures (PAdES-B-T per ETSI EN 319 132)
GET /v2/signature-requests/req_x9y8z7/audit-trail → PDF of certified audit log (RFC 3161 qualified timestamp) ```
Always store both files together in your DMS or document management system. The audit log is the proof that can be used if the signature is contested legally.
---
Webhooks: Real-Time Events and Error Handling
Configuration and securing webhooks
Webhooks transform your integration from costly polling into a reactive event-driven architecture. Configure your webhook endpoint:
``` POST /v2/webhooks { "url": "https://your-app.com/hooks/certyneo", "events": [ "signature_request.completed", "signature_request.declined", "signatory.signed", "signature_request.expired" ], "secret": "whsec_your_hmac_secret" } ```
Mandatory HMAC security: validate each incoming payload by comparing the calculated HMAC-SHA256 signature with the `X-Certyneo-Signature` header: ```python import hmac, hashlib
def verify_webhook(payload: bytes, secret: str, signature_header: str) -> bool: expected = hmac.new( secret.encode(), payload, hashlib.sha256 ).hexdigest() return hmac.compare_digest(f"sha256={expected}", signature_header) ``` Never use a plain string comparison — vulnerable to timing attacks.
Idempotence and handling redeliveries
Webhooks can be redelivered in case of timeout or 5xx error from your endpoint. Implement idempotence mandatorily:
- Extract the unique `event_id` from each webhook payload
- Check in your database if this `event_id` has already been processed
- Return `200 OK` immediately (even for duplicates) to avoid infinite redeliveries
- Treat business logic asynchronously (queue: Redis, RabbitMQ, SQS)
Golden rule: your webhook endpoint must respond in less than 5 seconds. All heavy business logic (sending emails, DMS archival, ERP notification) must be delegated to an asynchronous worker.
To deepen your understanding of the signature levels available via API, consult our complete electronic signature guide which details the differences between simple, advanced and qualified signatures.
---
Integration Best Practices and Performance
Sandbox environments and testing strategy
Any serious electronic signature API offers an isolated sandbox environment separate from production. Adopt this testing strategy:
- Unit tests: mock API responses (Wiremock, MSW) to validate your business logic without network dependency
- Integration tests: run against the real sandbox to validate the complete lifecycle (creation → signature → retrieval)
- Load tests: simulate peaks of simultaneous requests to identify your bottlenecks before production deployment
- Chaos tests: simulate timeouts and 5xx errors to validate your retry logic
Never test in production with real signatory identities. Electronic signatures created in sandbox have no legal value, which is exactly what you want for your tests.
Monitoring, observability and alerting
In production, instrument your integration with:
- Metrics: API call success rate, p95/p99 latency, error rate by endpoint
- Distributed traces: propagate `trace-id` in your headers to correlate your logs with the API provider's logs
- Alerting: trigger an alert if the error rate exceeds 1% or if p99 latency exceeds 3 seconds
Consult our electronic signature solutions comparison to evaluate the availability SLAs (uptime) offered by different providers — a criterion often underestimated during API integration.
If you are migrating from another platform, our guide on how to migrate from DocuSign or YouSign to Certyneo covers the technical aspects of API migration and compatibility of existing webhooks.
To estimate the return on investment of your integration, use our electronic signature ROI calculator which includes productivity gains from API-driven automation.
Finally, if you want to go further in automated document generation for signing, discover our AI contract generator which natively interfaces with our REST API.
Legal Framework Applicable to Electronic Signature API
The integration of an electronic signature API goes beyond a technical challenge: it directly engages the legal responsibility of the editor and its clients on several fundamental texts.
Regulation eIDAS No. 910/2014 and eIDAS 2.0
Regulation (EU) No. 910/2014 (eIDAS) establishes the legal framework for electronic signatures in the European Union. It distinguishes three levels:
- Simple electronic signature (SES): minimal legal value, suitable for low-risk acts
- Advanced electronic signature (AES): uniquely linked to the signatory, created from data under their exclusive control — article 26 eIDAS
- Qualified electronic signature (QES): equivalent to a handwritten signature throughout the EU — article 25 §2 eIDAS
With the progressive implementation of eIDAS 2.0 Regulation (EU Regulation 2024/1183), developers must anticipate the integration of European Digital Identity Wallets (EUDIW) into their authentication flows. Consult our eIDAS 2.0 guide for detailed technical implications.
French Civil Code — Articles 1366 and 1367
Under French law, article 1366 of the Civil Code states that "electronic writing has the same probative value as writing on paper, provided that the person from whom it emanates can be duly identified and that it is established and kept in conditions likely to guarantee its integrity".
Article 1367 specifies the conditions for reliable electronic signatures: identification of the signatory and guarantee of document integrity. These requirements translate technically into the obligation to preserve certified audit logs and proof of identity used during signature — elements that your API must expose and that you must store.
ETSI EN 319 132 standards — PAdES
The technical format required for eIDAS-compliant PDF signatures is PAdES (PDF Advanced Electronic Signatures), defined by ETSI EN 319 132. Your API must produce PAdES-B-T signatures (with timestamp) at minimum, and PAdES-B-LT or PAdES-B-LTA to guarantee long-term validity (archival 10+ years).
GDPR No. 2016/679 — Signatory data
Personal data collected during the signature process (name, first name, email, IP address, identity data for AES/QES) constitutes personal data subject to GDPR. Your obligations as a data controller or processor include:
- Define a justified data retention period (generally aligned with prescription deadlines: 5 years under common law)
- Provide a automatic purging mechanism via API (`DELETE /v2/signature-requests/{id}/personal-data`)
- Document the processing in your activity log register (article 30 GDPR)
- Conclude a DPA (Data Processing Agreement) with your signature API provider
NIS2 Directive and service continuity
For software editors qualified as essential or important entities under the NIS2 Directive (2022/2555), the integration of a third-party API creates a dependency that must be documented in your supply chain cyber risk analysis. Require your API provider to have SOC 2 Type II certification and an uptime SLA ≥ 99.9%.
Usage Scenarios: Electronic Signature API in Practice
Scenario 1 — Automating supplier contracts in an industrial SME
An industrial SME managing about 200 supplier contracts per year wanted to eliminate back-and-forth paper and manual follow-ups that consumed 2 days per month of an administrative assistant's time. The development team integrated the REST electronic signature API directly into their business ERP through the following flow:
- When a purchase order is validated in the ERP, a `POST /v2/signature-requests` call is triggered automatically
- The generated PDF contract is uploaded and a signature request is sent to the referenced supplier contact
- A `signatory.signed` webhook updates the purchase order status in real time
- The signed document and audit log are automatically archived in the DMS via a second API call
Results observed (range from KPMG/IDC sector reports 2024-2025): reduction in average signature time from 8 days to less than 24 hours, estimated savings of 60-70% of administrative time spent on follow-ups, and zero document loss.
Scenario 2 — LegalTech platform for law firms
A software editor developing a SaaS solution for law firms with 5 to 30 staff integrated the electronic signature API to allow its end users to have mandates, fee agreements and procedural documents signed directly from the firm interface.
The technical architecture chosen uses the OAuth2 Authorization Code + PKCE flow so that each lawyer authenticates requests in their own name. The `signature_request.completed` webhooks automatically trigger the deposit of the signed document into the client file of the legal DMS.
The editor particularly valued the availability of advanced electronic signatures (AES) via API — the level required for fee agreements according to the recommendations of the National Bar Council. The initial integration development time was approximately 3 weeks for a senior backend developer, with 85% test coverage.
Scenario 3 — Digital onboarding in a group of private clinics
A group of private clinics with approximately 600 beds needed to dematerialize informed consent forms and admission contracts, which until then were printed and manually signed at reception — generating printing costs estimated at several thousand euros per year and waiting times at reception.
The API integration connected the hospital information system (HIS) to the electronic signature platform. Upon patient registration, the HIS calls the API to create a multi-party signature request (patient + referring physician) with automatic positioning of signature fields calculated from template metadata.
GDPR compliance required the implementation of automatic scheduled purging via API (`PATCH /v2/signature-requests` + deletion confirmation webhook) aligned with legal retention periods for medical records (20 years for adults, according to article R. 1112-7 of the Public Health Code). Measured gains reached an 80% reduction in admission wait time and 40% savings in printing and digitization costs.
Conclusion
Integrating a REST electronic signature API in 2026 requires simultaneous mastery of several dimensions: robust RESTful architecture, secure OAuth2 authentication, event-driven management via webhooks, and compliance with eIDAS and GDPR requirements. Developers who anticipate these issues from the design of their integration save themselves costly refactoring and major legal risks.
The three pillars to remember: secure your API calls (OAuth2 + minimal scopes + vault), process events asynchronously and idempotently via webhooks, and systematically archive the signed document with its certified audit log.
Certyneo provides a documented REST API, eIDAS compliant, with free sandbox and dedicated developer technical support. Create your Certyneo account to access your sandbox API key and start your integration today.
Try Certyneo for free
Send your first signature envelope in less than 5 minutes. 5 free envelopes per month, no credit card required.
Recommended articles
Deepen your knowledge with these articles related to the topic.
Electronic Signature as Legal Evidence in Litigation
Does a contract signed electronically really hold up in a French court? Complete breakdown of the evidentiary value of electronic signature in litigation situations.
Electronic Signature for B2C Contracts: Validity in 2026
Electronic signature in B2C contracts raises specific questions about legal validity and customer consent collection. Here is everything you need to know for 2026.
Electronic Signature in the Public Sector: 2026 Guide
Since 2020, electronic signature has been mandatory in public procurement above certain thresholds. Discover the rules, required levels, and how to bring your administration into compliance.