Resources
Recipients
Remind a recipient, replace one who can't sign, and create a signing ceremony URL with the SignatureAPI CLI recipients commands.
The recipients commands act on one recipient of an envelope. Each one sends the same request as the matching API operation:
| Command | API operation |
|---|---|
recipients resend | Resend request |
recipients replace | Replace a recipient |
recipients ceremony | Create a ceremony |
They act in test mode unless you pass --mode live or use a live API key. In live mode, each one asks for confirmation first, because it reaches a real person; in a script, add --yes. See Working with resources for modes, credentials, and confirmation.
Find a recipient’s ID
The commands take a recipient ID (re_...). envelopes get lists them with each recipient’s key and status:
npx signatureapi envelopes get eb4cf433-a8af-4161-b37b-7ef57d423e56 --json \
| jq -c 'select(.type == "result") | .data.recipients[] | {id, key, status}'Send a reminder
recipients resend sends the recipient’s signing request again. --subject and --message replace the original subject and message for this email:
npx signatureapi recipients resend re_49r1R2jpPDz8hSpP75ZkPp \
--subject "Reminder: please sign" \
--message "The agreement is waiting for your signature."The result shows when you can resend next. Resends have wait periods that grow with each email. A resend sent too early fails with api-error, and the problem’s detail says when you can send the next one. See Resend request for the wait periods.
Replace a recipient
When a recipient can’t sign, replace them with another person. For example, after a hard bounce, or when you assigned the wrong person:
npx signatureapi recipients replace re_49r1R2jpPDz8hSpP75ZkPp --name "John Smith" --email john.smith@example.comThe result shows the new recipient. It has a new ID: use it in place of the old one from now on. The new recipient takes over the original’s key, routing position, and places, and starts without a ceremony. To send it the request, create a ceremony for the new ID.
A recipient who has completed, or an automatic signer, can’t be replaced. See Replace a recipient for every condition.
Create a signing URL
recipients ceremony creates a new ceremony for a recipient and shows its URL. Use it to embed signing in your application, or to share the link yourself. The body is a Create a ceremony request:
{
"authentication": [
{
"type": "custom",
"provider": "Acme Portal",
"data": { "User ID": "usr_12345" }
}
],
"embeddable_in": ["https://app.acme.example"]
}npx signatureapi recipients ceremony re_49r1R2jpPDz8hSpP75ZkPp --body ceremony.jsonThe new ceremony revokes the recipient’s active one, so an earlier URL stops working. Anyone with the URL can sign as the recipient: share it only with them, and keep it out of shared logs. With --json, the URL is in the result’s data.url on stdout instead of the terminal text.
Send the signing link by email
When the first authentication method is email_link, there is no URL: SignatureAPI emails the link to the recipient.
echo '{"authentication": [{"type": "email_link"}]}' \
| npx signatureapi recipients ceremony re_49r1R2jpPDz8hSpP75ZkPp --body -In test mode, the email is not sent; you can read it with emails list.
Command reference
Generated from the help of the published signatureapi package.
recipients resend
Send the recipient's signing request again, optionally with another subject or message. Live mode asks for confirmation first.
Usagenpx signatureapi recipients resend <recipient-id> [options]
| Argument | Description |
|---|---|
<recipient-id> | ID of the recipient (re_...), as envelopes get shows it. Required. |
| Option | Description |
|---|---|
--subject <text> | Subject to use instead of the original. |
--message <text> | Message to use instead of the original. |
--yes | Confirm a live-mode change without the prompt (required in non-interactive shells). |
Global options: --mode, --api-key-var, --credential-store, --json.
# Resend a test request
npx signatureapi recipients resend re_...
# Resend a live request with a new subject
npx signatureapi recipients resend re_... --mode live --subject "Reminder: please sign" --yesRelated: Recipient
recipients replace
Replace a recipient who has not signed with another person, who gets the signing request instead. Live mode asks for confirmation first.
Usagenpx signatureapi recipients replace <recipient-id> --email <email> --name <name> [options]
| Argument | Description |
|---|---|
<recipient-id> | ID of the recipient (re_...), as envelopes get shows it. Required. |
| Option | Description |
|---|---|
--email <email> | Email of the new recipient. Required. |
--name <name> | Name of the new recipient. Required. |
--yes | Confirm a live-mode change without the prompt (required in non-interactive shells). |
Global options: --mode, --api-key-var, --credential-store, --json.
# Replace a test recipient
npx signatureapi recipients replace re_... --email jane@example.com --name "Jane Doe"Related: Recipient
recipients ceremony
Create a signing ceremony for a recipient from a JSON body (the public Create ceremony request) and show its URL. A new ceremony revokes the recipient's active one. With email_link as the first authentication method there is no URL: SignatureAPI emails the link. Anyone with the URL can sign as the recipient; share it only with them. Live mode asks for confirmation first.
Usagenpx signatureapi recipients ceremony <recipient-id> --body <path> [options]
| Argument | Description |
|---|---|
<recipient-id> | ID of the recipient (re_...), as envelopes get shows it. Required. |
| Option | Description |
|---|---|
--body <path> | JSON file with the ceremony, or - to read it from stdin. Required. |
--yes | Confirm a live-mode change without the prompt (required in non-interactive shells). |
Global options: --mode, --api-key-var, --credential-store, --json.
# Create an embedded test ceremony
npx signatureapi recipients ceremony re_... --body ceremony.jsonRelated: Recipient