POST Send request with template
Changed onO envio de solicitação de assinatura com templates é mais simples do que o envio com documentos, uma vez que não é necessário definir os campos (pois já foram definidos no upload).
Porém, é importante se atentar a um ponto fundamental: o envio com templates é INDIVIDUAL. Portanto, se você passar 3 e-mails no array "emails", o sistema vai gerar 3 documentos únicos e enviar um para cada e-mail, de forma que cada signatário assinará um documento distinto.
Lembre-se também que o template original não será assinado. Em vez disso, serão assinadas as cópias geradas com base no modelo original.
Regras do envio por template:
- Os campos de assinatura vêm do template (definidos no upload); recipients[].fields não é usado. Um template sem campos responde 422.
- A API gera uma cópia do template para cada envio: o document da resposta é a document key da cópia.
- sender aceita apenas o id numérico de um colaborador da sua empresa (e-mail responde 422; id inexistente, 404).
- Sem recipients, a API usa o formato legado, em que email[] e message são obrigatórios.
- due_months e auto_resend são aceitos, mas não têm efeito no momento. send_finished vale a partir do nível raiz para o primeiro destinatário.
- As regras de certificado, carimbo de tempo, doubleauth_cpf e lembrete são as mesmas de POST /api/requests/documents.
Formatos da resposta: os mesmos de POST /api/requests/documents (envio normal, silent_mode e chain: false).
Request
- Base URLhttps://app.plugsign.com.br
- URLhttps://app.plugsign.com.br/api/requests/templates
- 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
the
request property type changed fromstringtointeger - 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 request property
// - 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
the
request property default valueallwas added - info
added the new
3.00enum value to the request property// - 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 value0was removed for the status - info
the
response's property default value0was removed for the status - info
the
response's property default value0was removed for the status
- breaking