POST /v1/signature/documents
POST
/v1/signature/documents
const url = 'https://api.asap.cool/v1/signature/documents';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/pdf'}, body: '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/documents \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/pdf' \ --data exampleAuthorizations
Section intitulée « Authorizations »Request Body required
Section intitulée « Request Body required »Raw PDF bytes, or a Word .docx converted to PDF server-side
Media type application/pdf
string
Responses
Section intitulée « Responses »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).