Sift | Docs
APIReferenceREST (HTTP/JSON)Report template service

GetReportTemplate

Retrieve a report template.

GET
/v1/organizations/{organizationId}/report_templates/{clientKey}

Path Parameters

organizationId
Required
string

clientKey
Required
string

Query Parameters

reportTemplateIdstring

curl -X GET "<API_URL>/v1/organizations/string/report_templates/string?reportTemplateId=string" \
  -H "Authorization: Bearer <API_KEY>"

A successful response.

{
  "reportTemplate": {
    "reportTemplateId": "string",
    "organizationId": "string",
    "clientKey": "string",
    "name": "string",
    "description": "string",
    "archivedDate": "2019-08-24T14:15:22Z",
    "createdByUserId": "string",
    "modifiedByUserId": "string",
    "createdDate": "2019-08-24T14:15:22Z",
    "modifiedDate": "2019-08-24T14:15:22Z",
    "rules": [
      {
        "ruleId": "string",
        "ruleVersionId": "string",
        "ruleVersionNumber": 0,
        "clientKey": "string"
      }
    ],
    "tags": [
      {
        "tagName": "string"
      }
    ],
    "metadata": [
      {
        "key": {
          "name": "string",
          "type": "METADATA_KEY_TYPE_UNSPECIFIED",
          "archivedDate": "2019-08-24T14:15:22Z"
        },
        "stringValue": "string",
        "numberValue": 0.1,
        "booleanValue": true,
        "archivedDate": "2019-08-24T14:15:22Z"
      }
    ]
  }
}