Recipients
The people on an envelope. Remind them, correct a mistyped address, or get a signing link to pass on yourself. Sender API key required.
The recipient object
Attributes
id string
Not empty
name string
email string (email)
phone string
Matches ^\+[1-9]\d{6,14}$
role string
Signers fill fields, approvers approve without fields, viewers get a copy.
One of signer approver viewer
order integer
At least 1
auth string
How the recipient proves who they are. email_otp, the default, asks for the link and a code sent by email; email_link needs only the link.
One of email_link email_otp sms_otp aadhaar
status string
One of pending notified viewed signed approved declined
declineReason string
actedAt string (date-time)
notifiedAt string (date-time)
viewedAt string (date-time)
remindersSent integer
At least 0
lastRemindedAt string (date-time)
esign object
Where the recipient's Aadhaar eSign stands, once they have started one. Only for auth: aadhaar.
Attributes of esign
provider string
The eSign provider.
status string
pending: the recipient is at the provider. expired and failed: the attempt ended without a signature and the recipient may start again.
One of pending signed declined expired failed
signerName string
The name on the signer's eSign certificate in the signed file, or the name the provider reported when the file carried none that could be read.
signedAt string (date-time)
ref string
The server's reference for the eSign request that was signed.
sandbox boolean
The provider's test environment was used. Such a signature is for testing and has no legal effect.
{
"id": "c4a1d9e2-7f3b-4c8d-a6e5-0b9f2d1c7e83",
"name": "Asha Rao",
"email": "asha@example.com",
"role": "signer",
"order": 1,
"auth": "email_otp",
"status": "notified",
"notifiedAt": "2026-03-02T09:00:00.000Z"
}Remind recipients
POST/v1/envelopes/{id}/remind
Mails a reminder with a fresh signing link to everyone whose turn it is, or to the one recipient named. Each recipient gets at most one reminder or invitation every 15 minutes; manual reminders do not count against the automatic ones.
Auth Sender API key, as Authorization: Bearer <key>
Send an Idempotency-Key to retry safely: the same key and body within 24 hours return the first response. See retries.
Path parameters
id string Required
The envelope id.
Headers
Idempotency-Key string
Any unique string, up to 255 characters. A retry with the same key and body within 24 hours returns the first response. The same key with a different body is a VALIDATION error; while the first request is still running, CONFLICT.
1 to 255 characters
Request body
recipientId string
Remind only this recipient.
Returns
200 OK. The envelope, with lastRemindedAt set on everyone reminded. An envelope object.
Idempotent-Replayed:truewhen this is the stored response to an earlier request with the sameIdempotency-Key.
Errors
| Status | When |
|---|---|
| 400 | VALIDATION: the request is malformed. details.issues lists each problem. |
| 401 | UNAUTHORIZED: the API key is missing or not valid. |
| 403 | FORBIDDEN: the credential may only read. |
| 404 | ENVELOPE_NOT_FOUND, RECIPIENT_NOT_FOUND or NOT_FOUND. |
| 409 | INVALID_STATE: not allowed in the envelope's status (details.status). NOT_YOUR_TURN: sequential routing, an earlier recipient has not acted. CONFLICT: another request changed the envelope, or one with the same Idempotency-Key is still running; try again. |
| 410 | ENVELOPE_EXPIRED: the envelope is past its expiry. |
curl -X POST https://sign.codevibe.in/api/v1/envelopes/7f3c9a2e-5b1d-4e8a-9c6f-2d4b8e1a0c37/remind \
-H "Authorization: Bearer $SIGN_API_KEY" \
-H "Idempotency-Key: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d" \
-H "Content-Type: application/json" \
-d '{
"recipientId": "rcp_01"
}'const response = await fetch('https://sign.codevibe.in/api/v1/envelopes/7f3c9a2e-5b1d-4e8a-9c6f-2d4b8e1a0c37/remind', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SIGN_API_KEY}`,
'Idempotency-Key': '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d',
'Content-Type': 'application/json',
},
body: JSON.stringify({
recipientId: 'rcp_01',
}),
});
console.log(response.status, await response.json());import os
import requests
response = requests.post(
"https://sign.codevibe.in/api/v1/envelopes/7f3c9a2e-5b1d-4e8a-9c6f-2d4b8e1a0c37/remind",
headers={
"Authorization": f"Bearer {os.environ['SIGN_API_KEY']}",
"Idempotency-Key": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
},
json={
"recipientId": "rcp_01",
},
timeout=30,
)
response.raise_for_status()
print(response.json())package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
"os"
)
func main() {
payload, err := json.Marshal(map[string]any{
"recipientId": "rcp_01",
})
if err != nil {
panic(err)
}
req, err := http.NewRequest("POST", "https://sign.codevibe.in/api/v1/envelopes/7f3c9a2e-5b1d-4e8a-9c6f-2d4b8e1a0c37/remind", bytes.NewReader(payload))
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("SIGN_API_KEY"))
req.Header.Set("Idempotency-Key", "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println(res.Status, string(out))
}{
"id": "string",
"title": "string",
"message": "string",
"changeNote": "string",
"status": "draft",
"routing": "sequential",
"documents": [
{
"id": "string",
"name": "string",
"sha256": "9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c",
"pageCount": 1,
"pageSizes": [
{
"width": 1,
"height": 1
}
]
}
],
"recipients": [
{
"id": "string",
"name": "string",
"email": "asha@example.com",
"phone": "+919876543210",
"role": "signer",
"order": 1,
"auth": "email_link",
"status": "pending",
"declineReason": "string",
"actedAt": "2026-03-02T09:14:31.000Z",
"notifiedAt": "2026-03-02T09:14:31.000Z",
"viewedAt": "2026-03-02T09:14:31.000Z",
"remindersSent": 0,
"lastRemindedAt": "2026-03-02T09:14:31.000Z",
"esign": {
"provider": "leegality",
"status": "pending",
"signerName": "string",
"signedAt": "2026-03-02T09:14:31.000Z",
"ref": "string",
"sandbox": true
}
}
],
"fields": [
{
"id": "string",
"documentId": "string",
"recipientId": "string",
"type": "signature",
"page": 0,
"rect": {
"x": 0,
"y": 0,
"width": 1,
"height": 1
},
"required": true,
"label": "string",
"readOnly": true
}
],
"values": [
{
"fieldId": "string",
"value": "string"
}
],
"reminders": {
"firstAfterDays": 0,
"everyDays": 1,
"max": 0
},
"expiresAt": "2026-03-02T09:14:31.000Z",
"createdAt": "2026-03-02T09:14:31.000Z",
"sentAt": "2026-03-02T09:14:31.000Z",
"completedAt": "2026-03-02T09:14:31.000Z",
"metadata": {},
"auditHead": "9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c"
}Get a signing link to pass on yourself
POST/v1/envelopes/{id}/recipients/{recipientId}/link
A fresh signing link for a recipient whose turn it is, for when emails do not reach them. No email is sent. Their earlier links stop working, so only the newest one does. A one-time code still applies when the recipient signs with one. The audit trail records recipient.link_shared with who took the link, never the link itself. At most 5 links per recipient per hour. The link is in this response only and is never stored in clear, so an Idempotency-Key is ignored: a retry gives a new link.
Auth Sender API key, as Authorization: Bearer <key>
Path parameters
id string Required
The envelope id.
recipientId string Required
The recipient id, from recipients[].id.
Returns
201 Created. The link. Treat it like a password. An object.
Errors
| Status | When |
|---|---|
| 400 | VALIDATION: the request is malformed. details.issues lists each problem. |
| 401 | UNAUTHORIZED: the API key is missing or not valid. |
| 403 | FORBIDDEN: the credential may only read. |
| 404 | ENVELOPE_NOT_FOUND, RECIPIENT_NOT_FOUND or NOT_FOUND. |
| 409 | INVALID_STATE: not allowed in the envelope's status (details.status). NOT_YOUR_TURN: sequential routing, an earlier recipient has not acted. CONFLICT: another request changed the envelope, or one with the same Idempotency-Key is still running; try again. |
| 410 | ENVELOPE_EXPIRED: the envelope is past its expiry. |
| 429 | RATE_LIMITED: too many requests. Wait Retry-After seconds. |
curl -X POST https://sign.codevibe.in/api/v1/envelopes/7f3c9a2e-5b1d-4e8a-9c6f-2d4b8e1a0c37/recipients/4c2a9e1b-7d3f-4b6a-8e5c-1f0d2b3a4c5e/link \
-H "Authorization: Bearer $SIGN_API_KEY"import { createSignClient } from '@codevibe_technology/sign-client';
const sign = createSignClient({
baseUrl: 'https://sign.codevibe.in/api',
apiKey: process.env.SIGN_API_KEY!,
});
const { url } = await sign.envelopes.shareLink('7f3c9a2e-5b1d-4e8a-9c6f-2d4b8e1a0c37', '4c2a9e1b-7d3f-4b6a-8e5c-1f0d2b3a4c5e');
// Treat the link like a password.import os
import requests
response = requests.post(
"https://sign.codevibe.in/api/v1/envelopes/7f3c9a2e-5b1d-4e8a-9c6f-2d4b8e1a0c37/recipients/4c2a9e1b-7d3f-4b6a-8e5c-1f0d2b3a4c5e/link",
headers={
"Authorization": f"Bearer {os.environ['SIGN_API_KEY']}",
},
timeout=30,
)
response.raise_for_status()
print(response.json())package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("POST", "https://sign.codevibe.in/api/v1/envelopes/7f3c9a2e-5b1d-4e8a-9c6f-2d4b8e1a0c37/recipients/4c2a9e1b-7d3f-4b6a-8e5c-1f0d2b3a4c5e/link", nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("SIGN_API_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println(res.Status, string(out))
}{
"recipientId": "string",
"url": "https://sign.example.com/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw"
}Correct a recipient who has not acted
PATCH/v1/envelopes/{id}/recipients/{recipientId}
Changes the name, email or phone of a recipient on a sent envelope who has not signed, approved or declined. Role, order and fields stay. Their earlier links stop working. When it is their turn and the email or phone changed, the new address is invited at once; a name change sends nothing unless resend is true. Recorded as recipient.corrected with the old and new values. Someone who has acted cannot be changed (INVALID_STATE with details.reason: acted); recall the envelope instead.
Auth Sender API key, as Authorization: Bearer <key>
Path parameters
id string Required
The envelope id.
recipientId string Required
The recipient id, from recipients[].id.
Request body
name string
At most 200 characters
email string (email)
phone string
International format, for example +919876543210.
resend boolean
Send a new invitation even when only the name changed.
Returns
200 OK. The envelope after the correction. An envelope object.
Errors
| Status | When |
|---|---|
| 400 | VALIDATION: the request is malformed. details.issues lists each problem. |
| 401 | UNAUTHORIZED: the API key is missing or not valid. |
| 403 | FORBIDDEN: the credential may only read. |
| 404 | ENVELOPE_NOT_FOUND, RECIPIENT_NOT_FOUND or NOT_FOUND. |
| 409 | INVALID_STATE: not allowed in the envelope's status (details.status). NOT_YOUR_TURN: sequential routing, an earlier recipient has not acted. CONFLICT: another request changed the envelope, or one with the same Idempotency-Key is still running; try again. |
| 410 | ENVELOPE_EXPIRED: the envelope is past its expiry. |
curl -X PATCH https://sign.codevibe.in/api/v1/envelopes/7f3c9a2e-5b1d-4e8a-9c6f-2d4b8e1a0c37/recipients/4c2a9e1b-7d3f-4b6a-8e5c-1f0d2b3a4c5e \
-H "Authorization: Bearer $SIGN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "asha.rao@example.com"
}'import { createSignClient } from '@codevibe_technology/sign-client';
const sign = createSignClient({
baseUrl: 'https://sign.codevibe.in/api',
apiKey: process.env.SIGN_API_KEY!,
});
const envelope = await sign.envelopes.correctRecipient(
'7f3c9a2e-5b1d-4e8a-9c6f-2d4b8e1a0c37',
'4c2a9e1b-7d3f-4b6a-8e5c-1f0d2b3a4c5e',
{
email: 'asha.rao@example.com',
},
);import os
import requests
response = requests.patch(
"https://sign.codevibe.in/api/v1/envelopes/7f3c9a2e-5b1d-4e8a-9c6f-2d4b8e1a0c37/recipients/4c2a9e1b-7d3f-4b6a-8e5c-1f0d2b3a4c5e",
headers={
"Authorization": f"Bearer {os.environ['SIGN_API_KEY']}",
},
json={
"email": "asha.rao@example.com",
},
timeout=30,
)
response.raise_for_status()
print(response.json())package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
"os"
)
func main() {
payload, err := json.Marshal(map[string]any{
"email": "asha.rao@example.com",
})
if err != nil {
panic(err)
}
req, err := http.NewRequest("PATCH", "https://sign.codevibe.in/api/v1/envelopes/7f3c9a2e-5b1d-4e8a-9c6f-2d4b8e1a0c37/recipients/4c2a9e1b-7d3f-4b6a-8e5c-1f0d2b3a4c5e", bytes.NewReader(payload))
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("SIGN_API_KEY"))
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println(res.Status, string(out))
}{
"id": "string",
"title": "string",
"message": "string",
"changeNote": "string",
"status": "draft",
"routing": "sequential",
"documents": [
{
"id": "string",
"name": "string",
"sha256": "9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c",
"pageCount": 1,
"pageSizes": [
{
"width": 1,
"height": 1
}
]
}
],
"recipients": [
{
"id": "string",
"name": "string",
"email": "asha@example.com",
"phone": "+919876543210",
"role": "signer",
"order": 1,
"auth": "email_link",
"status": "pending",
"declineReason": "string",
"actedAt": "2026-03-02T09:14:31.000Z",
"notifiedAt": "2026-03-02T09:14:31.000Z",
"viewedAt": "2026-03-02T09:14:31.000Z",
"remindersSent": 0,
"lastRemindedAt": "2026-03-02T09:14:31.000Z",
"esign": {
"provider": "leegality",
"status": "pending",
"signerName": "string",
"signedAt": "2026-03-02T09:14:31.000Z",
"ref": "string",
"sandbox": true
}
}
],
"fields": [
{
"id": "string",
"documentId": "string",
"recipientId": "string",
"type": "signature",
"page": 0,
"rect": {
"x": 0,
"y": 0,
"width": 1,
"height": 1
},
"required": true,
"label": "string",
"readOnly": true
}
],
"values": [
{
"fieldId": "string",
"value": "string"
}
],
"reminders": {
"firstAfterDays": 0,
"everyDays": 1,
"max": 0
},
"expiresAt": "2026-03-02T09:14:31.000Z",
"createdAt": "2026-03-02T09:14:31.000Z",
"sentAt": "2026-03-02T09:14:31.000Z",
"completedAt": "2026-03-02T09:14:31.000Z",
"metadata": {},
"auditHead": "9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c9f2c"
}