Developers

REST API v1

Base URL https://sign.myscottygov.com/api/v1. Authenticate with Authorization: Bearer ssk_… (create keys under Settings). JSON in, JSON out. Field coordinates are fractions of the page (0–1) from the top-left.

Create and send an envelope

POST /api/v1/envelopes
{
  "subject": "Master Services Agreement",
  "message": "Please sign by Friday.",
  "documents": [{"name": "msa.pdf", "base64": "JVBERi0x..."}],
  "recipients": [
    {"name": "Jane Doe", "email": "jane@agency.gov", "role": "signer", "routing_order": 1, "verify_level": "email_otp"},
    {"name": "Legal", "email": "legal@performa.com", "role": "cc"}
  ],
  "fields": [
    {"document_index": 0, "recipient_index": 0, "type": "signature", "page": 2, "x": 0.1, "y": 0.72, "w": 0.3, "h": 0.06},
    {"document_index": 0, "recipient_index": 0, "type": "date_signed", "page": 2, "x": 0.45, "y": 0.72, "w": 0.18, "h": 0.04}
  ],
  "status": "sent"
}

With "template_id" instead of documents and fields, the template's documents, roles and fields are copied; your subject and message, when given, replace the template's. Optional "source" (your app's tag, e.g. "flow") and "external_id" (your record's id) are stored on the envelope and returned by the envelope endpoints.

Other endpoints

GET /envelopes?status=&q=&source=&external_id=&limit=List envelopes (filter by status, subject words, your app's source tag or your record id)
GET /envelopes/{id}Detail with recipients, fields, documents and signing URLs
POST /envelopes/{id}/send · /remind · /voidLifecycle actions
GET /envelopes/{id}/documents/combined?certificate=true&format=base64Current or completed PDF
GET /envelopes/{id}/certificateCertificate of completion PDF
GET /envelopes/{id}/audit_eventsHash-chained audit trail
GET /envelopes/{id}/recipients/{rid}/viewSigning URL for embedded signing
GET /templates · POST /envelopes {"template_id": …}Templates
GET /search?q= · GET /documents/{id}/textFull-text search and document text
POST /verify (no auth)Check a PDF against completed documents

Webhooks

Set a URL in Settings. Events: envelope.sent, recipient.signed, envelope.completed, envelope.declined, envelope.voided, envelope.expired. Each POST carries X-ScottySign-Signature: sha256=HMAC(secret, body). Retried with backoff up to 6 times.

Claude / MCP

MCP endpoint: POST https://sign.myscottygov.com/mcp with the same bearer key (Streamable HTTP, JSON responses).