analytics
POST
https://hermeticor.com /v1/analytics/dashboards/owners/batch/update Reassign dashboards to another member (null = unassigned)
Request body
application/json
idsstring[]requiredownerIdstringrequired{
"ids": [
"string"
],
"ownerId": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/analytics/dashboards/owners/batch/update" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ids":["string"],"ownerId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"count": 0
}Schema
countintegerrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPUT
https://hermeticor.com /v1/analytics/dashboards/{id}/widgets/{reportId} Add a report widget, or replace the one already showing it
Parameters
idstringpathrequiredreportIdstringpathrequiredRequest body
application/json
titlestringsizestring{
"title": "string",
"size": "half"
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/analytics/dashboards/{id}/widgets/{reportId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"string","size":"half"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"name": "string",
"widgets": [
{
"id": "string",
"reportId": "string",
"title": "string",
"size": "half"
}
],
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z",
"ownerId": null,
"visibility": "shared"
}Schema
idstringrequirednamestringrequiredwidgetsWidgetsItem[]requiredShow child parameters
idstringrequiredreportIdstringrequiredtitlestringsizestringrequiredcreatedAtstringrequiredupdatedAtstringrequiredownerIdstringrequiredvisibilitystringrequiredDELETE
https://hermeticor.com /v1/analytics/dashboards/{id}/widgets/{reportId} Parameters
idstringpathrequiredreportIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/analytics/dashboards/{id}/widgets/{reportId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/analytics/dashboards/{id}/export Every widget as one CSV
Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/analytics/dashboards/{id}/export" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"filename": "string",
"csv": "string"
}Schema
filenamestringrequiredcsvstringrequiredGET
https://hermeticor.com /v1/analytics/dashboards/{id}/definition/export The dashboard and its reports as portable JSON (no schedules, recipients or sharing)
Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/analytics/dashboards/{id}/definition/export" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"version": 1,
"dashboard": {
"name": "string",
"widgets": [
{
"report": 0,
"title": "string",
"size": "half"
}
]
},
"reports": [
{
"name": "string",
"query": {
"kind": "messages",
"from": "string",
"to": "string",
"groupBy": "day",
"sourceKind": "string",
"sourceId": "string",
"channel": "email",
"includeMachineOpens": true
},
"rollingDays": null
}
]
}Schema
versionnumberrequireddashboardobjectrequiredShow child parameters
namestringrequiredwidgetsobject[]requiredShow child parameters
reportintegerrequiredtitlestringsizestringrequiredreportsobject[]requiredShow child parameters
namestringrequiredqueryQueryVariant | QueryVariant2 | QueryVariant3 | QueryVariant4 | QueryVariant5 | QueryVariant6requiredrollingDaysintegerrequiredPOST
https://hermeticor.com /v1/analytics/dashboards/import Create a dashboard and its reports from an exported definition
Request body
application/json
versionnumberrequireddashboardobjectrequiredShow child parameters
namestringrequiredwidgetsobject[]requiredShow child parameters
reportintegerrequiredtitlestringsizestringreportsobject[]requiredShow child parameters
namestringrequiredqueryQueryVariant7 | QueryVariant8 | QueryVariant9 | QueryVariant10 | QueryVariant11 | QueryVariant12requiredrollingDaysinteger{
"version": 1,
"dashboard": {
"name": "string",
"widgets": [
{
"report": 0,
"title": "string",
"size": "half"
}
]
},
"reports": [
{
"name": "string",
"query": {
"kind": "messages",
"from": "string",
"to": "string",
"groupBy": "day",
"sourceKind": "string",
"sourceId": "string",
"channel": "email",
"includeMachineOpens": true
},
"rollingDays": null
}
]
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/analytics/dashboards/import" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"version":1,"dashboard":{"name":"string","widgets":[{"report":0,"title":"string","size":"half"}]},"reports":[{"name":"string","query":{"kind":"messages","from":"string","to":"string","groupBy":"day","sourceKind":"string","sourceId":"string","channel":"email","includeMachineOpens":true},"rollingDays":null}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/analytics/dashboards/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/analytics/dashboards/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/analytics/dashboards/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/analytics/dashboards/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredPATCH
https://hermeticor.com /v1/analytics/dashboards/{id} Parameters
idstringpathrequiredRequest body
application/json
namestringwidgetsWidgetsItem2[]Show child parameters
reportIdstringrequiredtitlestringsizestring{
"name": "string",
"widgets": [
{
"reportId": "string",
"title": "string",
"size": "half"
}
]
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/analytics/dashboards/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","widgets":[{"reportId":"string","title":"string","size":"half"}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/analytics/dashboards/{id}/clone Copy a dashboard with its widgets
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/analytics/dashboards/{id}/clone" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated