Metrics

Get usage metrics

Gets the usage metrics for an organization.

GET
/organizations/{organizationId}/metrics
x-api-key<token>

In: header

Path Parameters

organizationIdstring
Formatuuid

Query Parameters

endDatestring
Formatdate-time
project?array<string>
startDatestring
Formatdate-time

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.concord.tech/privacy-v1/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/metrics?endDate=2019-08-24T14%3A15%3A22Z&startDate=2019-08-24T14%3A15%3A22Z"
{
  "sessions": {
    "dailySessionCounts": [
      {
        "date": "string",
        "count": 0
      }
    ],
    "dateRangeTotal": 0,
    "trend": {}
  },
  "consentEvents": {
    "browserCounts": [
      {
        "browser": "string",
        "count": 0
      }
    ],
    "categoryStats": {},
    "dailyEventCounts": [
      {
        "date": "string",
        "count": 0
      }
    ],
    "fullConsent": 0,
    "geographyCounts": [
      {
        "country": "string",
        "count": 0
      }
    ],
    "noConsent": 0,
    "osCounts": [
      {
        "os": "string",
        "count": 0
      }
    ],
    "partialConsent": 0,
    "totalCategories": 0,
    "totalEvents": 0,
    "totalUsers": 0,
    "trend": {},
    "trendData": {}
  },
  "complianceRequests": {
    "dailyRequestCounts": [
      {
        "date": "string",
        "count": 0
      }
    ],
    "dateRangeTotal": 0,
    "geographyCounts": [
      {
        "country": "string",
        "count": 0
      }
    ],
    "resolutionMetrics": {
      "avgResolutionDays": 0,
      "medianResolutionDays": 0,
      "minResolutionDays": 0,
      "maxResolutionDays": 0
    },
    "statusStats": {},
    "statusByType": {},
    "totalRequests": 0,
    "trend": {},
    "trendData": {},
    "typeStats": {}
  }
}
{
  "statusCode": 404,
  "error": "Not Found",
  "message": "string"
}
{
  "statusCode": 404,
  "error": "Not Found",
  "message": "Forbidden"
}
{
  "statusCode": 403,
  "error": "Forbidden",
  "message": "Forbidden"
}
{
  "statusCode": 404,
  "error": "Not Found",
  "message": "Not Found"
}
{
  "statusCode": 422,
  "error": "Unprocessable Entity",
  "message": "string"
}
{
  "statusCode": 500,
  "error": "Internal Server Error",
  "message": "Internal Server Error"
}