digisign

Czech electronic signature API integration for DigiSign. Use when the user needs to create, send, and manage digital signature envelopes, upload documents for signing, track signature status, or integrate embedded signing flows. Supports multiple signature types, webhooks for status tracking, and Czech Bank iD verification. Triggers on mentions of DigiSign, elektronicky podpis, digital signatures, envelope signing, or document signing workflows.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "digisign" with this command: npx skills add majncz/digisign-skill/majncz-digisign-skill-digisign

DigiSign API

Czech electronic signature service REST API integration. This skill provides both CLI scripts for quick operations and comprehensive API documentation for implementing DigiSign into your applications.

API Overview

Base URLs

EnvironmentURLPurpose
Productionhttps://api.digisign.orgLive operations
Staginghttps://api.staging.digisign.orgTesting (contact podpora@digisign.cz for access)
OpenAPI Docshttps://api.digisign.org/api/docsInteractive documentation
OpenAPI JSONhttps://api.digisign.org/api/docs.jsonImport to Postman

Authentication

DigiSign uses Bearer token authentication (RFC 6750).

Step 1: Exchange credentials for token

POST /api/auth-token
Content-Type: application/json

{
  "accessKey": "your-access-key",
  "secretKey": "your-secret-key"
}

Response:

{
  "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9...",
  "exp": 1682572132,
  "iat": 1682485732
}

Step 2: Use token in all subsequent requests

Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9...

Token is valid for ~24 hours. Get a new one when expired.

API Key Setup

  1. Log into DigiSign selfcare at https://app.digisign.org
  2. Go to Settings > For Developers > API Keys
  3. Click "New API Key" and configure permissions
  4. Save accessKey and secretKey securely (shown only once)

Response Formats

Pagination

All list endpoints return paginated responses:

{
  "items": [...],
  "count": 127,
  "page": 1,
  "itemsPerPage": 30
}

Query parameters:

  • page - Page number (default: 1)
  • itemsPerPage - Items per page (default: 30, max: 500)

Filtering

List endpoints support filter operators as query parameters:

OperatorExampleDescription
[eq]status[eq]=completedEquals
[neq]status[neq]=draftNot equals
[in]status[in][]=sent&status[in][]=completedIn array
[contains]name[contains]=contractContains string
[starts_with]email[starts_with]=johnStarts with
[gt]createdAt[gt]=2024-01-01Greater than
[gte]createdAt[gte]=2024-01-01Greater than or equal
[lt]validTo[lt]=2024-12-31Less than
[lte]validTo[lte]=2024-12-31Less than or equal

Sorting

order[createdAt]=desc
order[updatedAt]=asc

Available sort fields: createdAt, updatedAt, validTo, completedAt, cancelledAt, declinedAt

Error Responses

{
  "type": "https://tools.ietf.org/html/rfc2616#section-10",
  "title": "An error occurred",
  "status": 400,
  "violations": [
    {
      "propertyPath": "email",
      "message": "This value is not a valid email address."
    }
  ]
}

HTTP Status Codes

StatusMeaning
200Success
201Created
204No content (successful delete)
400Bad request - check violations field
401Authentication failed - get new token
403Forbidden - insufficient permissions
404Resource not found
422Validation error - check violations
429Rate limit exceeded

Important API Notes

  • Omitting an attribute in request body = don't change it (for updates)
  • Sending null = explicitly set to null (may error if not nullable)
  • HATEOAS: Responses include _actions and _links for navigation
  • Localization: Set Accept-Language: en|cs|sk|pl for localized error messages

Core Workflow

The typical envelope signing workflow has 7 steps:

#StepEndpoint
1AuthenticatePOST /api/auth-token
2Create envelopePOST /api/envelopes
3Add documentsPOST /api/files + POST /api/envelopes/{id}/documents
4Add recipientsPOST /api/envelopes/{id}/recipients
5Add signature tagsPOST /api/envelopes/{id}/tags or /tags/by-placeholder
6Send envelopePOST /api/envelopes/{id}/send
7Download signed docsGET /api/envelopes/{id}/download

Example: Create and Send Envelope

// 1. Authenticate
const tokenRes = await fetch('https://api.digisign.org/api/auth-token', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    accessKey: process.env.DIGISIGN_ACCESS_KEY,
    secretKey: process.env.DIGISIGN_SECRET_KEY
  })
});
const { token } = await tokenRes.json();

const headers = {
  'Authorization': `Bearer ${token}`,
  'Content-Type': 'application/json'
};

