curl --request PATCH \
--url https://api.tela.com/webhook/{webhookId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"events": [
"task.completed",
"task.approved",
"task.failed"
],
"isActive": false
}
'import requests
url = "https://api.tela.com/webhook/{webhookId}"
payload = {
"events": ["task.completed", "task.approved", "task.failed"],
"isActive": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({events: ['task.completed', 'task.approved', 'task.failed'], isActive: false})
};
fetch('https://api.tela.com/webhook/{webhookId}', 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://api.tela.com/webhook/{webhookId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'events' => [
'task.completed',
'task.approved',
'task.failed'
],
'isActive' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.tela.com/webhook/{webhookId}"
payload := strings.NewReader("{\n \"events\": [\n \"task.completed\",\n \"task.approved\",\n \"task.failed\"\n ],\n \"isActive\": false\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://api.tela.com/webhook/{webhookId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"events\": [\n \"task.completed\",\n \"task.approved\",\n \"task.failed\"\n ],\n \"isActive\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tela.com/webhook/{webhookId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"events\": [\n \"task.completed\",\n \"task.approved\",\n \"task.failed\"\n ],\n \"isActive\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "7d8e9f0a-1b2c-4d3e-8f4a-5b6c7d8e9f0a",
"promptApplicationId": "c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f",
"name": "ERP sync",
"url": "https://erp.example.com/hooks/tela",
"events": [
"task.completed",
"task.approved"
],
"headers": {
"authorization": "Bearer erp-webhook-token",
"x-source": "tela"
},
"sensitiveHeaders": [
"authorization"
],
"method": "POST",
"isActive": true,
"createdAt": "2025-06-10T08:00:00.000Z",
"updatedAt": "2025-06-10T08:00:00.000Z",
"deletedAt": null
}Update webhook subscription
Partially updates a webhook subscription. Only the fields present in the body are changed; headers and events replace the stored value entirely rather than merging.
curl --request PATCH \
--url https://api.tela.com/webhook/{webhookId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"events": [
"task.completed",
"task.approved",
"task.failed"
],
"isActive": false
}
'import requests
url = "https://api.tela.com/webhook/{webhookId}"
payload = {
"events": ["task.completed", "task.approved", "task.failed"],
"isActive": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({events: ['task.completed', 'task.approved', 'task.failed'], isActive: false})
};
fetch('https://api.tela.com/webhook/{webhookId}', 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://api.tela.com/webhook/{webhookId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'events' => [
'task.completed',
'task.approved',
'task.failed'
],
'isActive' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.tela.com/webhook/{webhookId}"
payload := strings.NewReader("{\n \"events\": [\n \"task.completed\",\n \"task.approved\",\n \"task.failed\"\n ],\n \"isActive\": false\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://api.tela.com/webhook/{webhookId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"events\": [\n \"task.completed\",\n \"task.approved\",\n \"task.failed\"\n ],\n \"isActive\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tela.com/webhook/{webhookId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"events\": [\n \"task.completed\",\n \"task.approved\",\n \"task.failed\"\n ],\n \"isActive\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "7d8e9f0a-1b2c-4d3e-8f4a-5b6c7d8e9f0a",
"promptApplicationId": "c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f",
"name": "ERP sync",
"url": "https://erp.example.com/hooks/tela",
"events": [
"task.completed",
"task.approved"
],
"headers": {
"authorization": "Bearer erp-webhook-token",
"x-source": "tela"
},
"sensitiveHeaders": [
"authorization"
],
"method": "POST",
"isActive": true,
"createdAt": "2025-06-10T08:00:00.000Z",
"updatedAt": "2025-06-10T08:00:00.000Z",
"deletedAt": null
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Webhook subscription ID
Body
All fields optional; only provided fields are changed.
256Same restrictions as on creation.
2048Replaces the subscribed events.
Events a webhook can subscribe to:
task.completed— a task run finished successfully and is ready for review.task.approved— a task was reviewed and approved.task.approval-revoke— an approved task was sent back tovalidating.task.failed— a task run ended with a failure (errorMessageis set in the payload).
task.completed, task.approved, task.approval-revoke, task.failed Replaces the configured headers.
Show child attributes
Show child attributes
10Moves the webhook to another application.
Response
Updated webhook subscription
A webhook subscription of a Workstation application.
Application the webhook belongs to.
256Endpoint that receives the events.
2048Events a webhook can subscribe to:
task.completed— a task run finished successfully and is ready for review.task.approved— a task was reviewed and approved.task.approval-revoke— an approved task was sent back tovalidating.task.failed— a task run ended with a failure (errorMessageis set in the payload).
task.completed, task.approved, task.approval-revoke, task.failed Headers sent verbatim with every delivery. Use them for authentication (for example authorization or x-api-key).
Show child attributes
Show child attributes
Names of headers considered sensitive. Stored as provided; the API does not currently mask them in responses.
HTTP method used for deliveries. Defaults to POST.
10Inactive webhooks receive no deliveries.