Signing
What the recipient's browser calls. {token} is the signing token from the link, or the literal link to use the token held in the cvsign_link cookie.
The signing session object
Attributes
workspaceId string
The workspace that sent the envelope, for its brand.
envelope object
Attributes of envelope
id string
Not empty
title string
message string or null
changeNote string or null
What changed since a declined version, shown above the document.
status string
completed, declined, expired and voided are final.
One of draft sent in_progress completed declined expired voided
expiresAt string (date-time) or null
recipient object
Attributes of recipient
id string
Not empty
name string
email string or null
role string
Signers fill fields, approvers approve without fields, viewers get a copy.
One of signer approver viewer
status string
One of pending notified viewed signed approved declined
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
documents array of objects
Attributes of documents
id string
Not empty
name string
pageCount integer
fields array of objects
This recipient's fields only.
Attributes of fields
id string
Not empty
documentId string
Not empty
recipientId string
Not empty
type string
A recipient with auth: aadhaar fills in nothing: the eSign provider signs the document as the sender approved it, with the values of the signers before them. They may have one aadhaar field, the Aadhaar seal position: it only says where the provider draws its signature, takes no value, and nothing is drawn for it. Without it the provider places the signature where its own setting says. A second aadhaar field is refused with VALIDATION. signature and initials fields given to such a signer are dropped when the envelope is sent, so older requests still work; any other field for them is refused with VALIDATION. Only an Aadhaar eSign signer may have an aadhaar field.
One of signature initials date_signed name text checkbox aadhaar
page integer
Zero-based page index.
At least 0
rect object
A box in PDF points, measured from the top-left corner of the page.
Attributes of rect
x number
At least 0
y number
At least 0
width number
At least 1
height number
At least 1
required boolean
label string
readOnly boolean
Filled in by the sender; the recipient cannot change it.
values array of objects
Values already entered in this recipient's fields.
Attributes of values
fieldId string
Not empty
value string
Signature and initials: PNG as base64. Text and name: the text. Checkbox: true or false. Date: an ISO date. An aadhaar box takes no value; leave it out.
otpRequired boolean
The recipient signs with a one-time code.
authenticated boolean
A valid session came with this request.
canAct boolean
It is this recipient's turn.
timeZone string
IANA time zone the signing date is printed in on the document, for example Asia/Kolkata: the workspace's own, or the server's. UTC when none is set.
esign object
Present only for a recipient who signs with Aadhaar eSign.
Attributes of esign
available boolean
The sender's workspace can start an Aadhaar eSign right now.
provider string or null
The eSign provider, once the recipient has started.
status string or null
Where the latest attempt stands; null before the first.
One of pending signed declined expired failed
{
"workspaceId": "string",
"envelope": {
"id": "string",
"title": "string",
"message": "string",
"changeNote": "string",
"status": "draft",
"expiresAt": "2026-03-02T09:14:31.000Z"
},
"recipient": {
"id": "string",
"name": "string",
"email": "string",
"role": "signer",
"status": "pending",
"auth": "email_link"
},
"documents": [
{
"id": "string",
"name": "string",
"pageCount": 1
}
],
"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"
}
],
"otpRequired": true,
"authenticated": true,
"canAct": true,
"timeZone": "Asia/Kolkata",
"esign": {
"available": true,
"provider": "leegality",
"status": "pending"
}
}Follow the envelope after signing
GET/v1/sign/receipt
For a recipient who has signed or approved. The submit call hands back a receipt, as the cvsign_receipt cookie and the X-Sign-Receipt header, valid for 7 days. With it the recipient can see where the envelope stands, how many people it is still waiting for (not who), and which documents are sealed and ready to download. The signing link itself stops working once the recipient has acted.
Auth The X-Sign-Receipt header or the cvsign_receipt cookie.
Returns
200 OK. The receipt. A SigningReceipt object.
Errors
| Status | When |
|---|---|
| 401 | TOKEN_INVALID: the link is unknown, used, expired or withdrawn. OTP_INVALID: the code is wrong (details.attemptsLeft), or the session is missing (details.otpRequired). OTP_EXPIRED: the code timed out or none was sent. |
| 429 | RATE_LIMITED: too many requests. Wait Retry-After seconds. |
curl https://sign.codevibe.in/api/v1/sign/receipt \
-H "X-Sign-Receipt: $SIGN_RECEIPT"const response = await fetch('https://sign.codevibe.in/api/v1/sign/receipt', {
headers: {
'X-Sign-Receipt': process.env.SIGN_RECEIPT!,
},
});
console.log(response.status, await response.json());import os
import requests
response = requests.get(
"https://sign.codevibe.in/api/v1/sign/receipt",
headers={
"X-Sign-Receipt": os.environ["SIGN_RECEIPT"],
},
timeout=30,
)
response.raise_for_status()
print(response.json())package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://sign.codevibe.in/api/v1/sign/receipt", nil)
if err != nil {
panic(err)
}
req.Header.Set("X-Sign-Receipt", os.Getenv("SIGN_RECEIPT"))
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))
}{
"workspaceId": "string",
"envelope": {
"id": "string",
"title": "string",
"status": "draft",
"completedAt": "2026-03-02T09:14:31.000Z"
},
"recipient": {
"id": "string",
"name": "string",
"role": "signer",
"status": "pending"
},
"waitingFor": 0,
"documents": [
{
"id": "string",
"name": "string",
"sealed": true,
"certificate": true,
"certificateWithAuditTrail": true
}
]
}Download your signed copy
GET/v1/sign/receipt/documents/{docId}
The sealed PDF, once everyone has acted and the seal is applied. Before that the answer is INVALID_STATE; poll GET /v1/sign/receipt until the document's sealed is true.
Auth The X-Sign-Receipt header or the cvsign_receipt cookie.
Path parameters
docId string Required
The document id, from documents[].id.
Query parameters
file string
certificate for the signing certificate of a document whose certificate is true in the receipt, audit-trail for the envelope's audit trail as a PDF once it is complete. Leave out for the signed document.
One of certificate audit-trail
Returns
200 OK. The PDF file. A string.
Content-Disposition:attachment; filename="<name>-original.pdf"or...-sealed.pdf.
Errors
| Status | When |
|---|---|
| 401 | TOKEN_INVALID: the link is unknown, used, expired or withdrawn. OTP_INVALID: the code is wrong (details.attemptsLeft), or the session is missing (details.otpRequired). OTP_EXPIRED: the code timed out or none was sent. |
| 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. |
| 429 | RATE_LIMITED: too many requests. Wait Retry-After seconds. |
curl https://sign.codevibe.in/api/v1/sign/receipt/documents/1b8e4f60-2c3a-4d7e-8f91-a5c2e6b3d048 \
-H "X-Sign-Receipt: $SIGN_RECEIPT" \
-o document.pdfimport { writeFile } from 'node:fs/promises';
const response = await fetch('https://sign.codevibe.in/api/v1/sign/receipt/documents/1b8e4f60-2c3a-4d7e-8f91-a5c2e6b3d048', {
headers: {
'X-Sign-Receipt': process.env.SIGN_RECEIPT!,
},
});
await writeFile('document.pdf', new Uint8Array(await response.arrayBuffer()));import os
import requests
response = requests.get(
"https://sign.codevibe.in/api/v1/sign/receipt/documents/1b8e4f60-2c3a-4d7e-8f91-a5c2e6b3d048",
headers={
"X-Sign-Receipt": os.environ["SIGN_RECEIPT"],
},
timeout=30,
)
response.raise_for_status()
with open("document.pdf", "wb") as file:
file.write(response.content)package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://sign.codevibe.in/api/v1/sign/receipt/documents/1b8e4f60-2c3a-4d7e-8f91-a5c2e6b3d048", nil)
if err != nil {
panic(err)
}
req.Header.Set("X-Sign-Receipt", os.Getenv("SIGN_RECEIPT"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
file, err := os.Create("document.pdf")
if err != nil {
panic(err)
}
defer file.Close()
if _, err := io.Copy(file, res.Body); err != nil {
panic(err)
}
fmt.Println(res.Status)
}Content-Type: application/pdf
%PDF-1.7 ... (the PDF bytes)Download a signed copy from its email link
GET/v1/sign/copy/{docId}
The link in a completed-copy email whose sealed files were not attached, because they were too large or could not be read. It names one recipient of one completed envelope and works for 30 days. Nothing else is needed to call it.
Auth The link itself.
Path parameters
docId string Required
The document id, from documents[].id.
Query parameters
c string Required
The signed value from the download link in the completed-copy email.
At most 1024 characters
file string
certificate for the signing certificate of a document whose certificate is true in the receipt, audit-trail for the envelope's audit trail as a PDF. Leave out for the signed document.
One of certificate audit-trail
Returns
200 OK. The PDF file. A string.
Content-Disposition:attachment; filename="<name>-original.pdf"or...-sealed.pdf.
Errors
| Status | When |
|---|---|
| 401 | TOKEN_INVALID: the link is unknown, used, expired or withdrawn. OTP_INVALID: the code is wrong (details.attemptsLeft), or the session is missing (details.otpRequired). OTP_EXPIRED: the code timed out or none was sent. |
| 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. |
| 429 | RATE_LIMITED: too many requests. Wait Retry-After seconds. |
curl "https://sign.codevibe.in/api/v1/sign/copy/1b8e4f60-2c3a-4d7e-8f91-a5c2e6b3d048?c=string" \
-o document.pdfimport { writeFile } from 'node:fs/promises';
const response = await fetch('https://sign.codevibe.in/api/v1/sign/copy/1b8e4f60-2c3a-4d7e-8f91-a5c2e6b3d048?c=string');
await writeFile('document.pdf', new Uint8Array(await response.arrayBuffer()));import requests
response = requests.get(
"https://sign.codevibe.in/api/v1/sign/copy/1b8e4f60-2c3a-4d7e-8f91-a5c2e6b3d048?c=string",
timeout=30,
)
response.raise_for_status()
with open("document.pdf", "wb") as file:
file.write(response.content)package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://sign.codevibe.in/api/v1/sign/copy/1b8e4f60-2c3a-4d7e-8f91-a5c2e6b3d048?c=string", nil)
if err != nil {
panic(err)
}
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
file, err := os.Create("document.pdf")
if err != nil {
panic(err)
}
defer file.Close()
if _, err := io.Copy(file, res.Body); err != nil {
panic(err)
}
fmt.Println(res.Status)
}Content-Type: application/pdf
%PDF-1.7 ... (the PDF bytes)Open a signing session
GET/v1/sign/{token}
The envelope basics, the recipient, their own fields and values, and what they still need to do. For recipients who sign with a one-time code, otpRequired is true and authenticated says whether a valid session came with the request. Until it is true the answer holds only what the invitation email already said: message and changeNote are null, documents, fields and values are empty and the email address is masked. Read it again after otp/verify. canAct is false while it is someone else's turn.
Auth The signing token in the path, the X-Sign-Session header, the cvsign_session cookie or the cvsign_link cookie.
Path parameters
token string Required
The signing token from the link (43 base64url characters), or link to use the token in the cvsign_link cookie. Anything else is refused with TOKEN_INVALID.
Matches ^([A-Za-z0-9_-]{43}|link)$
Returns
200 OK. The signer's view. A signing session object.
Errors
| Status | When |
|---|---|
| 401 | TOKEN_INVALID: the link is unknown, used, expired or withdrawn. OTP_INVALID: the code is wrong (details.attemptsLeft), or the session is missing (details.otpRequired). OTP_EXPIRED: the code timed out or none was sent. |
| 429 | RATE_LIMITED: too many requests. Wait Retry-After seconds. |
curl https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPwimport { createSignerClient } from '@codevibe_technology/sign-client';
// The token is the last part of the recipient's signing link.
const signer = createSignerClient({
baseUrl: 'https://sign.codevibe.in/api',
token: 'q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw',
});
const session = await signer.session();import requests
response = requests.get(
"https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw",
timeout=30,
)
response.raise_for_status()
print(response.json())package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw", nil)
if err != nil {
panic(err)
}
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))
}{
"workspaceId": "string",
"envelope": {
"id": "string",
"title": "string",
"message": "string",
"changeNote": "string",
"status": "draft",
"expiresAt": "2026-03-02T09:14:31.000Z"
},
"recipient": {
"id": "string",
"name": "string",
"email": "string",
"role": "signer",
"status": "pending",
"auth": "email_link"
},
"documents": [
{
"id": "string",
"name": "string",
"pageCount": 1
}
],
"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"
}
],
"otpRequired": true,
"authenticated": true,
"canAct": true,
"timeZone": "Asia/Kolkata",
"esign": {
"available": true,
"provider": "leegality",
"status": "pending"
}
}Download the original PDF
GET/v1/sign/{token}/documents/{docId}
The document to sign. Recipients who sign with a one-time code must verify it first.
Auth The signing token in the path, the X-Sign-Session header, the cvsign_session cookie or the cvsign_link cookie.
Path parameters
token string Required
The signing token from the link (43 base64url characters), or link to use the token in the cvsign_link cookie. Anything else is refused with TOKEN_INVALID.
Matches ^([A-Za-z0-9_-]{43}|link)$
docId string Required
The document id, from documents[].id.
Returns
200 OK. The PDF file. A string.
Content-Disposition:attachment; filename="<name>-original.pdf"or...-sealed.pdf.
Errors
| Status | When |
|---|---|
| 401 | TOKEN_INVALID: the link is unknown, used, expired or withdrawn. OTP_INVALID: the code is wrong (details.attemptsLeft), or the session is missing (details.otpRequired). OTP_EXPIRED: the code timed out or none was sent. |
| 404 | ENVELOPE_NOT_FOUND, RECIPIENT_NOT_FOUND or NOT_FOUND. |
| 429 | RATE_LIMITED: too many requests. Wait Retry-After seconds. |
curl https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/documents/1b8e4f60-2c3a-4d7e-8f91-a5c2e6b3d048 \
-o document.pdfimport { createSignerClient } from '@codevibe_technology/sign-client';
// The token is the last part of the recipient's signing link.
const signer = createSignerClient({
baseUrl: 'https://sign.codevibe.in/api',
token: 'q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw',
});
const pdf = await signer.document('1b8e4f60-2c3a-4d7e-8f91-a5c2e6b3d048');import requests
response = requests.get(
"https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/documents/1b8e4f60-2c3a-4d7e-8f91-a5c2e6b3d048",
timeout=30,
)
response.raise_for_status()
with open("document.pdf", "wb") as file:
file.write(response.content)package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/documents/1b8e4f60-2c3a-4d7e-8f91-a5c2e6b3d048", nil)
if err != nil {
panic(err)
}
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
file, err := os.Create("document.pdf")
if err != nil {
panic(err)
}
defer file.Close()
if _, err := io.Copy(file, res.Body); err != nil {
panic(err)
}
fmt.Println(res.Status)
}Content-Type: application/pdf
%PDF-1.7 ... (the PDF bytes)Send a one-time code
POST/v1/sign/{token}/otp
Sends a new six-digit code by email or SMS, valid for 10 minutes, and replaces the previous one. At most 5 codes per 15 minutes and 10 per recipient over the envelope's life; after that the answer is OTP_LOCKED with details.reason: "too_many_codes" and the sender has to send the envelope again.
Auth The signing token in the path or the cvsign_link cookie.
Send an Idempotency-Key to retry safely: the same key and body within 24 hours return the first response. See retries.
Path parameters
token string Required
The signing token from the link (43 base64url characters), or link to use the token in the cvsign_link cookie. Anything else is refused with TOKEN_INVALID.
Matches ^([A-Za-z0-9_-]{43}|link)$
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
Returns
200 OK. The code is on its way. An 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 | TOKEN_INVALID: the link is unknown, used, expired or withdrawn. OTP_INVALID: the code is wrong (details.attemptsLeft), or the session is missing (details.otpRequired). OTP_EXPIRED: the code timed out or none was sent. |
| 423 | OTP_LOCKED: too many wrong guesses, or too many codes for this envelope (details.reason). |
| 429 | RATE_LIMITED: too many requests. Wait Retry-After seconds. |
| 500 | INTERNAL or SEAL_FAILED. Safe to retry with the same Idempotency-Key. |
curl -X POST https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/otp \
-H "Idempotency-Key: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"import { createSignerClient } from '@codevibe_technology/sign-client';
// The token is the last part of the recipient's signing link.
const signer = createSignerClient({
baseUrl: 'https://sign.codevibe.in/api',
token: 'q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw',
});
const { sentTo } = await signer.requestOtp();import requests
response = requests.post(
"https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/otp",
headers={
"Idempotency-Key": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
},
timeout=30,
)
response.raise_for_status()
print(response.json())package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, err := http.NewRequest("POST", "https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/otp", nil)
if err != nil {
panic(err)
}
req.Header.Set("Idempotency-Key", "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d")
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))
}{
"sentTo": "a***@example.com",
"expiresAt": "2026-03-02T09:10:00.000Z"
}Verify the one-time code
POST/v1/sign/{token}/otp/verify
Checks the code. On success the server sets a 30-minute cvsign_session cookie (HttpOnly, SameSite=Strict, path /v1/sign) and also returns the session, which you can send as X-Sign-Session instead. Five wrong guesses lock the code (OTP_LOCKED); ask for a new one.
Auth The signing token in the path or the cvsign_link cookie.
Send an Idempotency-Key to retry safely: the same key and body within 24 hours return the first response. See retries.
Path parameters
token string Required
The signing token from the link (43 base64url characters), or link to use the token in the cvsign_link cookie. Anything else is refused with TOKEN_INVALID.
Matches ^([A-Za-z0-9_-]{43}|link)$
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
code string Required
Matches ^\s*\d{6}\s*$
Returns
200 OK. The code is correct. An object.
Set-Cookie:cvsign_session=<session>; Path=/v1/sign; HttpOnly; SameSite=Strict; Max-Age=1800Idempotent-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 | TOKEN_INVALID: the link is unknown, used, expired or withdrawn. OTP_INVALID: the code is wrong (details.attemptsLeft), or the session is missing (details.otpRequired). OTP_EXPIRED: the code timed out or none was sent. |
| 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. |
| 423 | OTP_LOCKED: too many wrong guesses, or too many codes for this envelope (details.reason). |
| 429 | RATE_LIMITED: too many requests. Wait Retry-After seconds. |
curl -X POST https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/otp/verify \
-H "Idempotency-Key: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d" \
-H "Content-Type: application/json" \
-d '{
"code": "482913"
}'import { createSignerClient } from '@codevibe_technology/sign-client';
// The token is the last part of the recipient's signing link.
const signer = createSignerClient({
baseUrl: 'https://sign.codevibe.in/api',
token: 'q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw',
});
await signer.verifyOtp('482913');import requests
response = requests.post(
"https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/otp/verify",
headers={
"Idempotency-Key": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
},
json={
"code": "482913",
},
timeout=30,
)
response.raise_for_status()
print(response.json())package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
)
func main() {
payload, err := json.Marshal(map[string]any{
"code": "482913",
})
if err != nil {
panic(err)
}
req, err := http.NewRequest("POST", "https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/otp/verify", bytes.NewReader(payload))
if err != nil {
panic(err)
}
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))
}{
"sessionToken": "string",
"expiresAt": "2026-03-02T09:14:31.000Z"
}Record that the document was opened
POST/v1/sign/{token}/view
Marks the recipient as having viewed the document. Call it when the page shows the document, not when the link is opened, so mail scanners that follow links change nothing.
Auth The signing token in the path, the X-Sign-Session header, the cvsign_session cookie or the cvsign_link cookie.
Send an Idempotency-Key to retry safely: the same key and body within 24 hours return the first response. See retries.
Path parameters
token string Required
The signing token from the link (43 base64url characters), or link to use the token in the cvsign_link cookie. Anything else is refused with TOKEN_INVALID.
Matches ^([A-Za-z0-9_-]{43}|link)$
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
Returns
200 OK. Where the envelope and this recipient stand now. A SignerActionResult object.
Idempotent-Replayed:truewhen this is the stored response to an earlier request with the sameIdempotency-Key.
Errors
| Status | When |
|---|---|
| 401 | TOKEN_INVALID: the link is unknown, used, expired or withdrawn. OTP_INVALID: the code is wrong (details.attemptsLeft), or the session is missing (details.otpRequired). OTP_EXPIRED: the code timed out or none was sent. |
| 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. |
| 429 | RATE_LIMITED: too many requests. Wait Retry-After seconds. |
curl -X POST https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/view \
-H "Idempotency-Key: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"import { createSignerClient } from '@codevibe_technology/sign-client';
// The token is the last part of the recipient's signing link.
const signer = createSignerClient({
baseUrl: 'https://sign.codevibe.in/api',
token: 'q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw',
});
await signer.view();import requests
response = requests.post(
"https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/view",
headers={
"Idempotency-Key": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
},
timeout=30,
)
response.raise_for_status()
print(response.json())package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, err := http.NewRequest("POST", "https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/view", nil)
if err != nil {
panic(err)
}
req.Header.Set("Idempotency-Key", "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d")
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))
}{
"envelopeStatus": "in_progress",
"recipientStatus": "signed"
}Sign or approve
POST/v1/sign/{token}/submit
Submits the recipient's field values and their consent to sign electronically. Signers must fill every required field; approvers send an empty values list. When the last required recipient acts, the envelope completes and the sealed PDF is produced.
Auth The signing token in the path, the X-Sign-Session header, the cvsign_session cookie or the cvsign_link cookie.
Send an Idempotency-Key to retry safely: the same key and body within 24 hours return the first response. See retries.
Path parameters
token string Required
The signing token from the link (43 base64url characters), or link to use the token in the cvsign_link cookie. Anything else is refused with TOKEN_INVALID.
Matches ^([A-Za-z0-9_-]{43}|link)$
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
consent boolean Required
The signer agrees to sign electronically.
Always true
values array of objects Required
At most 500 items
Attributes of values
fieldId string Required
Not empty
value string Required
Signature and initials: PNG as base64. Text and name: the text. Checkbox: true or false. Date: an ISO date. An aadhaar box takes no value; leave it out.
Returns
200 OK. Where the envelope and this recipient stand now, with a receipt for following the envelope and downloading the signed copy (GET /v1/sign/receipt). A SignerActionResult object.
X-Sign-Receipt: The receipt. Send it back asX-Sign-Receipt.Set-Cookie:cvsign_receipt=<receipt>; Path=/v1/sign; HttpOnly; SameSite=Strict; Max-Age=604800Idempotent-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 | TOKEN_INVALID: the link is unknown, used, expired or withdrawn. OTP_INVALID: the code is wrong (details.attemptsLeft), or the session is missing (details.otpRequired). OTP_EXPIRED: the code timed out or none was sent. |
| 403 | FIELD_NOT_YOURS: a value names a field that belongs to another recipient. |
| 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. |
| 422 | DOCUMENT_INVALID: a file is not a readable PDF. PDF_ALREADY_SIGNED: a file already carries digital signatures; upload the unsigned original. REQUIRED_FIELDS_MISSING: required fields were left empty. INVALID_FIELD_VALUE: a value does not suit its field (PNG, date, length). |
| 429 | RATE_LIMITED: too many requests. Wait Retry-After seconds. |
curl -X POST https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/submit \
-H "Idempotency-Key: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d" \
-H "Content-Type: application/json" \
-d '{
"consent": true,
"values": [
{
"fieldId": "e9d2b7c1-4a6f-4e3b-8d5c-3f1a0b2c6d94",
"value": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg=="
}
]
}'import { createSignerClient } from '@codevibe_technology/sign-client';
// The token is the last part of the recipient's signing link.
const signer = createSignerClient({
baseUrl: 'https://sign.codevibe.in/api',
token: 'q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw',
});
// Call only after the signer has agreed: the client sends consent: true.
const result = await signer.submit([
{
fieldId: 'e9d2b7c1-4a6f-4e3b-8d5c-3f1a0b2c6d94',
value: 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==',
},
]);import requests
response = requests.post(
"https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/submit",
headers={
"Idempotency-Key": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
},
json={
"consent": True,
"values": [
{
"fieldId": "e9d2b7c1-4a6f-4e3b-8d5c-3f1a0b2c6d94",
"value": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==",
},
],
},
timeout=30,
)
response.raise_for_status()
print(response.json())package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
)
func main() {
payload, err := json.Marshal(map[string]any{
"consent": true,
"values": []any{
map[string]any{
"fieldId": "e9d2b7c1-4a6f-4e3b-8d5c-3f1a0b2c6d94",
"value": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==",
},
},
})
if err != nil {
panic(err)
}
req, err := http.NewRequest("POST", "https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/submit", bytes.NewReader(payload))
if err != nil {
panic(err)
}
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))
}{
"envelopeStatus": "in_progress",
"recipientStatus": "signed"
}Decline
POST/v1/sign/{token}/decline
Declines to sign. The envelope becomes declined and everyone already invited is told.
Auth The signing token in the path, the X-Sign-Session header, the cvsign_session cookie or the cvsign_link cookie.
Send an Idempotency-Key to retry safely: the same key and body within 24 hours return the first response. See retries.
Path parameters
token string Required
The signing token from the link (43 base64url characters), or link to use the token in the cvsign_link cookie. Anything else is refused with TOKEN_INVALID.
Matches ^([A-Za-z0-9_-]{43}|link)$
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
reason string Required
Not empty
Returns
200 OK. Where the envelope and this recipient stand now. A SignerActionResult 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 | TOKEN_INVALID: the link is unknown, used, expired or withdrawn. OTP_INVALID: the code is wrong (details.attemptsLeft), or the session is missing (details.otpRequired). OTP_EXPIRED: the code timed out or none was sent. |
| 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. |
| 429 | RATE_LIMITED: too many requests. Wait Retry-After seconds. |
curl -X POST https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/decline \
-H "Idempotency-Key: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d" \
-H "Content-Type: application/json" \
-d '{
"reason": "The joining date is wrong."
}'import { createSignerClient } from '@codevibe_technology/sign-client';
// The token is the last part of the recipient's signing link.
const signer = createSignerClient({
baseUrl: 'https://sign.codevibe.in/api',
token: 'q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw',
});
const result = await signer.decline('The joining date is wrong.');import requests
response = requests.post(
"https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/decline",
headers={
"Idempotency-Key": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
},
json={
"reason": "The joining date is wrong.",
},
timeout=30,
)
response.raise_for_status()
print(response.json())package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
)
func main() {
payload, err := json.Marshal(map[string]any{
"reason": "The joining date is wrong.",
})
if err != nil {
panic(err)
}
req, err := http.NewRequest("POST", "https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/decline", bytes.NewReader(payload))
if err != nil {
panic(err)
}
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))
}{
"envelopeStatus": "in_progress",
"recipientStatus": "signed"
}Follow an Aadhaar eSign
GET/v1/sign/{token}/esign
Where the recipient's Aadhaar eSign stands. While it is pending the server also asks the provider, at most once every few seconds, so the page the signer comes back to moves on even when the provider's callback is late. Unlike the other signing routes it still answers after the recipient has signed, and then hands out the receipt for GET /v1/sign/receipt.
Auth The signing token in the path or the cvsign_link cookie.
Path parameters
token string Required
The signing token from the link (43 base64url characters), or link to use the token in the cvsign_link cookie. Anything else is refused with TOKEN_INVALID.
Matches ^([A-Za-z0-9_-]{43}|link)$
Returns
200 OK. The latest attempt, or none before the first. An object.
X-Sign-Receipt: The receipt, oncestatusissigned. Send it back asX-Sign-Receipt.
Errors
| Status | When |
|---|---|
| 401 | TOKEN_INVALID: the link is unknown, used, expired or withdrawn. OTP_INVALID: the code is wrong (details.attemptsLeft), or the session is missing (details.otpRequired). OTP_EXPIRED: the code timed out or none was sent. |
| 429 | RATE_LIMITED: too many requests. Wait Retry-After seconds. |
curl https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/esignconst response = await fetch('https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/esign');
console.log(response.status, await response.json());import requests
response = requests.get(
"https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/esign",
timeout=30,
)
response.raise_for_status()
print(response.json())package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/esign", nil)
if err != nil {
panic(err)
}
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))
}{
"status": "pending",
"signUrl": "https://sandbox.leegality.com/sign/2c0c9c1e-7f0a-4a55-9a53-0f0d5b8e6a11",
"expiresAt": "2026-03-03T09:10:00.000Z"
}Start an Aadhaar eSign
POST/v1/sign/{token}/esign
For a recipient with auth: aadhaar, in place of submit. Takes the same body: the recipient's consent and, as they have no fields, no values. The server sends the document with the values of the signers before them drawn on it, and nothing else, to the eSign provider and answers the provider's signing page; send the signer there. The provider places the signature where its workflow says. The recipient becomes signed once the provider reports the signature. Asking again while an attempt is open answers the same page.
Auth The signing token in the path or the cvsign_link cookie.
Send an Idempotency-Key to retry safely: the same key and body within 24 hours return the first response. See retries.
Path parameters
token string Required
The signing token from the link (43 base64url characters), or link to use the token in the cvsign_link cookie. Anything else is refused with TOKEN_INVALID.
Matches ^([A-Za-z0-9_-]{43}|link)$
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
consent boolean Required
The signer agrees to sign electronically.
Always true
values array of objects Required
At most 500 items
Attributes of values
fieldId string Required
Not empty
value string Required
Signature and initials: PNG as base64. Text and name: the text. Checkbox: true or false. Date: an ISO date. An aadhaar box takes no value; leave it out.
Returns
200 OK. Where to send the signer. An 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 | TOKEN_INVALID: the link is unknown, used, expired or withdrawn. OTP_INVALID: the code is wrong (details.attemptsLeft), or the session is missing (details.otpRequired). OTP_EXPIRED: the code timed out or none was sent. |
| 403 | FIELD_NOT_YOURS: a value names a field that belongs to another recipient. |
| 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. |
| 413 | DOCUMENT_TOO_LARGE: a PDF or the whole request is over the limit (details.maxBytes). |
| 422 | DOCUMENT_INVALID: a file is not a readable PDF. PDF_ALREADY_SIGNED: a file already carries digital signatures; upload the unsigned original. REQUIRED_FIELDS_MISSING: required fields were left empty. INVALID_FIELD_VALUE: a value does not suit its field (PNG, date, length). |
| 429 | RATE_LIMITED: too many requests. Wait Retry-After seconds. |
| 502 | The eSign provider failed or could not be reached. Try again. |
curl -X POST https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/esign \
-H "Idempotency-Key: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d" \
-H "Content-Type: application/json" \
-d '{
"consent": true,
"values": [
{
"fieldId": "e9d2b7c1-4a6f-4e3b-8d5c-3f1a0b2c6d94",
"value": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg=="
}
]
}'const response = await fetch('https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/esign', {
method: 'POST',
headers: {
'Idempotency-Key': '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d',
'Content-Type': 'application/json',
},
body: JSON.stringify({
consent: true,
values: [
{
fieldId: 'e9d2b7c1-4a6f-4e3b-8d5c-3f1a0b2c6d94',
value: 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==',
},
],
}),
});
console.log(response.status, await response.json());import requests
response = requests.post(
"https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/esign",
headers={
"Idempotency-Key": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
},
json={
"consent": True,
"values": [
{
"fieldId": "e9d2b7c1-4a6f-4e3b-8d5c-3f1a0b2c6d94",
"value": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==",
},
],
},
timeout=30,
)
response.raise_for_status()
print(response.json())package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
)
func main() {
payload, err := json.Marshal(map[string]any{
"consent": true,
"values": []any{
map[string]any{
"fieldId": "e9d2b7c1-4a6f-4e3b-8d5c-3f1a0b2c6d94",
"value": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==",
},
},
})
if err != nil {
panic(err)
}
req, err := http.NewRequest("POST", "https://sign.codevibe.in/api/v1/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw/esign", bytes.NewReader(payload))
if err != nil {
panic(err)
}
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))
}{
"signUrl": "https://sandbox.leegality.com/sign/2c0c9c1e-7f0a-4a55-9a53-0f0d5b8e6a11",
"expiresAt": "2026-03-03T09:10:00.000Z"
}Open a signing link
GET/sign/{token}
Where signing links point. Stores the token in an HttpOnly, SameSite=Strict cvsign_link cookie (path /v1/sign, at most 24 hours) and redirects to the signing page, whose URL carries no token. The page then calls /v1/sign/link/... from the same origin. An unknown or used token clears the cookie and redirects all the same, adding ?state= with the reason (signed, completed, declined, voided, expired or invalid) and, when the envelope is known, &w=<workspaceId> so the page can explain it in the sender's brand. This route only reads: opening a link does not mark the document as viewed.
Auth None. This route is public.
Path parameters
token string Required
The signing token from the email.
Returns
303 See Other. Redirect to the signing page.
Location: The signing page, without the token; for a dead link with?state=.Set-Cookie:cvsign_link=<token>; Path=/v1/sign; HttpOnly; SameSite=Strict
Errors
| Status | When |
|---|---|
| 429 | RATE_LIMITED: too many requests. Wait Retry-After seconds. |
curl https://sign.codevibe.in/api/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw \
-iconst response = await fetch('https://sign.codevibe.in/api/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw', {
redirect: 'manual',
});
console.log(response.status, response.headers.get('location'));import requests
response = requests.get(
"https://sign.codevibe.in/api/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw",
allow_redirects=False,
timeout=30,
)
print(response.status_code, response.headers["Location"])package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://sign.codevibe.in/api/sign/q3X9vL2pR8mT4kW7nB1cF6hJ0dS5gY2uE9aZ3xK7oPw", nil)
if err != nil {
panic(err)
}
client := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error {
return http.ErrUseLastResponse
}}
res, err := client.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
fmt.Println(res.Status, res.Header.Get("Location"))
}HTTP/1.1 303 See Other
Location: /sign