Signing for agents · the agent guide

Signing for agents: the agent guide

E-signatures for AI agents at https://sign.gurify.com. You upload a PDF, place the fields, and get a signing link for each person. This service sends no email at all, to anyone. You send each link yourself: by email from your user's own mailbox, by Telegram, WhatsApp, or any channel your user chooses.

1. The account and the token (once)

With a browser:

  1. Create an account at https://sign.gurify.com/signup. Nothing is sent to the email address, and the account is active at once.
  2. Sign in, open Settings → API Tokens, and create a token. Keep it secret.

Without a browser: five HTTP calls. Send Origin: https://sign.gurify.com with each, as a browser does, and keep the cookies between them.

  1. POST /api/auth/email-password/signup with {"name": "…", "email": "…", "password": "…"} answers 201. The password needs 8 to 72 characters with an upper-case letter, a lower-case letter, a digit and a symbol (or more than 25 characters). The account is active at once.
  2. GET /api/auth/csrf answers {"csrfToken": "…"}.
  3. POST /api/auth/email-password/authorize with {"email": "…", "password": "…", "csrfToken": "…"} sets the session cookie.
  4. GET /api/trpc/organisation.getMany gives your organisation's id (in result.data.json[]). Then GET /api/trpc/team.find?input={"json":{"organisationId":"<that id>"}}, URL-encoded, gives your team's id (in result.data.json.data[]).
  5. POST /api/trpc/apiToken.create with {"json": {"teamId": <team id>, "tokenName": "my-agent", "expirationDate": null}} gives the token in result.data.json.token.

These are the web app's own calls, not the public API, so an upgrade of Documenso can change them. Sign-ups are limited per address. There is no password reset (it would need email): keep the password, or make a new account.

Everything after this is the public API.

2. Create the envelope

POST /envelope/create, as multipart/form-data with two parts:

{
  "title": "Rental agreement: Jenna K.",
  "type": "DOCUMENT",
  "meta": {
    "distributionMethod": "NONE",
    "signingOrder": "PARALLEL",
    "timezone": "America/Phoenix",
    "dateFormat": "MM/dd/yyyy",
    "language": "en",
    "redirectUrl": "https://example.com/thank-you"
  },
  "recipients": [
    {
      "email": "jenna@example.com",
      "name": "Jenna K.",
      "role": "SIGNER",
      "signingOrder": 1,
      "fields": [
        {"type": "SIGNATURE", "page": 3, "positionX": 12.0, "positionY": 78.5, "width": 32, "height": 4.2},
        {"type": "DATE", "page": 3, "positionX": 60.0, "positionY": 80.0, "width": 22, "height": 2.6}
      ]
    }
  ]
}

The answer is {"id": "envelope_…"}.

POST /envelope/distribute, as JSON:

{"envelopeId": "envelope_…", "meta": {"distributionMethod": "NONE"}}

The answer has a link for each recipient:

{
  "success": true,
  "id": "envelope_…",
  "recipients": [
    {"id": 101, "name": "Jenna K.", "email": "jenna@example.com", "role": "SIGNER",
     "signingOrder": 1, "token": "…", "signingUrl": "https://sign.gurify.com/sign/…"}
  ]
}

Send each signingUrl to its own person and to no one else: the link is that person's key. They open it in any browser and sign. They need no account.

With SEQUENTIAL, send the next person's link after the one before has signed (step 4).

4. Follow the status

GET /envelope/{envelopeId} returns:

Poll at most once a minute per envelope. GET /envelope?perPage=20 lists your envelopes. A webhook is the other way: add one in the web app's settings, under Webhooks, for the "signed" and "completed" events.

5. Get the signed PDF

When status is COMPLETED, take the item id from envelopeItems[].id in GET /envelope/{envelopeId}. Then:

Send the signed copy to the people who signed, yourself, if they should have it.

MCP

For a client that speaks MCP: https://sign.gurify.com/mcp, streamable HTTP. Send Authorization: Bearer <api token> on the connection. create_account works without one.

Placing the fields

Put each field where the PDF asks for it ("Signature", "Date"). One way: pdftotext -bbox file.pdf - prints every word's box in points. For a word at xMin, yMin on a page W points wide and H points high: positionX = xMin / W * 100 and positionY = yMin / H * 100. Draw the boxes on a rendered page and look at it before you distribute.

Rules