Discussions

Ask a Question
Back to All

Reporting API Error

Hello ,

I was using reporting API to create and get reports. It was working till a day before but suddenly giving a random error:

{"errors":[{"code":1116,"message":"CAPTURE_CANDIDATE_SPECIFIC is invalid.","field":"report"}]}

I checked a report list API and can find CAPTURE_CANDIDATE_SPECIFIC is still available.

I am using following code ;

< import requests

url = "https://api.paradox.ai/api/v1/public/reporting/reports"

payload = {
"callbackUrl": "http://my.server.com/bar",
"report": "CONVERSATION_DIVERSITY_ASSESSMENT",
"from_date": "2024-03-01",
"to_date": "2024-03-02"
}
headers = {
"accept": "application/json",
"Authorization": "Bearer ",
"content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text) >


  1. Has there been any changes in API?
  2. Is there something I am doing wrong?

Let me know please :)