POST /v1/signature/forms
const url = 'https://api.asap.cool/v1/signature/forms';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"source_document_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","template_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","title":"example","verification_method":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.asap.cool/v1/signature/forms \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "source_document_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "template_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "title": "example", "verification_method": "example" }'Authorizations
Section intitulée « Authorizations »Request Body required
Section intitulée « Request Body required »Body of POST /v1/signature/forms. org_id is never accepted; the slug is
generated server-side and never supplied by the caller.
object
The fixed document every generated envelope wraps (org-scoped UUID).
Optional template (UUID) whose presets pre-fill the generated envelopes.
Human title shown to the visitor (required, non-blank).
Identity-verification method applied to every generated signer:
email_otp (default), none, or sms_otp.
Example generated
{ "source_document_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "template_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "title": "example", "verification_method": "example"}Responses
Section intitulée « Responses »Form created (with slug and public URL).
Public projection of a [SignatureForm], including the ready-to-share URL.
object
Whether the form accepts submissions.
Stable identifier.
Public, unguessable slug.
The fixed document every generated envelope wraps.
Optional template applied to the generated envelopes.
Human title.
Ready-to-share public URL ({frontend_base_url}/sign/forms/{slug}).
Identity-verification method applied to the generated signers.
Example generated
{ "active": true, "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "slug": "example", "source_document_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "template_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "title": "example", "url": "example", "verification_method": "example"}No active org.
Generic error body returned by API handlers when they fail. code is a
stable machine-readable token; message is human-friendly and meant for
surfacing to end users.
object
Stable machine token (e.g. invalid_credentials).
Offending request field for validation errors, when known.
Human-readable message.
Example generated
{ "code": "example", "field": "example", "message": "example"}Missing signature:write scope.
Generic error body returned by API handlers when they fail. code is a
stable machine-readable token; message is human-friendly and meant for
surfacing to end users.
object
Stable machine token (e.g. invalid_credentials).
Offending request field for validation errors, when known.
Human-readable message.
Example generated
{ "code": "example", "field": "example", "message": "example"}Invalid payload (blank title, bad method, or unknown source_document_id).
Generic error body returned by API handlers when they fail. code is a
stable machine-readable token; message is human-friendly and meant for
surfacing to end users.
object
Stable machine token (e.g. invalid_credentials).
Offending request field for validation errors, when known.
Human-readable message.
Example generated
{ "code": "example", "field": "example", "message": "example"}