analytics/exports
. Whenever I try and execute the request I get 0 progress and an error message(below). Error Message: {"_error":{"status":401,"title":"Unauthenticated","message":"JSON Web Token error"}}
Here is all the code if it helps:
import requests
url = "https://api2.frontapp.com/analytics/exports"
payload = {
"start": 0,
"end": 1652970430,
"type": "messages"
}
headers = {
"Accept": "application/json",
"Content-Type": "application/json",
"Authorization": "Bearer MY_TOKEN_VALUE"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)