Skip to main content

Partner Integration

Partners integrate with Loyva by using API keys to authenticate server-to-server requests. Partner endpoints are scoped and isolated — you can only access resources within your organization.

Integration architecture

┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐
│ Partner Backend │ │ Loyva API │ │ Loyva Vault │
│ │ │ │ │ │
│ X-API-Key: lk_.. │────────>│ /partner/* │────────>│ Storage │
│ │<────────│ Scoped by org │<────────│ Compliance │
│ │ │ │ │ │
└──────────────────┘ └──────────────────┘ └──────────────────┘
│ │
│ Webhook events │ Embed tokens (in progress)
│<────────────────────────────│
│ │
│ ┌──────────────────┐│
│ │ User's Browser ││
│────────>│ Loyva signing │<─────────────────────
│ iframe (WIP) │ iframe
└──────────────────┘

What you get

The full e-sign + e-vault lifecycle is exposed via REST. Embed widgets are an additional UI layer — see the note at the bottom.

E-sign + envelope lifecycle

FeatureEndpointScope required
Create e-sign envelopePOST /partner/envelopesenvelopes:write
Create paper envelopePOST /partner/envelopes (envelope_kind: paper)envelopes:write
Upload pre-signed PDFPOST /partner/envelopes/:id/uploadenvelopes:write
List envelopesGET /partner/envelopesenvelopes:read
Check statusGET /partner/envelopes/:id/statusenvelopes:read
Get signing linksGET /partner/envelopes/:id/signing-linksenvelopes:read
Send remindersPOST /partner/envelopes/:id/remindenvelopes:write
Void / cancelPOST /partner/envelopes/:id/voidenvelopes:write

E-vault — vault-in, retrieval, vault-out

FeatureEndpointScope required
Vault completed e-sign (recovery)POST /partner/envelopes/:id/vault-in-signedvault:write
Vault uploaded paper PDFPOST /partner/envelopes/:id/vault-in-uploadvault:write
Download authoritative copyGET /partner/envelopes/:id/vault/signed-urlvault:read
Download non-authoritative copyGET /partner/envelopes/:id/vault/copy/signed-urlvault:read
Check UCC §9-105 complianceGET /partner/envelopes/:id/compliancecompliance:read
Get compliance certificateGET /partner/envelopes/:id/vault/certificatecompliance:read
Vault-out (release)POST /partner/envelopes/:id/vault-outvault:release

Configuration

FeatureEndpointScope required
Update webhook URL / secretPATCH /partner/webhookenvelopes:write
Mint embed tokenPOST /embed/tokenesign:write or vault:read
Receive webhooksOutbound to your URLConfigured per key

End-to-end flows

There are three end-to-end flows partners can drive entirely from the API:

  1. E-sign + auto-vault — Create with template_id, customer signs in DocuSeal, queue worker auto-vaults, vault.stored webhook fires.
  2. Paper / pre-signed PDF — Create with envelope_kind: "paper", upload PDF, call vault-in-upload.
  3. Vault-out at end of lifecycle — After any vaulted envelope, call vault-out to release the authoritative copy to a recipient (e.g., a secured party at loan funding).

See Partner Endpoints for full request/response examples.

Getting started

  1. Get an API key from your Loyva point of contact (see API Keys)
  2. Test with the API — create an envelope, send it for signing, vault it, retrieve the compliance certificate
  3. Configure webhooks — get real-time updates on envelope events
  4. Go live — swap dev keys for production keys
Embedded widgets

Embedded signing and vault widgets are on the roadmap. The POST /embed/token endpoint is live (see Embed tokens), but the companion JavaScript SDK and iframe host are not yet published. The full e-sign and e-vault lifecycle (including vault-in and vault-out) can be driven entirely via REST today — embedded widgets are an optional UI layer for partners who want to render Loyva-branded signing inside their own app. Coordinate with your Loyva point of contact if you need embedded signing.