curl --request POST \
--url 'https://sandbox.circularo.com/api/v1/webhooks?token=' \
--header 'Content-Type: application/json' \
--data '
{
"callbackUrl": "https://example.com/webhook/circularo",
"type": "organization",
"basicAuth": {
"username": "circularo-hook",
"password": "s3cr3t-p4ssw0rd"
},
"hmacSecret": "your-secret-key",
"name": "acme-corp"
}
'import requests
url = "https://sandbox.circularo.com/api/v1/webhooks?token="
payload = {
"callbackUrl": "https://example.com/webhook/circularo",
"type": "organization",
"basicAuth": {
"username": "circularo-hook",
"password": "s3cr3t-p4ssw0rd"
},
"hmacSecret": "your-secret-key",
"name": "acme-corp"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
callbackUrl: 'https://example.com/webhook/circularo',
type: 'organization',
basicAuth: {username: 'circularo-hook', password: 's3cr3t-p4ssw0rd'},
hmacSecret: 'your-secret-key',
name: 'acme-corp'
})
};
fetch('https://sandbox.circularo.com/api/v1/webhooks?token=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.circularo.com/api/v1/webhooks?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'callbackUrl' => 'https://example.com/webhook/circularo',
'type' => 'organization',
'basicAuth' => [
'username' => 'circularo-hook',
'password' => 's3cr3t-p4ssw0rd'
],
'hmacSecret' => 'your-secret-key',
'name' => 'acme-corp'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/webhooks?token="
payload := strings.NewReader("{\n \"callbackUrl\": \"https://example.com/webhook/circularo\",\n \"type\": \"organization\",\n \"basicAuth\": {\n \"username\": \"circularo-hook\",\n \"password\": \"s3cr3t-p4ssw0rd\"\n },\n \"hmacSecret\": \"your-secret-key\",\n \"name\": \"acme-corp\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.circularo.com/api/v1/webhooks?token=")
.header("Content-Type", "application/json")
.body("{\n \"callbackUrl\": \"https://example.com/webhook/circularo\",\n \"type\": \"organization\",\n \"basicAuth\": {\n \"username\": \"circularo-hook\",\n \"password\": \"s3cr3t-p4ssw0rd\"\n },\n \"hmacSecret\": \"your-secret-key\",\n \"name\": \"acme-corp\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/webhooks?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"callbackUrl\": \"https://example.com/webhook/circularo\",\n \"type\": \"organization\",\n \"basicAuth\": {\n \"username\": \"circularo-hook\",\n \"password\": \"s3cr3t-p4ssw0rd\"\n },\n \"hmacSecret\": \"your-secret-key\",\n \"name\": \"acme-corp\"\n}"
response = http.request(request)
puts response.read_body{
"id": "as5Va0dUP6asH0asd95f",
"basicAuth": {
"username": "circularo-hook"
},
"callbackUrl": "https://example.com/webhook/circularo",
"createDate": "2026-03-14T09:12:44.318Z",
"creator": "admin@example.com",
"hmacSecret": "your-secret-key",
"name": "acme-corp",
"type": "organization"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Create a webhook
POST /webhooks
Registers a callback endpoint that the platform posts to whenever something happens to a document in the watched context - it is created, edited or deleted, a signature is requested, delegated, rejected, cancelled or left to expire, a document is signed or completed, or a simple action is carried out on it. Each delivery is a POST whose body names the document, the event, when it happened and, where somebody set it off rather than the platform itself, who that was.
What the webhook watches is settled at creation and cannot be changed afterwards; moving it elsewhere means removing it and setting up another. A tenant-wide webhook takes the events of every document in the tenant and only a system administrator can set one up. An organization webhook takes only the events of documents belonging to that organization - a system administrator names it, an organization administrator always gets their own.
Deliveries are secured one of two ways, never both: HTTP Basic credentials, or an HMAC secret the payloads are signed with. Send neither and the endpoint is called unauthenticated. Each event is delivered once and is not tried again if it fails, and every attempt, successful or not, is written to the audit log.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
Required user rights: use_webhooks
Required user role: admin or organization_admin
curl --request POST \
--url 'https://sandbox.circularo.com/api/v1/webhooks?token=' \
--header 'Content-Type: application/json' \
--data '
{
"callbackUrl": "https://example.com/webhook/circularo",
"type": "organization",
"basicAuth": {
"username": "circularo-hook",
"password": "s3cr3t-p4ssw0rd"
},
"hmacSecret": "your-secret-key",
"name": "acme-corp"
}
'import requests
url = "https://sandbox.circularo.com/api/v1/webhooks?token="
payload = {
"callbackUrl": "https://example.com/webhook/circularo",
"type": "organization",
"basicAuth": {
"username": "circularo-hook",
"password": "s3cr3t-p4ssw0rd"
},
"hmacSecret": "your-secret-key",
"name": "acme-corp"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
callbackUrl: 'https://example.com/webhook/circularo',
type: 'organization',
basicAuth: {username: 'circularo-hook', password: 's3cr3t-p4ssw0rd'},
hmacSecret: 'your-secret-key',
name: 'acme-corp'
})
};
fetch('https://sandbox.circularo.com/api/v1/webhooks?token=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.circularo.com/api/v1/webhooks?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'callbackUrl' => 'https://example.com/webhook/circularo',
'type' => 'organization',
'basicAuth' => [
'username' => 'circularo-hook',
'password' => 's3cr3t-p4ssw0rd'
],
'hmacSecret' => 'your-secret-key',
'name' => 'acme-corp'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/webhooks?token="
payload := strings.NewReader("{\n \"callbackUrl\": \"https://example.com/webhook/circularo\",\n \"type\": \"organization\",\n \"basicAuth\": {\n \"username\": \"circularo-hook\",\n \"password\": \"s3cr3t-p4ssw0rd\"\n },\n \"hmacSecret\": \"your-secret-key\",\n \"name\": \"acme-corp\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.circularo.com/api/v1/webhooks?token=")
.header("Content-Type", "application/json")
.body("{\n \"callbackUrl\": \"https://example.com/webhook/circularo\",\n \"type\": \"organization\",\n \"basicAuth\": {\n \"username\": \"circularo-hook\",\n \"password\": \"s3cr3t-p4ssw0rd\"\n },\n \"hmacSecret\": \"your-secret-key\",\n \"name\": \"acme-corp\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/webhooks?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"callbackUrl\": \"https://example.com/webhook/circularo\",\n \"type\": \"organization\",\n \"basicAuth\": {\n \"username\": \"circularo-hook\",\n \"password\": \"s3cr3t-p4ssw0rd\"\n },\n \"hmacSecret\": \"your-secret-key\",\n \"name\": \"acme-corp\"\n}"
response = http.request(request)
puts response.read_body{
"id": "as5Va0dUP6asH0asd95f",
"basicAuth": {
"username": "circularo-hook"
},
"callbackUrl": "https://example.com/webhook/circularo",
"createDate": "2026-03-14T09:12:44.318Z",
"creator": "admin@example.com",
"hmacSecret": "your-secret-key",
"name": "acme-corp",
"type": "organization"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Body
Address every event is posted to. It has to be an absolute URL reachable from the platform whose endpoint accepts POST requests, and it must not carry a user name or a password (https://user:password@example.com/webhook) - HTTP Basic credentials belong in basicAuth.
2048"https://example.com/webhook/circularo"
What the webhook watches: tenant for every document in the tenant, which only a system administrator may set up, or organization for the documents of a single organization. It is settled here for good and no later change can move the webhook to another context.
tenant, organization "organization"
Secret every payload is signed with, as an HMAC-SHA256 signature delivered in the X-Circularo-Signature header in lowercase hexadecimal, so that the receiving endpoint can tell the request really comes from Circularo. It is computed over the raw request body, which is what the receiver has to verify it against, before parsing it. A webhook secures its deliveries either this way or with basicAuth, never both.
255"your-secret-key"
Organization the webhook is to watch. A system administrator has to name an existing one when setting up an organization webhook; an organization administrator always gets their own, whatever is sent. It carries no meaning for a tenant-wide webhook, which is filed under the tenant itself.
"acme-corp"
Response
Returns the webhook as it was stored, including the identifier it is addressed by.