Menu
Download Legacy Statistic
Download a statistic
POST
/api/stats/{name}/downloadUse it in a workflow
- Add a step and choose the Gorgias connector.
- Pick the Download Legacy Statistic action (under Statistics).
- Fill in the fields below, then reference the result from later steps as
{{downloadLegacyStatistic.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"filters": {
"period": {
"start_datetime": "2020-06-10T00:00:00-05:00",
"end_datetime": "2020-06-16T23:59:59-05:00"
},
"agents": [
12345,
67890
],
"channels": [
"chat",
"email"
],
"campaigns": [
"123",
"234"
],
"tags": [
321,
654,
987
],
"integrations": [
555,
777
],
"score": [
3,
4
]
}
}
Response
Returns 201 with a string. Read it in later steps with {{downloadLegacyStatistic.response.data.<field>}}.
Need more? See the Gorgias guide for connection setup and behaviour shared by every action.
Was this page helpful?