Μετάβαση στο κύριο περιεχόμενο
Certyneo
Δημόσιο API v1

Ενσωματώστε την ηλεκτρονική υπογραφή στο stack σας

Στείλτε φακέλους, παρακολουθήστε υπογραφές, λάβετε webhooks. Απλό REST API, OpenAPI 3.0, παραδείγματα curl/Node/Python — όλα όσα χρειάζεστε για να συνδέσετε τη Certyneo στο HRIS, CRM ή λογισμικό ενδοεπιχείρησής σας σε λίγες ώρες.

Γρήγορη έναρξη

Τρία βήματα: δημιουργήστε ένα API key από τις ρυθμίσεις, κωδικοποιήστε το PDF σας σε base64, στείλτε. Η απάντηση περιέχει το `signUrl` που μπορείτε να μοιράσετε απευθείας στον παραλήπτη.

cURLbash
# 1. Upload the PDF (multipart) and capture the returned document id.
DOC_ID=$(curl -s -X POST https://certyneo.com/api/v1/documents \
  -H "Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxxxxxx" \
  -F "file=@contrat.pdf" | jq -r .id)

# 2. Create a DRAFT envelope referencing the uploaded document.
ENV_ID=$(curl -s -X POST https://certyneo.com/api/v1/envelopes \
  -H "Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d "{
    \"subject\": \"Contrat de prestation\",
    \"documentIds\": [\"$DOC_ID\"],
    \"recipients\": [
      { \"email\": \"client@example.com\", \"name\": \"Marie Dubois\", \"role\": \"SIGNER\" }
    ]
  }" | jq -r .id)

# 3. Dispatch the envelope — this sends the invitation email/SMS.
curl -X POST https://certyneo.com/api/v1/envelopes/$ENV_ID/send \
  -H "Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript / Nodets
// npm install @certyneo/sdk  (or call fetch directly)
const auth = { Authorization: `Bearer ${process.env.CERTYNEO_API_KEY}` };

// 1. Upload the PDF (multipart).
const fd = new FormData();
fd.append("file", new Blob([pdfBuffer], { type: "application/pdf" }), "contrat.pdf");
const doc = await fetch("https://certyneo.com/api/v1/documents", {
  method: "POST", headers: auth, body: fd,
}).then((r) => r.json());

// 2. Create the DRAFT envelope.
const envelope = await fetch("https://certyneo.com/api/v1/envelopes", {
  method: "POST",
  headers: { ...auth, "Content-Type": "application/json" },
  body: JSON.stringify({
    subject: "Contrat de prestation",
    documentIds: [doc.id],
    recipients: [
      { email: "client@example.com", name: "Marie Dubois", role: "SIGNER" },
    ],
  }),
}).then((r) => r.json());

// 3. Dispatch — this triggers the invitation channel for every recipient.
await fetch(`https://certyneo.com/api/v1/envelopes/${envelope.id}/send`, {
  method: "POST", headers: auth,
});
console.log(envelope.id);
Pythonpython
import os, requests

auth = {"Authorization": f"Bearer {os.environ['CERTYNEO_API_KEY']}"}

# 1. Upload the PDF (multipart).
with open("contrat.pdf", "rb") as f:
    doc = requests.post(
        "https://certyneo.com/api/v1/documents",
        headers=auth,
        files={"file": ("contrat.pdf", f, "application/pdf")},
    ).json()

# 2. Create the DRAFT envelope.
envelope = requests.post(
    "https://certyneo.com/api/v1/envelopes",
    headers={**auth, "Content-Type": "application/json"},
    json={
        "subject": "Contrat de prestation",
        "documentIds": [doc["id"]],
        "recipients": [
            {"email": "client@example.com", "name": "Marie Dubois", "role": "SIGNER"},
        ],
    },
).json()

# 3. Dispatch — this triggers the invitation channel for every recipient.
requests.post(
    f"https://certyneo.com/api/v1/envelopes/{envelope['id']}/send",
    headers=auth,
)
print(envelope["id"])

Φάκελοι

Δημιουργία, αποστολή, παρακολούθηση κατάστασης, ακύρωση. Ένας φάκελος μπορεί να περιέχει πολλά έγγραφα και πολλούς υπογράφοντες (παράλληλα ή διαδοχικά).

Δικτυακά δίκτυα

Λάβετε `envelope.created`, `envelope.completed`, `envelope.declined` στο URL της επιλογής σας. HMAC SHA-256 σε κάθε payload για επαλήθευση της προέλευσης.

Απλή αυθεντικοποίηση

Bearer token. Ένα κλειδί ανά περιβάλλον (test / prod). Ανακλητό αμέσως. Όριο 100 req/min/κλειδί, burst 200, 429 καθαρή με κεφαλίδα Retry-After.

Διαθέσιμα Endpoints

12 διαδρομές που καλύπτουν τον πλήρη κύκλο: envelopes, documents, webhooks, API κλειδιά. Όλες οι διαδρομές δέχονται Bearer token και επιστρέφουν JSON.

MethodPathDescription
POST/api/v1/documentsUpload a PDF (multipart) — returns document id
GET/api/v1/documentsList documents
GET/api/v1/documents/{id}Fetch document metadata
DELETE/api/v1/documents/{id}Delete document
GET/api/v1/envelopesList envelopes
POST/api/v1/envelopesCreate envelope (status: DRAFT)
GET/api/v1/envelopes/{id}Fetch envelope state
PATCH/api/v1/envelopes/{id}Update DRAFT envelope
DELETE/api/v1/envelopes/{id}Void / delete DRAFT envelope
POST/api/v1/envelopes/{id}/sendDispatch DRAFT — sends invitations
GET/api/v1/envelopes/{id}/audit-trailDownload eIDAS audit-trail PDF
GET/api/v1/envelopes/{id}/signed-documentDownload signed PDF (once COMPLETED)
GET/api/v1/webhooksList webhooks
POST/api/v1/webhooksRegister webhook
DELETE/api/v1/webhooks/{id}Unregister
GET/api/v1/keysList API keys
POST/api/v1/keysCreate API key
DELETE/api/v1/keys/{id}Revoke key

Όρια ταχύτητας

Τα όρια εγγυώνται σταθερή ποιότητα υπηρεσίας για όλους τους πελάτες. Αν χρειάζεστε περισσότερα, επικοινωνήστε με ημάς.

  • 100 αιτήματα ανά λεπτό ανά API κλειδί
  • Burst ανεκτό έως 200 αιτήματα σε λιγότερο από 10s
  • Απάντηση 429 με κεφαλίδα Retry-After που υποδεικνύει την καθυστέρηση σε δευτερόλεπτα