// 2. Create envelope
const envelopeRes = await fetch('https://api.digisign.org/api/envelopes', {
  method: 'POST',
  headers,
  body: JSON.stringify({
    name: 'Contract Agreement',
    emailBody: 'Please review and sign the attached contract.'
  })
});
const envelope = await envelopeRes.json();

// 3. Upload file
const formData = new FormData();
formData.append('file', fs.createReadStream('contract.pdf'));
const fileRes = await fetch('https://api.digisign.org/api/files', {
  method: 'POST',
  headers: { 'Authorization': `Bearer ${token}` },
  body: formData
});
const file = await fileRes.json();

// 4. Add document to envelope
await fetch(`https://api.digisign.org/api/envelopes/${envelope.id}/documents`, {
  method: 'POST',
  headers,
  body: JSON.stringify({
    file: `/api/files/${file.id}`,
    name: 'Contract'
  })
});

// 5. Add recipient
const recipientRes = await fetch(`https://api.digisign.org/api/envelopes/${envelope.id}/recipients`, {
  method: 'POST',
  headers,
  body: JSON.stringify({
    role: 'signer',
    name: 'John Doe',
    email: 'john@example.com'
  })
});
const recipient = await recipientRes.json();

// 6. Add signature tag (by placeholder)
await fetch(`https://api.digisign.org/api/envelopes/${envelope.id}/tags/by-placeholder`, {
  method: 'POST',
  headers,
  body: JSON.stringify({
    recipient: `/api/envelopes/${envelope.id}/recipients/${recipient.id}`,
    type: 'signature',
    placeholder: '{{sign_here}}',
    positioning: 'center'
  })
});

// 7. Send envelope
await fetch(`https://api.digisign.org/api/envelopes/${envelope.id}/send`, {
  method: 'POST',
  headers
});

Enums Reference

Envelope Statuses

StatusDescription
draftNot yet sent, can be edited
sentSent, waiting for signatures
completedAll recipients signed
expiredDeadline passed without completion
declinedSigner declined to sign
disapprovedApprover disapproved
cancelledCancelled by sender

Recipient Roles

RoleDescription
signerRemote signer - receives email with signing link
in_personSigns in person on intermediary's device
ccCopy recipient - receives completed documents only
approverApproves or rejects document
autosignAutomatic signature with company seal
semi_autosignTriggered automatic signature via API call

Recipient Statuses

StatusDescription
draftNot yet sent
sentInvitation sent
deliveredOpened the signing link
signedCompleted signing
declinedDeclined to sign
disapprovedDisapproved (for approvers)
cancelledCancelled
authFailedAuthentication failed (3 attempts exhausted)

Signature Types

TypeDescription
simpleSimple electronic signature
biometricHandwritten signature capture
bank_id_signBank iD Sign (qualified, Czech)
certificateCertificate-based signature

Authentication Methods

MethodDescription
noneNo authentication required
smsSMS code verification
bank_idBank iD verification (Czech national identity)

Tag Types

TypeDescription
signatureSignature field (required for signers)
approvalApproval stamp field
textText input field
documentID document photos field
attachmentFile attachment field
checkboxCheckbox field
radio_buttonRadio button (use with group)
date_of_signatureAuto-filled signature date

Tag Positioning

PositionDescription
top_leftTag top-left at placeholder top-left
top_centerTag top-center at placeholder top-center
top_rightTag top-right at placeholder top-right
middle_leftTag middle-left at placeholder middle-left
centerTag center at placeholder center
middle_rightTag middle-right at placeholder middle-right
bottom_leftTag bottom-left at placeholder bottom-left
bottom_centerTag bottom-center at placeholder bottom-center
bottom_rightTag bottom-right at placeholder bottom-right

Channels

ChannelDescription
emailNotifications via email
smsNotifications via SMS

Webhook Events

Envelope Events

EventDescription
envelopeSentEnvelope was sent
envelopeCompletedAll signatures completed
envelopeExpiredDeadline passed
envelopeDeclinedSigner declined
envelopeDisapprovedApprover disapproved
envelopeCancelledCancelled by sender
envelopeDeletedEnvelope deleted

Recipient Events

EventDescription
recipientSentInvitation sent to recipient
recipientDeliveredRecipient opened the link
recipientNonDeliveredDelivery failed (bad email, etc.)
recipientAuthFailedAuth attempts exhausted
recipientSignedRecipient signed
recipientDownloadedDownloaded completed docs
recipientDeclinedDeclined to sign
recipientDisapprovedDisapproved
recipientCanceledRecipient cancelled

