Elektronik imzayı stack'inize entegre edin
Zarfları gönderin, imzaları takip edin, webhooks alın. Basit REST API, OpenAPI 3.0, curl/Node/Python örnekleri — Certyneo'yu HRIS, CRM veya iş yazılımınıza birkaç saatte bağlamak için gereken her şey.
Hızlı Başlangıç
Üç adım: ayarlardan bir API anahtarı oluşturun, PDF'nizi base64 olarak kodlayın, gönderin. Yanıt, alıcıya doğrudan paylaşabileceğiniz `signUrl` içerir.
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"])Zarflar
Oluşturma, gönderme, durum takibi, iptal. Bir zarfta birden fazla belge ve birden fazla imzacı (paralel veya sıralı) yer alabilir.
Webhooks
Seçtiğiniz URL'ye `envelope.created`, `envelope.completed`, `envelope.declined` alın. Kaynağı doğrulamak için her payload'da HMAC SHA-256.
Basit Kimlik Doğrulama
Bearer token. Her ortam için bir anahtar (test/prod). Anında iptal edilebilir. 100 istek/dakika/anahtar sınırı, 200 burst, temiz 429 Retry-After başlığıyla.
Kullanılabilir Uç Noktalar
Tam döngüyü kapsayan 12 rota: zarflar, belgeler, webhooks, API anahtarları. Tüm rotalar Bearer token kabul eder ve JSON döndürür.
| 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 |
Hız Limitleri
Limitler tüm müşteriler için istikrarlı bir hizmet kalitesi garantisi verir. Daha fazlasına ihtiyacınız varsa bize ulaşın.
- • API anahtarı başına dakikada 100 istek
- • 10 saniyeden az sürede 200 isteğe kadar burst toleransı
- • Saniye cinsinden gecikme süresini gösteren Retry-After başlığıyla 429 yanıtı