Skip to main content

System

Base URL: https://app.neuroflash.com/api/digital-twin-service

Health Check

GET/health

Health check endpoint.

Returns the service health status, name, version, and environment.

Response

FieldTypeDescription
statusstringService health status
servicestringService name
versionstringService version
environmentstringDeployment environment

Example

curl "https://app.neuroflash.com/api/digital-twin-service/health" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Response:

{
"status": "healthy",
"service": "digital-twin-service",
"version": "1.0.0",
"environment": "local"
}

Status Check

GET/status

Status check endpoint with database connection testing.

Requires admin role. Returns counts of permissions from MySQL and surveys from PostgreSQL to verify database connectivity.

Response

FieldTypeDescription
statusstringService status
mysqlbooleanMySQL database connectivity
postgresbooleanPostgreSQL database connectivity

Example

curl "https://app.neuroflash.com/api/digital-twin-service/status" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Response:

{
"status": "healthy",
"mysql": false,
"postgres": false
}

Get Performance Metrics

GET/v1/performance-metrics

Query Parameters

ParameterTypeDefaultDescription
pageinteger1Page number (1-based)
sizeinteger20Number of elements per page
minCreatedAtstringFilter twins and jobs created on or after this timestamp (default: 10 days ago)
maxCreatedAtstringFilter twins and jobs created on or before this timestamp (default: no upper limit)

Response

FieldTypeDescription
dataarray<object>
keystring
valueobject
descriptionstring
pageobjectPagination metadata.
sizeintegerNumber of elements per page
totalElementsintegerTotal number of matching elements
totalPagesintegerTotal number of pages
currentPageintegerCurrent page number (1-based)

Example

curl "https://app.neuroflash.com/api/digital-twin-service/v1/performance-metrics" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Response:

{
"data": [
{
"key": "string",
"value": {},
"description": "string"
}
],
"page": {
"size": 0,
"totalElements": 0,
"totalPages": 0,
"currentPage": 0
}
}