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, data=payload, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'Content-Type': '*/*'}, body: '<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 => "<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{
"challenge": "<string>",
"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, Slack, 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. On a slack endpoint, a signed Events API url_verification answers { "challenge": "<value>" } and is not stored.
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, data=payload, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'Content-Type': '*/*'}, body: '<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 => "<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{
"challenge": "<string>",
"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>"
}Body
*/*
The body is of type file.
Response
status is delivered, pending_agent, deduped, skipped or quarantined; reason is set for skipped/quarantined. Slack url_verification: { challenge } only.