Integra la firma elettronica nel tuo stack
Invia buste, traccia le firme, ricevi webhook. API REST semplice, OpenAPI 3.0, esempi curl/Node/Python — tutto per collegare Certyneo al tuo HRIS, CRM o software gestionale in poche ore.
Avvio rapido
Tre passaggi: crea una chiave API dalle impostazioni, codifica il tuo PDF in base64, invia. La risposta contiene l'`signUrl` che puoi condividere direttamente con il destinatario.
curl -X POST https://certyneo.com/api/v1/envelopes \
-H "Authorization: Bearer ck_live_xxxxxxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"subject": "Contrat de prestation",
"signers": [
{ "email": "[email protected]", "name": "Marie Dubois" }
],
"documents": [
{ "name": "contrat.pdf", "base64Pdf": "<base64>" }
]
}'// npm install @certyneo/sdk (or call fetch directly)
const r = await fetch("https://certyneo.com/api/v1/envelopes", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.CERTYNEO_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
subject: "Contrat de prestation",
signers: [{ email: "[email protected]", name: "Marie Dubois" }],
documents: [{ name: "contrat.pdf", base64Pdf }],
}),
});
const envelope = await r.json();
console.log(envelope.id, envelope.signers[0].signUrl);import requests, base64, os
with open("contrat.pdf", "rb") as f:
base64_pdf = base64.b64encode(f.read()).decode()
r = requests.post(
"https://certyneo.com/api/v1/envelopes",
headers={"Authorization": f"Bearer {os.environ['CERTYNEO_API_KEY']}"},
json={
"subject": "Contrat de prestation",
"signers": [{"email": "[email protected]", "name": "Marie Dubois"}],
"documents": [{"name": "contrat.pdf", "base64Pdf": base64_pdf}],
},
)
envelope = r.json()
print(envelope["id"], envelope["signers"][0]["signUrl"])Buste
Creazione, invio, tracciamento dello stato, annullamento. Una busta può contenere più documenti e più firmatari (parallelo o sequenziale).
Webhook
Ricevi `envelope.created`, `envelope.completed`, `envelope.declined` all'URL di tua scelta. HMAC SHA-256 su ogni payload per verificare l'origine.
Autenticazione semplice
Bearer token. Una chiave per ambiente (test / prod). Revocabile istantaneamente. Limite 100 req/min/chiave, burst di 200, 429 pulito con header Retry-After.
Endpoint disponibili
12 rotte che coprono il ciclo completo: buste, documenti, webhook, chiavi API. Tutte le rotte accettano un Bearer token e restituiscono JSON.
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/envelopes | List envelopes |
| POST | /api/v1/envelopes | Create + send |
| GET | /api/v1/envelopes/{id} | Fetch state |
| DELETE | /api/v1/envelopes/{id} | Void |
| POST | /api/v1/envelopes/{id}/send | Re-trigger send |
| GET | /api/v1/documents | List documents |
| GET | /api/v1/webhooks | List webhooks |
| POST | /api/v1/webhooks | Register webhook |
| DELETE | /api/v1/webhooks/{id} | Unregister |
| GET | /api/v1/keys | List API keys |
| POST | /api/v1/keys | Create API key |
| DELETE | /api/v1/keys/{id} | Revoke key |
Limiti di velocità
I limiti garantiscono una qualità del servizio stabile per tutti i clienti. Se hai bisogno di più, contattaci.
- • 100 richieste per minuto per chiave API
- • Burst tollerato fino a 200 richieste in meno di 10s
- • Risposta 429 con header Retry-After che indica il ritardo in secondi