Download a campaign report
curl --request GET \
--url https://agents.labs.bandwidth.com/api/v1/campaign/{campaign_id}/report \
--header 'Authorization: Bearer <token>'import requests
url = "https://agents.labs.bandwidth.com/api/v1/campaign/{campaign_id}/report"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://agents.labs.bandwidth.com/api/v1/campaign/{campaign_id}/report', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<string>{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Campaigns
Download a campaign report
Export completed campaign runs as CSV.
GET
/
api
/
v1
/
campaign
/
{campaign_id}
/
report
Download a campaign report
curl --request GET \
--url https://agents.labs.bandwidth.com/api/v1/campaign/{campaign_id}/report \
--header 'Authorization: Bearer <token>'import requests
url = "https://agents.labs.bandwidth.com/api/v1/campaign/{campaign_id}/report"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://agents.labs.bandwidth.com/api/v1/campaign/{campaign_id}/report', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<string>{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Requires a Labs
super_user OAuth bearer token. Optional ISO 8601 start_date and end_date filter creation time. The response is a text/csv attachment, not JSON. A campaign outside the selected workspace returns 404.Authorizations
Bandwidth Labs OAuth access token. Uses the user's selected workspace; the workspace header is not required. Do not also send an API key. Bearer-only operations may additionally require the Labs super_user role.
Path Parameters
Query Parameters
Filter runs created on or after this datetime (ISO 8601)
Filter runs created on or before this datetime (ISO 8601)
Response
CSV download
The response is of type string.