Aller au contenu

POST /v1/signature/documents

POST
/v1/signature/documents
curl --request POST \
--url https://api.asap.cool/v1/signature/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/pdf' \
--data example

Raw PDF bytes, or a Word .docx converted to PDF server-side

Media type application/pdf
string

Document stored.

Media type application/json

View returned after a successful upload.

object
byte_size
required

Stored byte length.

integer format: int64
filename
required

Stored file name.

string
id
required

Document id to pass as the envelope source_document_id.

string format: uuid
sha256
required

Lowercase-hex SHA-256 of the stored bytes.

string
Example generated
{
"byte_size": 1,
"filename": "example",
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"sha256": "example"
}

Not authenticated.

Missing signature:write scope.

Document exceeds the body limit (enforced by DefaultBodyLimit).

Body is neither a PDF nor a .docx.

DOCX conversion unavailable (LibreOffice absent or conversion failed).