Provider callbacks
Where an Aadhaar eSign provider reports what became of a signing request. Called by the provider, never by your code. Each callback is verified with the credentials of the workspace that started the request.
Receive an eSign provider's callback
POST/v1/esign/webhooks/{provider}
Set this address as the webhook of your eSign provider account. The body names the signing request; the server finds the workspace that started it and verifies the body with that workspace's provider credentials before acting on it. Repeats change nothing. Bodies over 256 KB are refused.
Auth The link itself.
Path parameters
provider string Required
The eSign provider's name, for example leegality.
Matches ^[a-z0-9][a-z0-9_-]{0,39}$
Request body
A object.
Returns
200 OK. The callback was verified. It may have changed nothing. An object.
Errors
| Status | When |
|---|---|
| 401 | The callback could not be verified. |
| 404 | No signing request matches the callback, or eSign is not set up. |
| 413 | DOCUMENT_TOO_LARGE: a PDF or the whole request is over the limit (details.maxBytes). |
| 429 | RATE_LIMITED: too many requests. Wait Retry-After seconds. |
sh
curl -X POST https://sign.codevibe.in/api/v1/esign/webhooks/string \
-H "Content-Type: application/json" \
-d '{}'ts
const response = await fetch('https://sign.codevibe.in/api/v1/esign/webhooks/string', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({}),
});
console.log(response.status, await response.json());python
import requests
response = requests.post(
"https://sign.codevibe.in/api/v1/esign/webhooks/string",
json={},
timeout=30,
)
response.raise_for_status()
print(response.json())go
package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
)
func main() {
payload, err := json.Marshal(map[string]any{})
if err != nil {
panic(err)
}
req, err := http.NewRequest("POST", "https://sign.codevibe.in/api/v1/esign/webhooks/string", bytes.NewReader(payload))
if err != nil {
panic(err)
}
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))
}json
{
"ok": true
}