Webhook Payload Format

{
  "id": "3974d252-b027-46df-9fd8-ddae54bc9ab9",
  "event": "envelopeCompleted",
  "name": "envelope.completed",
  "time": "2021-06-07T14:07:23+02:00",
  "entityName": "envelope",
  "entityId": "4fcf171c-4522-4a53-8a72-784e1dd36c2a",
  "data": {
    "status": "completed"
  }
}

Webhook Signature Verification

Header format: Signature: t={timestamp},s={signature}

import hmac
import hashlib
import time

def verify_webhook(signature_header, body, secret):
    # Parse header
    parts = dict(p.split('=') for p in signature_header.split(','))
    timestamp = int(parts['t'])
    signature = parts['s']

    # Check timestamp (5 minute window)
    if abs(time.time() - timestamp) > 300:
        raise Exception('Request too old - possible replay attack')

    # Verify signature
    expected = hmac.new(
        secret.encode(),
        f"{timestamp}.{body}".encode(),
        hashlib.sha256
    ).hexdigest()

    if not hmac.compare_digest(expected, signature):
        raise Exception('Invalid signature')

    return True

Webhook Retry Schedule

12 attempts over ~7 days if delivery fails:

Attempt123456-12
Delay5m10m30m1h2h24h each

CLI Scripts Reference

For quick operations, use the bundled Python scripts:

ScriptCommandsDescription
auth.pyget-token, status, clearToken management
envelope.pylist, get, create, update, delete, send, cancel, download, download-urlEnvelope operations
document.pyupload, add, list, get, update, delete, download, download-urlDocument management
recipient.pylist, add, get, update, delete, resend, autosignRecipient management
tag.pylist, add, add-by-placeholder, get, update, deleteSignature tag operations
webhook.pylist, create, get, update, delete, test, attempts, resend, verify-signatureWebhook management
embed.pyenvelope, recipient, signing, detailEmbedding URLs

Environment Variables

export DIGISIGN_ACCESS_KEY="your-access-key"
export DIGISIGN_SECRET_KEY="your-secret-key"
# Optional: use staging for testing
export DIGISIGN_API_URL="https://api.staging.digisign.org"

Quick Start with Scripts

# Authenticate
python scripts/auth.py get-token --save

# List envelopes
python scripts/envelope.py list

# Create and send envelope
python scripts/envelope.py create --name "Contract" --email-body "Please sign"
python scripts/document.py upload contract.pdf
python scripts/document.py add <envelope_id> --file-id <file_id> --name "Contract"
python scripts/recipient.py add <envelope_id> --role signer --name "John Doe" --email "john@example.com"
python scripts/tag.py add-by-placeholder <envelope_id> --recipient <rec_id> --type signature --placeholder "{{sign}}"
python scripts/envelope.py send <envelope_id> --yes

Czech-Specific Notes

Bank iD (Bankovni identita)

Czech national identity verification system through participating banks.

  • Use authenticationOnOpen: "bank_id" or authenticationOnSignature: "bank_id"
  • Verifies signer identity through their online banking
  • Required for qualified electronic signatures

Qualified Electronic Signature

For legally binding signatures in Czech Republic:

  • Set signatureType: "bank_id_sign"
  • Requires Bank iD verification
  • Compliant with eIDAS regulation

Audit Log (Protokol)

Every envelope includes a detailed audit log:

  • Download with GET /api/envelopes/{id}/download?include_log=true
  • Or get only the log: GET /api/envelopes/{id}/download?output=only_log

Timestamping

Enable qualified timestamps on documents:

  • Set timestampDocuments: true in envelope properties
  • Available authorities: ica_tsa (I.CA)

Cost Warning

DigiSign charges per envelope sent. These operations are FREE:

  • Creating/editing draft envelopes
  • Uploading documents
  • Managing recipients and tags
  • Webhook setup
  • Generating embed URLs
  • Listing and reading resources

BILLING TRIGGER: POST /api/envelopes/{id}/send - sends real emails and incurs charges.

References

Detailed documentation for each resource:

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

fakturoid

No summary provided by upstream source.

Repository SourceNeeds Review
General

teya

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

clinic-visit-prep

帮助患者整理就诊前问题、既往记录、检查清单与时间线,不提供诊断。;use for healthcare, intake, prep workflows;do not use for 给诊断结论, 替代医生意见.

Archived SourceRecently Updated