POST Upload and send request
Changed onFaz o upload de um documento (PDF ou Office) e envia para ser assinado por uma ou mais pessoas com assinatura na página de validação.
Este endpoint chama os endpoints de "Upload File" e "Send Request With Document", portanto as regras de validação de ambos se aplicam a ele.
Portanto é possível enviar documentos BASE64 (PDF) no padrão aceito em "Upload File" por exemplo, assim como o sistema vai converter documentos de office no ato da solicitação, como em "Send Request With Document".<p><strong>Regras:</strong></p><ul><li>Formatos aceitos: pdf, doc, docx, xls e xlsx; <code>file</code> como arquivo (multipart/form-data) ou base64 com data URI (apenas PDF). PDFs 1.5/1.7 são otimizados automaticamente quando <code>optimizer</code> é omitido.</li><li>Sem <code>recipients</code>, a API usa o formato legado (<code>email[]</code>, <code>fields</code> por e-mail, <code>message</code> obrigatório).</li><li><code>due_months</code> é aceito, mas não é gravado no formato <code>recipients</code>.</li><li>O upload dispara o webhook <code>FILE_UPLOADED</code>; limites do plano respondem 403.</li></ul><p><strong>Resposta:</strong> a solicitação criada no mesmo formato de <code>GET /api/requests/{signing_key}</code> (<code>data</code>) com <code>message</code> e, no formato <code>recipients</code>, <code>deliveries</code> (resultado dos envios por WhatsApp); com <code>silent_mode</code>, em vez de <code>deliveries</code> vem <code>silent_mode</code> (URLs de assinatura); com <code>chain: false</code> e vários destinatários, <code>data</code> é uma lista.</p>
Request
- Base URLhttps://app.plugsign.com.br
- URLhttps://app.plugsign.com.br/api/files/upload/requests
- AuthAPI key in header Authorization
Request body
Response
200
Example response
{
"data": {
"id": 1601469,
"signing_key": "5BKLud7blQX2m3NFzhSBgca0S8KD7stu",
"document": "LuJrWJ01duSEWxHsZoaZ1aU3rHf7QYOg",
"email": "signatario@exemplo.com",
"message": "Por favor, assine o contrato.",
"signature_type": "Testemunha",
"expire_date": "31/12/2026 23:59:59",
"send_time": "13/10/2026 14:45:43",
"update_time": "13/10/2026 14:45:43",
"creted_at": "13/10/2026 14:45:43",
"status": "Pending",
"doubleauth": "1"
},
"message": "Sua solicitação foi enviada com sucesso!"
}Changes
- breaking
request property
////was restricted to a list of enum values - breaking
the
/response's property type changed frombooleantointegerfor status - breaking
the
/response's property type changed frombooleantointegerfor status - breaking
the
/response's property type changed frombooleantointegerfor status - warning
the
//request property's maxLength was set to500 - warning
the
//request property's maxLength was set to255 - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
added the new
Cancelledenum value to the/response property for the response status - warning
added the new
Declinedenum value to the/response property for the response status - warning
added the new
Pendingenum value to the/response property for the response status - warning
added the new
Signedenum value to the/response property for the response status - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
- info
added the new optional request property
- info
added the new
3.00enum value to the request property// - info
added the new
rubricenum value to the request property//// - info
added the new
signatureenum value to the request property//// - info
added the new
textenum value to the request property//// - info
the
request property type was generalized fromintegertonumber - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
the
response's property default value0was removed for the status - info
the
response's property default value0was removed for the status - info
the
response's property default valuefalsewas removed for the status - info
the
response's property default valuefalsewas removed for the status - info
the
response's property default valuefalsewas removed for the status - info
removed the
allenum value from the/response property for the response status - info
removed the
drawenum value from the/response property for the response status - info
removed the
textenum value from the/response property for the response status - info
removed the
uploadenum value from the/response property for the response status
- breaking