Introduction

Wistats API

Wistats API

This guide covers the application’s REST API v1 endpoints. Your organisation’s applications and automations can make HTTPS requests to perform authorised operations. Generate charts from analysis data and inspect operation records within your permissions.

Chart generation

Generate charts from analysis or sample data for display in your application.

Operation tracking

Inspect application and operation logs within your permissions.

Identify the target system with the __sys__pro__id URL query parameter. Use wisdom_system_id for standalone WisdomEra deployments.

WisdomEra API Documentation · Wistats documentation

Response status codes

Response status codes

Response status codes

The response field status_code indicates the operation result. 5000 indicates success. See the list below for the meaning of other codes.

Show the status code list
Status codeDescription
5000Successfully responded
5001User already recorded
5002Shop is not found in the user shop list
5003This user has not any shop
5004This bundle is not found user shop list
5005User is in passive status
5006Mail record is not found
5007Not enough time has passed since last password reset
5008Password reset is not active. Please enter your e-mail and click on the password reset button.
5009Incorrect password reset password. Please enter your e-mail and click on the password reset button.
5010The user has been blacklisted. There is no access permission.
5011The ip has been blacklisted. There is no access permission.
5018Username or password error
5019Please define a url
5025This record does not include an id in record data
5036License period has expired. End date: Valid until:
5048External token configuration is missing.
5049External access token could not be received.
5050External application is not responding
5052Please define mandatory request parameters of the service
5055SQL algorithm text is not valid.
5056SQL select field expression could not be matched.
5057SQL select field list could not be fully parsed.
5058SQL field expression format is invalid.
5059SQL layer filter expression is invalid.
5060SQL main layer expression is invalid.
5061System layer tree settings could not be found.
5062Report data could not be loaded.
5063Report data could not be saved.
5064Frontend product configuration could not be found.
5065Shop bundle group configuration could not be found.
5066Wanalyzer project record could not be found.
5067Wanalyzer dataset document is missing or invalid.
5068Wanalyzer external data query response is not successful.
5069Wanalyzer project Excel upload data could not be saved.
5070Excel column list could not be found.
5071Categorical chart data is missing.
5072Numeric chart data is missing.
5073Project column record could not be found.
5074Wanalyzer process record could not be saved.
5075Wanalyzer project copy data could not be prepared.
5076Wanalyzer analyze process could not be started.
5077Wanalyzer project result could not be prepared.
5087Token registration result could not be prepared.
5088Service process log folder is not configured.
5093There has been a problem accessing the system. If you believe there is a problem, please contact us.
5094User authorization problem
5095Token expired
5096There is authorization problem
5097There is a request url problem
5098Token must be included in your request header as bearer
5099You may have internet connection or other problems
5100Unknown error
533100Status code 33100

Token services

POST /v1/wistats/get/token

POST /v1/wistats/get/token

After API access has been configured for the user, request a token with the username and password. expires_in gives the expiry instant as a Unix timestamp.

POST /v1/wistats/get/token?__sys__pro__id=wisdom_system_id
Content-Type: application/json

{
  "username": "integration@example.invalid",
  "password": "<password>"
}

Query

Parameter nameTypeExample value
__sys__pro__idstring"wisdom_system_id"

Payload

Parameter nameTypeExample value
usernamestring"integration@example.invalid"
passwordstring"<password>"

Response

Parameter nameTypeExample value
token_typestring"Bearer"
access_tokenstring"<access-token>"
refresh_tokenstring"<refresh-token>"
expires_ininteger1800000000
status_codestring"5000"
status_messagestring"Successfully Responded"

Statistics, models and charts

POST /v1/wistats/chart/generate

POST /v1/wistats/chart/generate

Send this header Authorization: Bearer <access-token>

Query

Parameter nameTypeExample value
__sys__pro__idstring"wisdom_system_id"
result_typestring"<result-type>"
wanalyzer_project_client_idstring"<wanalyzer-project-client-id>"

Payload

Parameter nameTypeExample value
data_source_modestring"<data-source-mode>"
compile_modestring"<compile-mode>"
python_scriptstring"<python-script>"
chart_typestring"bar"
aggregationstring"none"
y_axis_modestring"numeric"
x_axis_labelstring"Group"
x_valuesarray["A", "B"]
y_seriesarray[{"name": "Total", "values": [12, 18]}]
y_categorical_labelstring"<y-categorical-label>"
y_categorical_valuesarray["A", "B"]
category_colorsobject{"A": "#2563eb"}
manual_rowsarray[]
chart_optionsobject{}

Response

Parameter nameTypeExample value
image_base64 *string"<base64-image>"
status_codestring"5000"
status_messagestring"Successfully Responded"

* Required field.

Application and operation logs

POST /v1/wistats/application/log/list

POST /v1/wistats/application/log/list

Send this header Authorization: Bearer <access-token>

Query

Parameter nameTypeExample value
__sys__pro__idstring"wisdom_system_id"
limitstring"<limit>"
offsetstring"<offset>"

Payload

No request body is needed.

Response

Parameter nameTypeExample value
log_listarray[]
next_offsetstring"<next-offset>"
has_nextstring"<has-next>"
application_countobject{}
countinteger1
matched_countinteger1
next_wdmr_list_idinteger1
offsetinteger1
scanned_countinteger1
wdmr_list_id_endinteger1
status_codestring"5000"
status_messagestring"Successfully Responded"
POST /v1/wistats/get/logs

POST /v1/wistats/get/logs

Send this header Authorization: Bearer <access-token>

Query

Parameter nameTypeExample value
__sys__pro__idstring"wisdom_system_id"
function_namestring"<function-name>"
log_type *string"<log-type>"
start_datestring"2026-01-01"
end_datestring"2026-01-31"
page_numberstring"1"
id_namestring"<id-name>"

* Required field.

Payload

Parameter nameTypeExample value
project_client_id_listarray[]
id_listarray[]
filter_dataobject{}

Response

Parameter nameTypeExample value
log_listarray[]
next_pagestring"<next-page>"
end_datestring"2026-01-31"
filter_datastring"<filter-data>"
function_listobject{}
available_date_listobject{}
id_listobject{}
id_nameobject{}
log_typestring"<log-type>"
page_numberstring"1"
page_sizestring"25"
start_datestring"2026-01-01"
id_function_listobject{}
id_value_listobject{}
status_codestring"5000"
status_messagestring"Successfully Responded"