Build document signing workflows with Agrello API
Create documents, fill templates with data, invite signers, receive webhook events, and download signed outputs from your product or back-office system.
Everything needed before the first request
OAuth 2.0 Client Credentials. Send Authorization: Bearer $TOKEN.
Access tokens expire after 24 hours. Handle 401 by requesting a new token.
Use /v3 endpoints. Swagger also lists API v2 as deprecated.
A complete minimal flow, not just an endpoint list
A copyable path for a backend developer. Swagger remains the canonical reference; this explains the order of operations.
Learn the nouns first
Workspace
└── Folder
├── Template + variables
└── Container
├── participants / invitations
├── signatures
└── signed output
Folder
Organizes documents by team, customer, workflow, or project. Some API responses may still include legacy spaceId.
Template
Reusable source document with variables. Templates are not edited in place; create a new template for a new version.
Container
The document package sent for signing, including files, invitations, participants, signatures, metadata, and output.
Choose the flow based on where the document is generated
Flow A: upload your own file
Your system generates the final file and Agrello handles signing.
/v3/workspace/v3/folders/v3/folders/{folderId}/containers/v3/containers/{containerId}/outputFlow B: generate from template
Agrello template variables are filled from your product or back-office data.
/v3/folders/{folderId}/templates/v3/templates/{templateId}/v3/folders/{folderId}/containers/v3/webhooks{
"templateId": "template-uuid",
"variables": [
{ "name": "employee_name", "value": "Jane Smith" },
{ "name": "start_date", "value": "2026-06-01" },
{ "name": "employee_signature", "value": "jane@example.com" }
],
"signers": []
}Output type guide
- PDF — simple signed PDF output.
- ASICE — EU XAdES container format.
- EDOC — Latvian electronic signature container.
- ADOC_B — Lithuanian electronic signature container.
- ZIP — packaged output when applicable.
Know when the document is signed
Use webhooks for event-driven integrations and poll container details only when you need a fallback or reconciliation check.
{
"event": "DOCUMENT_SIGNED",
"url": "https://your-app.com/webhooks/agrello/document-signed"
}{
"containerId": "container-uuid",
"userId": "last-signer-uuid",
"signerCount": 2
}DOCUMENT_SIGNATURE_ADDED, DOCUMENT_SIGNED, REMINDER_CREATED.Bring your workflow. We’ll map it to the API.
Review credentials, templates, output format, signer roles, webhook handling, and the fastest route to a signed test document.