Get Post Call Webhook
curl --request GET \
--url https://api.bland.ai/v1/postcall/webhooks/{call_id} \
--header 'authorization: <authorization>'import requests
url = "https://api.bland.ai/v1/postcall/webhooks/{call_id}"
headers = {"authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {authorization: '<authorization>'}};
fetch('https://api.bland.ai/v1/postcall/webhooks/{call_id}', 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.bland.ai/v1/postcall/webhooks/{call_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bland.ai/v1/postcall/webhooks/{call_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bland.ai/v1/postcall/webhooks/{call_id}")
.header("authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bland.ai/v1/postcall/webhooks/{call_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"data": {
"payload": {},
"url": "<string>",
"created_at": "<string>",
"call_id": "<string>",
"user_id": "<string>",
"metadata": [
{
"sent_at": "<string>",
"response_code": 123,
"response_time": "<string>",
"send_type": "<string>"
}
]
},
"errors": [
{
"error": "<string>",
"message": "<string>"
}
]
}Post Call
Get Post Call Webhook
Get the post call webhook data for a specific call.
GET
/
v1
/
postcall
/
webhooks
/
{call_id}
Get Post Call Webhook
curl --request GET \
--url https://api.bland.ai/v1/postcall/webhooks/{call_id} \
--header 'authorization: <authorization>'import requests
url = "https://api.bland.ai/v1/postcall/webhooks/{call_id}"
headers = {"authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {authorization: '<authorization>'}};
fetch('https://api.bland.ai/v1/postcall/webhooks/{call_id}', 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.bland.ai/v1/postcall/webhooks/{call_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bland.ai/v1/postcall/webhooks/{call_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bland.ai/v1/postcall/webhooks/{call_id}")
.header("authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bland.ai/v1/postcall/webhooks/{call_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"data": {
"payload": {},
"url": "<string>",
"created_at": "<string>",
"call_id": "<string>",
"user_id": "<string>",
"metadata": [
{
"sent_at": "<string>",
"response_code": 123,
"response_time": "<string>",
"send_type": "<string>"
}
]
},
"errors": [
{
"error": "<string>",
"message": "<string>"
}
]
}Overview
Retrieve the post call webhook data for a specific call using its call ID. This endpoint returns the webhook data that was sent when the call completed.Headers
Your org API key for authentication.
Path Parameters
The unique identifier of the call to get the webhook data for.
Response
The post call webhook and send history for this call.
Show Properties
Show Properties
The post call webhook payload, contains information about the call.
The URL the payload inforamtion was sent to
Timestamp of when the webhook was first sent
The call ID associated with this webhook
The ID of the org this webhook was sent from
Array of objects containing metadata about webhook spawns, creates, and resends. Each object has the following properties:
Show Array Item Properties
Show Array Item Properties
Timestamp of when this webhook attempt was sent
HTTP response code received from the webhook endpoint
Time taken to receive a response from the webhook endpoint, appended with “ms”
How this webhook was triggered. Can be:
- “resend”: Webhook was manually resent
- “create”: Webhook was recreated outside normal flow
- “spawn”: Webhook was created by normal call flow
Docs for agents: llms.txt
Was this page helpful?
⌘I