Skip to main content

Dashboard and report management API

Last updated 10/03/2026

For how to call the API, see the calling method described in the Open API document.

We recommend reading the dashboard section of the AE user manual first to learn about the related features: Dashboard

1. Report management​

1. Query the report list of the Root account​

Endpoint URL

/open/manage-reports?token=xxx&projectId=0

Request method

GET

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key
projectId0IntegerYesProject ID

Success response example

{
"data": {
"reports": [
{
"createType": "MANUAL_CREATE",
"dashboardIds": [],
"reportDesc": "",
"reportId": 34214,
"reportModel": 0,
"reportName": "Total count of event_3(4)",
"updateTime": "2021-02-04 16:44:03"
},
{
"createType": "IMPORTED",
"dashboardIds": [
3015
],
"reportDesc": "",
"reportId": 25565,
"reportModel": 0,
"reportName": "Login count - last month(1)",
"updateTime": "2020-12-18 14:03:32"
}
],
"dashboards": [
{
"dashbord_id": 3015,
"dashbord_name": "Performance test"
}
]
},
"return_code": 0,
"return_message": "success"
}
Parameter nameExample valueParameter typeDescription
data-ObjectReturned data
data.dashboards-ListDashboard information
data.dashboards.dashbord_id1440IntegerDashboard ID
data.dashboards.dashbord_nameGeneral condition filter dashboardStringDashboard name
data.reports-ListReport information
data.reports.createTypeMANUAL_CREATEString

Report creation method:

  • MANUAL_CREATE: Created manually
  • IMPORTED: Created by dashboard import
  • COPIED: Created by dashboard copy
