Cases
Get the total number of cases for a firm on the current date or the end of the date supplied.
Headers
-
Content-Type string
-
Accept string
Query parameters
-
date string
The date to get the key metric from in YYYY-MM-DD format (calculations are made from the end of the day).
GET /api/v1/metrics/cases
curl \
-X GET https://api.plannrcrm.com/api/v1/metrics/cases \
-H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"date":"2023-01-01"}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json
# Payload
{
"date": "2023-01-01"
}
Response examples (200)
{
"data": [
{
"data": "123",
"date": "2023-06-30",
"metric": "time_logged",
"requested_at": "2023-07-01 12:30:45"
}
]
}