curl --request GET \
--url https://app.msportal.ai/api/public/v1/report-templates/{id} \
--header 'Authorization: Bearer <token>'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"isShared": true,
"reportTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"templateStructure": {
"blocks": [
{
"id": "<string>",
"type": "<string>",
"params": {},
"layout": {
"x": 1,
"y": 1,
"w": 2,
"h": 2
}
}
],
"metadata": {
"title": "<string>",
"subtitle": "<string>",
"showHeader": true,
"showFooter": true,
"showPageNumbers": true
},
"pagePreset": "<string>",
"displaySettings": {
"pageSize": "<string>",
"orientation": "<string>",
"margins": {}
}
}
}
}Retrieve a single report template by ID. Use includeStructure=true to include the full template structure.
curl --request GET \
--url https://app.msportal.ai/api/public/v1/report-templates/{id} \
--header 'Authorization: Bearer <token>'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"isShared": true,
"reportTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"templateStructure": {
"blocks": [
{
"id": "<string>",
"type": "<string>",
"params": {},
"layout": {
"x": 1,
"y": 1,
"w": 2,
"h": 2
}
}
],
"metadata": {
"title": "<string>",
"subtitle": "<string>",
"showHeader": true,
"showFooter": true,
"showPageNumbers": true
},
"pagePreset": "<string>",
"displaySettings": {
"pageSize": "<string>",
"orientation": "<string>",
"margins": {}
}
}
}
}Use your API key as a Bearer token. API keys can be generated in Settings → Integrations → API Access.
Template ID
Include full template structure in response
true, false Report template details (with or without structure based on query param)
Show child attributes