Send an event to an agent webhook endpoint
curl --request POST \
--url https://api.atako.ai/wh/{token} \
--header 'Content-Type: */*' \
--data '"<string>"'import requests
url = "https://api.atako.ai/wh/{token}"
payload = "<string>"
headers = {"Content-Type": "*/*"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '*/*'},
body: JSON.stringify('<string>')
};
fetch('https://api.atako.ai/wh/{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://api.atako.ai/wh/{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('<string>'),
CURLOPT_HTTPHEADER => [
"Content-Type: */*"
],
]);
$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.atako.ai/wh/{token}"
payload := strings.NewReader("\"<string>\"")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "*/*")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.atako.ai/wh/{token}")
.header("Content-Type", "*/*")
.body("\"<string>\"")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.atako.ai/wh/{token}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '*/*'
request.body = "\"<string>\""
response = http.request(request)
puts response.read_body{
"ok": true,
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "delivered",
"reason": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Agent Webhooks
Send an event to an agent webhook endpoint
The body is read raw and verified with the endpoint signature scheme (none, shared secret, generic HMAC, Standard Webhooks, Stripe, GitHub, custom). Transient outcomes (duplicate, filtered, rate-limited, over quota, paused) still answer 200 with the stored status, so providers do not retry into the limits.
POST
/
wh
/
{token}
Send an event to an agent webhook endpoint
curl --request POST \
--url https://api.atako.ai/wh/{token} \
--header 'Content-Type: */*' \
--data '"<string>"'import requests
url = "https://api.atako.ai/wh/{token}"
payload = "<string>"
headers = {"Content-Type": "*/*"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '*/*'},
body: JSON.stringify('<string>')
};
fetch('https://api.atako.ai/wh/{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://api.atako.ai/wh/{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('<string>'),
CURLOPT_HTTPHEADER => [
"Content-Type: */*"
],
]);
$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.atako.ai/wh/{token}"
payload := strings.NewReader("\"<string>\"")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "*/*")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.atako.ai/wh/{token}")
.header("Content-Type", "*/*")
.body("\"<string>\"")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.atako.ai/wh/{token}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '*/*'
request.body = "\"<string>\""
response = http.request(request)
puts response.read_body{
"ok": true,
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "delivered",
"reason": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Path Parameters
The endpoint token, from the url of the endpoint (/wh/<token>).
Body
*/*
The body is of type file.