curl --request POST \
--url https://app.msportal.ai/api/public/v1/reports \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reportTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateStart": "<string>",
"dateEnd": "<string>",
"description": "<string>",
"reportTemplateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reportStructure": {
"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": {}
}
},
"status": "draft"
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"status": "draft",
"isShared": true,
"version": 123,
"coverImageUrl": "<string>",
"dateStart": "<string>",
"dateEnd": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyName": "<string>",
"reportTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reportTypeName": "<string>",
"reportTemplateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"authorUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}Create a new report for a company.
curl --request POST \
--url https://app.msportal.ai/api/public/v1/reports \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reportTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateStart": "<string>",
"dateEnd": "<string>",
"description": "<string>",
"reportTemplateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reportStructure": {
"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": {}
}
},
"status": "draft"
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"status": "draft",
"isShared": true,
"version": 123,
"coverImageUrl": "<string>",
"dateStart": "<string>",
"dateEnd": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyName": "<string>",
"reportTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reportTypeName": "<string>",
"reportTemplateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"authorUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}Use your API key as a Bearer token. API keys can be generated in Settings → Integrations → API Access.
Report title (required)
1 - 500Company ID (required)
Report type ID (required)
Report date range start (YYYY-MM-DD)
Report date range end (YYYY-MM-DD)
Report description
2000Template to base report on
Report content structure
Show child attributes
Report status (default: draft)
draft, published Report created successfully
Show child attributes