Export Csv
curl --request GET \
--url https://api.peachdeskai.com/api/v1/analytics/post-call-variables/export.csv \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.peachdeskai.com/api/v1/analytics/post-call-variables/export.csv"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.peachdeskai.com/api/v1/analytics/post-call-variables/export.csv', 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.peachdeskai.com/api/v1/analytics/post-call-variables/export.csv",
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: Bearer <token>"
],
]);
$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.peachdeskai.com/api/v1/analytics/post-call-variables/export.csv"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.peachdeskai.com/api/v1/analytics/post-call-variables/export.csv")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.peachdeskai.com/api/v1/analytics/post-call-variables/export.csv")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Post-Call Variables
Export Raw Values as CSV
Stream the raw extracted values for the current filter as a formula-injection-safe CSV.
GET
/
api
/
v1
/
analytics
/
post-call-variables
/
export.csv
Export Csv
curl --request GET \
--url https://api.peachdeskai.com/api/v1/analytics/post-call-variables/export.csv \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.peachdeskai.com/api/v1/analytics/post-call-variables/export.csv"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.peachdeskai.com/api/v1/analytics/post-call-variables/export.csv', 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.peachdeskai.com/api/v1/analytics/post-call-variables/export.csv",
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: Bearer <token>"
],
]);
$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.peachdeskai.com/api/v1/analytics/post-call-variables/export.csv"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.peachdeskai.com/api/v1/analytics/post-call-variables/export.csv")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.peachdeskai.com/api/v1/analytics/post-call-variables/export.csv")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Stream the raw extracted values for one field, across every run in the current filter window, as a CSV attachment. Powers the тАЬExport raw valuesтАЭ action on every extraction chart card.
GET /api/v1/analytics/post-call-variables/export.csv
The response is text/csv with a Content-Disposition: attachment; filename="<field>.csv" header. Cells beginning with =, +, -, @, tab, or carriage return are prefixed with a single quote (') so the value is not interpreted as a formula by spreadsheet software.
Query parameters
string
required
Comma-separated workflow ids.
string
required
Field name defined on the workflowтАЩs extraction schema.
string (ISO 8601)
Start of the window (inclusive). Defaults to
to - 30 days.string (ISO 8601)
End of the window (exclusive). Defaults to now.
Call-attribute filters
All optional; see Overview тЖТ Call-attribute filters.string
string
string
string
boolean
boolean
boolean
string
Response
Content-Type: text/csv. Columns:
| Column | Notes |
|---|---|
workflow_run_id | Integer id of the run. |
workflow_id | Integer id of the workflow that produced the run. |
started_at | ISO 8601 timestamp. |
disposition | Post-call disposition, or empty when absent. |
field_value | Raw extracted value. Booleans as true/false, numbers as their string form, text verbatim. Nulls are empty. Values that would start with =/+/-/@/\t/\r are prefixed with '. |
extraction_error | Populated when the extraction task failed for the row; otherwise empty. |
Example
cURL
curl -OJ "https://api.peachdeskai.com/api/v1/analytics/post-call-variables/export.csv?workflow_ids=42&field_name=quoted_amount&from=2026-07-01T00:00:00Z&to=2026-08-01T00:00:00Z" \
-H "X-API-Key: $PEACHDESK_API_KEY"
Example body
workflow_run_id,workflow_id,started_at,disposition,field_value,extraction_error
8801,42,2026-07-31T14:22:11Z,resolved,215.00,
8763,42,2026-07-31T13:04:52Z,callback_scheduled,,extraction_timeout
8720,42,2026-07-31T11:47:19Z,resolved,'=SUM(A1),
Errors
| Status | When |
|---|---|
400 | workflow_ids missing, empty, or contains a non-integer id. |
400 | from > to. |
404 | Any workflow_id does not belong to the callerтАЩs organization. |
Authorizations
SessionAuthApiKeyAuth
Interactive user session: the login JWT, sent as Authorization: Bearer <token>.
Query Parameters
Response
Successful Response

