Envelopes

Rename the envelope, change its message or put its documents in a new order; send only what changes. Nothing is sent to anyone: the reads and every notice sent from then on (a reminder, a cancel, a document added) use the new name, message and order. The message is also each document's assignment message. Works on a closed envelope too. A refused request changes nothing; errors names every field at fault.

Copy as Markdown Open in ChatGPT Open in Claude

patch/v1/accounts/{accountId}/envelopes/{envelopeId}

Request

  • Base URL
    https://api.assinafy.com.br
  • Auth
    • HTTP bearer
    • or API key in header X-Api-Key

Path parameters

accountIdstring required

Workspace account ID.

envelopeIdstring required

The envelope ID.

Request body

namestring

What the invitation calls what is being signed. < is refused (400).

messagestring nullable

The message sent to every signer from now on; null for none.

document_idsstring[]

Every document of the envelope, each once, in the new order; position follows it. An envelope listing no document takes no order.

Example request

{
  "name": "Contrato de prestação de serviços",
  "message": "Segue o contrato e seus anexos.",
  "document_ids": [
    "615601fab04c0a3147bb1246",
    "615601fab04c0a3147bb1247"
  ]
}

Response

The envelope as changed

statusinteger

HTTP status code, mirrored in the body.

messagestring

Human-readable message; empty on success.

Example response

{
  "status": 200,
  "data": {
    "resource": "envelope",
    "id": "1a2f3c4d5e6f708192a3b4c5d6e",
    "name": "Contrato de prestação de serviços",
    "message": "Segue o contrato e seus anexos.",
    "documents": [
      {
        "id": "615601fab04c0a3147bb1246",
        "position": 1,
        "name": "contrato.pdf",
        "status": "pending_signature",
        "artifacts": {
          "original": "https://api.assinafy.com.br/v1/documents/615601fab04c0a3147bb1246/download/original",
          "thumbnail": "https://api.assinafy.com.br/v1/documents/615601fab04c0a3147bb1246/thumbnail"
        },
        "signers": [
          {
            "id": "fa8c140cb49b79f940aab95fddd",
            "full_name": "Ana Souza",
            "email": "ana@example.com",
            "whatsapp_phone_number": "+5548999990001",
            "signed_at": "2026-11-06T14:30:00Z"
          }
        ]
      }
    ],
    "counts": {
      "certificated": 1,
      "pending_signature": 2
    },
    "signing_urls": [
      {
        "url": "https://api.assinafy.com.br/v1/sign/doc1?email=joe@example.com"
      }
    ],
    "created_at": "2026-11-04T12:00:00Z"
  }
}

Changes