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

endDateinteger
project?array<string>
startDatestring

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=0&startDate=string"
{
  "offset": 0,
  "total": 0,
  "count": 0,
  "items": [
    {
      "id": [
        null
      ],
      "finalized": [
        null
      ],
      "dateCreated": [
        null
      ],
      "dateUpdated": [
        null
      ],
      "period": 0,
      "project": "9ec8a81a-31b2-4a83-bcd8-cef9150932d2",
      "complianceRequests": {
        "created": 0,
        "stateCount": {},
        "stateChanged": {}
      },
      "consentEvents": {
        "created": 0,
        "read": 0
      },
      "sessions": {
        "created": 0,
        "unique": 0
      }
    }
  ]
}
{
  "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"
}