v1

latestOpenAPI 3.0.02026-07-2455104.8 MB
Report

View report

Returns a single report by ID

get/api/v1/analytics/report/{id}

Path parameters

idstring required

Resource identifier.

Example:17

The resource's identifier.

Response

Report response

Example response

{
  "data": [
    {
      "id": 1,
      "title": "My report",
      "description": "This is my report",
      "userId": 1,
      "sqlString": "SELECT * FROM users",
      "isFavorite": true,
      "collectionId": 1,
      "lastEditedBy": "John Doe",
      "tags": [
        {
          "id": 1,
          "name": "Official",
          "description": "This is my tag",
          "palette": "default",
          "isOfficial": true,
          "createdAt": "2023-01-01T00:00:00+00:00",
          "updatedAt": "2023-01-01T00:00:00+00:00"
        }
      ],
      "parameters": [
        {
          "name": "date",
          "type": "string",
          "defaultValue": "2021-01-01"
        }
      ],
      "createdAt": "2023-01-01T00:00:00+00:00",
      "updatedAt": "2023-01-01T00:00:00+00:00"
    }
  ]
}