data.reports.dashboardIds2378IntegerDashboard ID set (list of dashboard IDs related to the report; empty means the report isn't on any dashboard)
data.reports.reportDesc-ObjectReport comment
data.reports.reportId4049IntegerReport ID
data.reports.reportModel0Integer

Analysis model

  • 0: Events Analysis
  • 1: Retention Analysis
  • 2: Funnel Analysis
  • 3: Composition Analysis (user properties)
  • 4: Flows Analysis
  • 5: Distribution Analysis
data.reports.reportNameZhizhiStringReport name
data.reports.updateTime2019-12-20 15:59:44DateUpdate time
return_code0IntegerReturn code
return_messagesuccessStringReturn message

2. Query the project report list​

Endpoint URL

/open/list-project-reports?token=xxx&projectId=0

Request method

GET

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key
projectId0IntegerYesProject ID

Success response example

{
"data": [
{
"reportId": 34214,
"createType": "MANUAL_CREATE",
"reportDesc": "Report description here",
"projectId": 0,
"reportName": "Report name here",
"reportModel": "EVENT",
"creator": {
"openId": "UIODASBJ-Jiodas312",
"loginName": "user1",
"userName": "User 1"
},
"dashboardIds": [
109,
91
]
}
],
"return_code": 0,
"return_message": "success"
}
Parameter nameExample valueParameter typeDescription
data-ListReturned data
data.reportId34214LongReport ID
data.reportNameReport name hereIntegerReport name
data.reportDescReport description hereStringReport description
data.projectId0IntegerProject ID

data.createType

MANUAL_CREATEString

Report creation method:

  • MANUAL_CREATE: Created manually
  • IMPORTED: Created by import
  • COPIED: Created by copy
  • SCENE_CREATE Created from a template
  • PACK_IMPORT Created by project import

data.reportModel

EVENT

String
  • EVENT: Events Analysis report
  • RETENTION: Retention Analysis report
  • FUNNEL: Funnel Analysis report
  • PROP_ANALYSIS: Composition Analysis report
  • PATH_ANALYSIS: Flows Analysis report
  • SQL: SQL report
  • INTERVAL_ANALYSIS: Interval Analysis report
data.creator-ObjectReport creator
openIdUIODASBJ-Jiodas312StringopenId
loginNameuser1StringLogin account
userNameUser 1StringNickname
data.dashboardIds[109, 91]ListDashboard ID
return_code0IntegerReturn code
return_messagesuccessStringReturn message

3. Batch delete reports​

Endpoint URL

/open/report-batch-del?token=xxx&projectId=0

Request method

POST

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key
projectId0StringYesProject ID

Request body parameters

{
"reportIds": [
34214
]
}
Parameter nameExample valueParameter typeRequiredDescription
reportIds[34214]ListNoReport ID list

Success response example

{
"return_code": 0,
"return_message": "success"
}
Parameter nameExample valueParameter typeDescription
return_code0StringReturn code
return_messagesuccessStringReturn message

2. Dashboard management​

4. Dashboard and report management/Import dashboards​

Endpoint URL

/open/import-dashboards?token=xxx&projectId=0&dashboardNameConflictPolicy=RENAME_CREATE&spaceDashboardPolicy=IN_EXISTED_SPACE_OR_CREATE_SPACE

Request method

POST

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key
projectId0IntegerYesProject ID
dashboardNameConflictPolicyRENAME_CREATEStringYes

Strategy for dashboard name conflicts, RENAME_CREATE by default

  • RENAME_CREATE: Rename automatically
  • SKIP: Skip
  • REPLACE: Replace
spaceDashboardPolicyIN_EXISTED_SPACE_OR_CREATE_SPACEStringYes

Placement strategy for dashboards in shared spaces, IN_EXISTED_SPACE_OR_CREATE_SPACE by default

  • CREATE_SPACE: Place dashboards in a newly created space
  • IN_EXISTED_SPACE_OR_CREATE_SPACE: Place dashboards in an existing space with the same name, or in a newly created space
  • IN_PRIVATE: Place dashboards under My Dashboards

Success response example

{
"data": {
"boardCreateFailed": 1,
"boardCreated": 1,
"boardTotal": 2,
"folderCreated": 1,
"reportCreateFailed": 1,
"reportCreated": 1,
"reportTotal": 2
},
"return_code": 0,
"return_message": "success"
}
Parameter nameExample valueParameter typeDescription
data-ObjectReturned data
data.boardCreateFailed1IntegerNumber of dashboards that failed to be created
data.boardCreated1IntegerNumber of dashboards created successfully
data.boardTotal2IntegerTotal dashboards
data.folderCreated1IntegerNumber of folders created
data.reportCreateFailed1IntegerNumber of reports that failed to be created
data.reportCreated1IntegerNumber of reports created
data.reportTotal2IntegerTotal reports
return_code0IntegerReturn code
return_messagesuccessStringReturn message

Error response example

{
"return_code": -3004,
"return_message": "Invalid project"
}
Parameter nameExample valueParameter typeDescription
return_code-3004StringReturn code
return_messageInvalid projectStringReturn message

5. Delete a space dashboard​

Note

If the dashboard was created by the API caller, the dashboard is deleted. Otherwise, the dashboard is moved from the space to the creator's private directory.

Endpoint URL

/open/delete-dashboard-from-space?token=xxx&projectId=0&dashboardId=1&spaceId=1

Request method

POST

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key
projectId0IntegerYesProject ID
dashboardId1IntegerYesDashboard ID
spaceId1IntegerYesSpace ID

Success response example

{
"return_code": 0,
"return_message": "success"
}
Parameter nameExample valueParameter typeDescription
return_code0IntegerReturn code
return_messagesuccessStringReturn message

Error response example

{
"return_code": -1008,
"return_message": "Parameter error, dashboard not in space"
}
Parameter nameExample valueParameter typeDescription
return_code-1008IntegerReturn code
return_messageParameter error, dashboard not in spaceStringReturn message

3. Space management​

6. Query space IDs and dashboard lists​

Endpoint URL

/open/get-space-dashboards-by-space-name?token=xxx&projectId=377&spaceName=b

Request method

GET

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key
projectId377IntegerYesProject ID
spaceNamebStringYesSpace name

Success response example

{
"data": {
"dashboards": [
{
"dashbordId": 3590,
"dashbordName": "lzm"
}
],
"spaceId": 31
},
"return_code": 0,
"return_message": "success"
}
Parameter nameExample valueParameter typeDescription
data-ObjectReturned data
data.dashboards-ListDashboard information
data.dashboards.dashbordId3590IntegerDashboard ID
data.dashboards.dashbordNamelzmStringDashboard name
data.spaceId31IntegerSpace ID
return_code0IntegerReturn code
return_messagesuccessStringReturn message

Error response example

{
"return_code": -1006,
"return_message": "You don't have permission for this operation (view space dashboards)"
}
Parameter nameExample valueParameter typeDescription
return_code-1006IntegerReturn code
return_messageYou don't have permission for this operation (view space dashboards)StringReturn message

7. Query space IDs and member permission lists​

Endpoint URL

/open/get-space-members-by-space-name?token=xxx&projectId=377&spaceName=b

Request method

GET

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key
projectId377IntegerYesProject ID
spaceNamebStringYesSpace name

Success response example

{
"data": {
"allAuthUserAuthority": "MEMBER",
"authUserGroups": [
{
"authority": "ADMIN",
"id": 1301,
"name": "test1"
}
],
"authUsers": [
{
"authority": "ADMIN",
"id": 1149,
"name": "test2"
}
],
"creator": {
"id": 928,
"name": "test3"
},
"spaceId": 31
},
"return_code": 0,
"return_message": "success"
}
Parameter nameExample valueParameter typeDescription
data-ObjectReturned data
data.allAuthUserAuthorityMEMBERStringAll-member permission
data.authUserGroups-ListPermission group list
data.authUserGroups.authorityADMINStringPermissions
data.authUserGroups.id1301IntegerUser ID
data.authUserGroups.nametest1StringUser name
data.authUsers-ListUser list
data.authUsers.authorityADMINStringPermissions
data.authUsers.id1149IntegerUser ID
data.authUsers.nametest2StringUser name
data.creator-ObjectCreator information
data.creator.id928IntegerCreator user ID
data.creator.nametest3StringCreator name
data.spaceId31IntegerSpace ID
return_code0IntegerReturn code
return_messagesuccessStringReturn message

Error response example

{
"return_code": -1006,
"return_message": "You don't have permission for this operation (view space members)"
}
Parameter nameExample valueParameter typeDescription
return_code-1006IntegerReturn code
return_messageYou don't have permission for this operation (view space members)StringReturn message

8. Update the space member permission list​

Use this to update the space name and default space permission, add or modify permissions of space members, and add or modify permissions of space member groups

Note

The submitted member permission list replaces the original member list entirely

Endpoint URL

/open/update-space?token=xxx&projectId=0&spaceId=0

Request method

POST

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key
projectId0IntegerYesProject ID
spaceId0IntegerYesSpace ID

Request body parameters

{
"allAuthUserAuthority": "MEMBER",
"authUserGroups": [
{
"id": 99,
"authority": "MEMBER",
"name": "member99"
}
],
"authUsers": [
{
"id": 88,
"authority": "ADMIN",
"name": "admin88"
}
],
"spaceName": "spaceTest"
}
Parameter nameExample valueParameter typeRequiredDescription
allAuthUserAuthoritystringString

No

Permission for all members

  • MEMBER: Member
  • ADMIN: Admin
authUserGroups-ListNoUser group list
authUserGroups.id99IntegerNoUser group ID
authUserGroups.nameMEMBERStringNoUser group name
authUserGroups.authority

member99

String

No

User group permission

  • MEMBER: Member
  • ADMIN: Admin
authUsers-ListNoUser list
authUsers.id88IntegerNoUser ID
authUsers.nameADMINStringNoUser name
authUsers.authorityadmin88StringNo

User permission

  • MEMBER: Member
  • ADMIN: Admin
spaceNamespaceTestStringNoSpace name

Success response example

{
"return_code": 0,
"return_message": "success"
}
Parameter nameExample valueParameter typeDescription
return_code0IntegerReturn code
return_messagesuccessStringReturn message

Error response example

{
"return_code": -1023,
"return_message": "Dashboard space doesn't exist"
}
Parameter nameExample valueParameter typeDescription
return_code-1023IntegerReturn code
return_messageDashboard space doesn't existStringReturn message

9. Delete a space​

Endpoint URL

/open/delete-space?token=xxx&projectId=0&spaceId=1

Request method

POST

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key
projectId0IntegerYesProject ID
spaceId1IntegerYesSpace ID

Success response example

{
"return_code": 0,
"return_message": "success"
}
Parameter nameExample valueParameter typeDescription
return_code0IntegerReturn code
return_messagesuccessStringReturn message

Error response example

{
"return_code": -1023,
"return_message": "Dashboard space doesn't exist"
}
Parameter nameExample valueParameter typeDescription
return_code-1023IntegerReturn code
return_messageDashboard space doesn't existStringReturn message

4. Dashboard digest​

10. Send a dashboard digest​

Any dashboard with push settings configured supports sending a push via API, whether or not scheduled push is turned on. The push task runs immediately with the channel content and style configured in the UI and the data permissions of the dashboard creator. Only company-level and project-level tokens are supported.

Endpoint URL

/open/dashboard/daily-report/exec

Request method

POST

Content-Type

application/json

Request query parameters

Parameter nameExample valueParameter typeRequiredDescription
tokenxxxStringYesQuery key
dashboardId1IntegerYesDashboard ID
Token type restrictions

Only company-level and project-level tokens can use the dashboard digest API. Personal tokens aren't supported

Success response example

{"return_code": 0,"return_message": "success"}
Parameter nameExample valueParameter typeDescription
return_code0IntegerReturn code
return_messagesuccessStringReturn message

Error response example

{"return_code": -1,"return_message": "No valid push channel. Go to Dashboard - Send Digest to configure it"}
Parameter nameExample valueParameter typeDescription
return_code-1IntegerReturn code
return_messageNo valid push channel. Go to Dashboard - Send Digest to configure itStringReturn message
Was this page helpful?