TEDEKSTRA E-Sign Developer Guide

Automate PDF uploads, template dispatch, signer reminders, sealed downloads, and signed webhooks over HTTPS.

REST API Quickstart Guide

How to use your API key

Send your API key in the Authorization request header with the prefix Bearer. All endpoints accept and return JSON.

Interactive Swagger Docs

Your API Base URL

https://sign.yourcompany.co.uk/api/backend/v1

Preview & Test with Your Key (Not Saved in Browser)

Step 1 · Verify authentication & active workspace

Confirm your key works and see which permission scopes it holds before automating workflows.

GET /v1/me
curl -X GET "https://sign.yourcompany.co.uk/api/backend/v1/me" \
  -H "Authorization: Bearer tedekstra_live_YOUR_PREFIX_YOUR_SECRET"

Step 2 · Easiest flow: Send from a reusable template

Design your PDF fields once inside the Templates studio, then send documents with a single API call by passing recipient names and email addresses.

POST /v1/templates/:templateId/instantiate
curl -X POST "https://sign.yourcompany.co.uk/api/backend/v1/templates/tpl_YOUR_TEMPLATE_ID/instantiate" \
  -H "Authorization: Bearer tedekstra_live_YOUR_PREFIX_YOUR_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Employment Offer - Jane Doe",
    "routing": "sequential",
    "signatureLevel": "AES",
    "sendImmediately": true,
    "assignments": [
      {
        "roleKey": "signer1",
        "name": "Jane Doe",
        "email": "jane.doe@example.co.uk",
        "requireOtp": true
      }
    ]
  }'

Step 3 · Upload a custom PDF & place signature boxes

For one-off dynamic PDFs generated by your app, upload the PDF first to receive a file ID (fil_...), then create and send the envelope.

POST /v1/files
curl -X POST "https://sign.yourcompany.co.uk/api/backend/v1/files" \
  -H "Authorization: Bearer tedekstra_live_YOUR_PREFIX_YOUR_SECRET" \
  -F "file=@./contract.pdf;type=application/pdf"
POST /v1/envelopes
curl -X POST "https://sign.yourcompany.co.uk/api/backend/v1/envelopes" \
  -H "Authorization: Bearer tedekstra_live_YOUR_PREFIX_YOUR_SECRET" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-9841" \
  -d '{
    "title": "Vendor NDA",
    "sourceFileId": "fil_YOUR_FILE_ID",
    "routing": "sequential",
    "signatureLevel": "SES",
    "sendImmediately": true,
    "recipients": [
      { "name": "Sam Patel", "email": "sam@vendor.co.uk", "role": "signer", "routingOrder": 1 }
    ],
    "fields": [
      {
        "recipientIndex": 0,
        "kind": "signature",
        "label": "Vendor Signature",
        "required": true,
        "geometry": {
          "v": 3,
          "fileId": "fil_YOUR_FILE_ID",
          "page": 0,
          "x": 0.12,
          "y": 0.72,
          "w": 0.30,
          "h": 0.08,
          "rotation": 0,
          "pageBox": { "w": 595.28, "h": 841.89 }
        }
      }
    ]
  }'

Step 4 · Check signing status & download sealed PDF

Fetch the finished PAdES-signed PDF as soon as all recipients complete signing.

GET /v1/envelopes/:id & .../documents/final
# 1. Check agreement status
curl -X GET "https://sign.yourcompany.co.uk/api/backend/v1/envelopes/env_YOUR_ENVELOPE_ID" \
  -H "Authorization: Bearer tedekstra_live_YOUR_PREFIX_YOUR_SECRET"

# 2. Download final sealed PDF once status is "completed"
curl -X GET "https://sign.yourcompany.co.uk/api/backend/v1/envelopes/env_YOUR_ENVELOPE_ID/documents/final" \
  -H "Authorization: Bearer tedekstra_live_YOUR_PREFIX_YOUR_SECRET" \
  --output signed-contract.pdf

Step 5 · Receive real-time webhooks & verify signatures

Register a webhook endpoint so TEDEKSTRA notifies your server automatically when someone signs or declines. Always verify the tdk-signature header.

POST /v1/webhook-endpoints
curl -X POST "https://sign.yourcompany.co.uk/api/backend/v1/webhook-endpoints" \
  -H "Authorization: Bearer tedekstra_live_YOUR_PREFIX_YOUR_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://your-app.co.uk/webhooks/tedekstra",
    "events": ["envelope.completed", "envelope.declined", "recipient.signed"]
  }'

Security Best Practices

• Never embed tedekstra_live_ keys inside browser JavaScript, mobile apps, or public GitHub repos — call our API from your backend server only.

• Include an Idempotency-Key header on POST /v1/envelopes retries so network glitches never send duplicate agreements.

• Keep test keys (tedekstra_test_) for staging and rotate keys immediately from the API Keys page if exposed.