Download OpenAPI specification:
Welcome to the Astn'go public API, designed to provide access to the Astn'go application.
Released the API version 1.0.0 in Open API format.
Adding an endpoint to retrieve the value of an indicator over a period and an axis (equipment, operation,...).
Adding endpoints to collect the following data from the Astn'go application.
Adding an endpoint to import references
First API version.
To access the API, Astn'go uses an API key and your organization id which takes the format of 32 lower case and hexadecimal digits separated by 4 dashes (e.g.: d1056faa-4133-418c-a6fc-e9ddb7627156).
You can save a new API key and find your organization id in your app My Astn'go Manager (Parameters -> Configuration -> Settings -> Interface).
You must include your API key and your organization id in all your requests to the Astn'go API through the following headers:
x-api-key: my_api_keyx-organization-id: my_organization_idYou must replace:
my_api_key with your personal API keymy_organization_id with your organizationid.Create or update an existing reference.
Reference object to create or update
| strategy required | string Enum: "CREATE" "UPDATE" "CREATE_AND_UPDATE" The strategy for importing references.
|
| referenceCode required | string Reference code. This is the unique id of a reference. |
| designation required | string Reference designation |
| idErp | string Reference ID used by the ERP |
| unit required | string <= 3 characters Reference unit |
object (ProductionCharacteristicsInput) Reference production characteristics | |
Array of objects (ReferencePropertyNameValueInput) Reference properties list. Each property is uniquely defined by its name in the name field and a value in the value field. | |
| netWeight | number <double> The net weight of the reference |
| grossWeight | number <double> The gross weight of the reference |
| volume | number <double> The volume of the reference |
object (PackagingCharacteristicsInput) Reference packaging characteristics | |
| documentNames | Array of strings unique Set of document names to link to the reference. The documents must already exist in the system. |
" {\n \"strategy\": \"CREATE_AND_UPDATE\",\n \"referenceCode\": \"11245789\",\n \"designation\": \"ALP LEMONADE 50CL VP - LIM / LIM / 2050002\",\n \"idErp\": \"ESF9990054200\",\n \"unit\": \"u\",\n \"productionCharacteristics\": {\n \"cycleDurationMs\": 1000,\n \"maxSpeedQpH\": 3600,\n \"numberOfTopToGenerateACount\": 1,\n \"partsPerCount\": 1\n },\n \"properties\": [\n {\n \"name\": \"Origin\",\n \"value\": \"Italy\"\n },\n {\n \"name\": \"Provider\",\n \"value\": \"Coop Agri\"\n }\n ],\n \"documentNames\": [\n \"document1.pdf\",\n \"document2.pdf\"\n ],\n }\n"Retrieve the list of references according to the search criteria
Paged request
object (QueryPageRequest) The pagination properties used for the query | |
Array of objects (QuerySearchCriteria) An array representing the search criteria used for the query |
| totalElements | integer <int64> The total number of items |
| totalPages | integer <int32> The total number of pages |
| page | integer <int32> The current page (0 is the first page) |
Array of objects (ReferenceOutput) The array representing the ressources |
{- "pageRequest": {
- "page": 0,
- "size": 1
}, - "criteria": [
- {
- "key": "referenceCode",
- "operation": "LIKE",
- "value": "60012"
}
]
}{- "totalElements": 1,
- "totalPages": 1,
- "page": 0,
- "data": [
- {
- "id": "d5e13f34-1fe0-44ab-9cb1-11b4f04b86ee",
- "referenceCode": "60012",
- "designation": "JUS ORANGE PREMIUM1.5L / BCJMBF / 60012",
- "idErp": "ESF0000513300",
- "unit": "p",
- "properties": [ ],
- "propertyValues": { },
- "netWeight": 1.4566230552920896,
- "grossWeight": 1.7479476663505074,
- "packagingCharacteristics": { },
- "documents": [ ],
- "modifiedBy": {
- "id": "00000000-0000-0000-0000-000000000000",
- "name": "Arnaud Zouliour"
}, - "createdAt": "2024-10-16T13:21:43.511754Z",
- "lastModified": "2024-10-16T13:22:21.555621Z",
- "active": true
}
]
}Retrieve the list of operator changes according to the search criteria
Paged request
object (QueryPageRequest) The pagination properties used for the query | |
Array of objects (QuerySearchCriteria) An array representing the search criteria used for the query |
| totalElements | integer <int64> The total number of items |
| totalPages | integer <int32> The total number of pages |
| page | integer <int32> The current page (0 is the first page) |
Array of objects (OperatorChangeOutput) The array representing the ressources |
{- "pageRequest": {
- "page": 0,
- "size": 2,
- "column": "startDate",
- "direction": "ASC"
}, - "criteria": [
- {
- "key": "startDate",
- "operation": "LESS_THAN",
- "value": "2025-04-01T05:00:00.000+02:00"
}, - {
- "key": "endDate",
- "operation": "GREATER_THAN_OR_NULL",
- "value": "2025-03-01T05:00:00.000+01:00"
}, - {
- "key": "duration",
- "operation": "GREATER_THAN_OR_NULL",
- "value": 60000
}
]
}{- "totalElements": 32,
- "totalPages": 16,
- "page": 0,
- "data": [
- {
- "equipmentId": "332ed588-031a-4a4b-8e06-8c125b492563",
- "startDate": "2022-05-10T16:02:48.114Z",
- "count": 0,
- "operators": [ ],
- "createdBy": {
- "name": "Arnaud Zouliour"
}, - "modifiedBy": {
- "name": "Arnaud Zouliour"
}
}, - {
- "equipmentId": "bdc21f86-e627-4ba6-8f20-dab6f7f51d9f",
- "startDate": "2022-05-10T16:02:48.81Z",
- "count": 0,
- "operators": [ ],
- "createdBy": {
- "name": "Arnaud Zouliour"
}, - "modifiedBy": {
- "name": "Arnaud Zouliour"
}
}
]
}Create or update an existing operations.
Operation object to create or update
| strategy required | string Enum: "CREATE" "UPDATE" "CREATE_AND_UPDATE" The strategy for importing operations.
|
| favoriteEquipmentName | string The name of the favorite equipment associated to this operation. It is the most suitable equipment to perform this operation. It will be prioritary displayed on the operator view linked to the favorite equipment via the "List of operations". |
| theoreticalSetupTimeMs | integer <int64> Theoretical adjustment time in milliseconds |
| expectedQuantity required | number <double> Expected quantity in units |
object (ProductionCharacteristicsInput) Operation production characteristics | |
| description | string Operation description. Maximum 2000 characters. |
| workOrder required | string Work Order (WO) of the operation |
| referenceCode required | string The reference code linked to the operation. If the reference linked to the reference code doesn't exist, it is automatically created in the system. |
| idErp | string Operation ID used by the ERP |
| sequenceNumber required | integer <int64> Operation sequence number |
| delay | string <date-time> The end date for the completion of the operation |
| startDate | string <date-time> Planned start date of the operation. |
Array of objects (OperationPropertyNameValueInput) Operation properties list. Each property is uniquely defined by its name contained in the name field and by a value contained in the value field. | |
| equipmentNameCandidates | Array of strings unique Name of the equipment candidates. This is the equipment able to realize this operation. The operator can check the concerned operation via the "Supported operations" tab of their list of operations. |
| setupLabourTimeMs | integer <int64> Total operation adjustment labour time in milliseconds |
| productionLabourTimeMs | integer <int64> Total operation production labour time in milliseconds |
{- "strategy": "CREATE_AND_UPDATE",
- "favoriteEquipmentName": "Ligne",
- "theoreticalSetupTimeMs": 10000,
- "expectedQuantity": 201,
- "productionCharacteristics": {
- "cycleDurationMs": 1000,
- "maxSpeedQpH": 3600,
- "numberOfTopToGenerateACount": 1,
- "partsPerCount": 1
}, - "description": "MES Days 2023",
- "workOrder": "test MES_2023",
- "referenceCode": "test-99",
- "idErp": "MES_2023_1/80",
- "sequenceNumber": 99,
- "delay": "2024-03-15T14:13:12Z",
- "startDate": "2023-03-15T14:00:00Z",
- "properties": [
- {
- "name": "Lot",
- "value": "112AB"
}
], - "equipmentNameCandidates": [
- "Ligne Condi. 2"
], - "setupLabourTimeMs": 60000,
- "productionLabourTimeMs": 180000
}Retrieve the list of operations according to the search criteria
Paged request
object (QueryPageRequest) The pagination properties used for the query | |
Array of objects (QuerySearchCriteria) An array representing the search criteria used for the query |
| totalElements | integer <int64> The total number of items |
| totalPages | integer <int32> The total number of pages |
| page | integer <int32> The current page (0 is the first page) |
Array of objects (OperationOutput) The array representing the ressources |
{- "pageRequest": {
- "page": 0,
- "size": 1
}, - "criteria": [
- {
- "key": "currentState",
- "operation": "CONTAINS",
- "value": "RUNNING"
}, - {
- "key": "currentState",
- "operation": "NOT_EQUAL",
- "value": "FINISHED"
}
]
}{- "totalElements": 6,
- "totalPages": 6,
- "page": 0,
- "data": [
- {
- "id": "fb07f6f6-1cf9-4a90-944c-f19f01d8aeae",
- "name": "120/11",
- "favoriteEquipment": {
- "id": "92b193af-b8dc-44cc-ae4d-9a4391b5301b",
- "name": "Ligne"
}, - "theoreticalSetupTimeMillis": 180000,
- "expectedQuantity": 400000,
- "theoreticalProductionTimeMs": 360000000,
- "currentState": "RUNNING",
- "workOrder": "120",
- "reference": {
- "id": "4c287f2c-1230-49a9-aebd-13729f394368",
- "referenceCode": "1234",
- "designation": "1234",
- "unit": "p",
- "productionCharacteristics": {
- "cycleDurationMs": 1000,
- "maxSpeedQpH": 3600,
- "numberOfTopToGenerateACount": 1,
- "partsPerCount": 1
}, - "properties": [
- {
- "name": "Origine",
- "value": "Italy"
}
], - "netWeight": 2,
- "grossWeight": 3,
- "volume": 2,
- "packagingCharacteristics": {
- "unitsByConsumerSalesUnit": 2,
- "unitsByLogisticsUnit": 4
}, - "documents": [
- {
- "name": "document_example.jpg",
- "extension": ".jpg"
}, - {
- "name": "bcst-70_manuel_d_utilisation_complet_v1_180321_.pdf",
- "extension": ".pdf"
}
]
}, - "sequenceNumber": 11,
- "delay": "2024-10-17T12:14:30.54Z",
- "startDate": "2024-10-17T12:14:30.54Z",
- "effectiveStartDate": "2024-10-31T15:44:57.810261Z",
- "properties": [ ],
- "propertyValues": { },
- "equipmentCandidates": [
- {
- "id": "92b193af-b8dc-44cc-ae4d-9a4391b5301b",
- "name": "Ligne"
}
], - "lastEquipmentId": "92b193af-b8dc-44cc-ae4d-9a4391b5301b",
- "active": true,
- "modifiedBy": {
- "id": "a13fa046-0b6d-4fac-aa80-b3af16aa0598",
- "name": "Jules Loulou"
}, - "createdAt": "2024-09-17T12:15:05.300309Z",
- "lastModified": "2024-10-31T15:44:57.87235Z"
}
]
}Retrieve the list of operation changes according to the search criteria
Paged request
object (QueryPageRequest) The pagination properties used for the query | |
Array of objects (QuerySearchCriteria) An array representing the search criteria used for the query |
| totalElements | integer <int64> The total number of items |
| totalPages | integer <int32> The total number of pages |
| page | integer <int32> The current page (0 is the first page) |
Array of objects (OperationChangeOutput) The array representing the ressources |
{- "pageRequest": {
- "page": 0,
- "size": 2,
- "column": "startDate",
- "direction": "ASC"
}, - "criteria": [
- {
- "key": "startDate",
- "operation": "LESS_THAN",
- "value": "2025-04-01T05:00:00.000+02:00"
}, - {
- "key": "endDate",
- "operation": "GREATER_THAN_OR_NULL",
- "value": "2025-03-01T05:00:00.000+01:00"
}, - {
- "key": "equipmentId",
- "operation": "EQUAL",
- "value": "00000000-0000-0000-0000-000000000000"
}, - {
- "key": "duration",
- "operation": "GREATER_THAN_OR_NULL",
- "value": 60000
}
]
}{- "totalElements": 19,
- "totalPages": 10,
- "page": 0,
- "data": [
- {
- "equipmentId": "00000000-0000-0000-0000-000000000000",
- "startDate": "2022-05-10T16:02:52.034Z",
- "endDate": "2025-03-10T09:59:52.549Z",
- "duration": 89402220515,
- "createdBy": {
- "name": "Arnaud Zouliour"
}, - "modifiedBy": {
- "name": "Arnaud Zouliour"
}, - "endedBy": {
- "name": "Arnaud Zouliour"
}
}, - {
- "equipmentId": "00000000-0000-0000-0000-000000000000",
- "startDate": "2025-03-10T09:59:52.549Z",
- "endDate": "2025-03-10T10:03:38.87Z",
- "duration": 226321,
- "operation": {
- "name": "421/12",
- "workOrder": 421,
- "referenceCode": "1204"
}, - "createdBy": {
- "name": "Arnaud Zouliour"
}, - "modifiedBy": {
- "name": "Arnaud Zouliour"
}, - "endedBy": {
- "name": "Arnaud Zouliour"
}
}
]
}Retrieve the list of max speed changes according to the search criteria
Paged request
object (QueryPageRequest) The pagination properties used for the query | |
Array of objects (QuerySearchCriteria) An array representing the search criteria used for the query |
| totalElements | integer <int64> The total number of items |
| totalPages | integer <int32> The total number of pages |
| page | integer <int32> The current page (0 is the first page) |
Array of objects (MaxSpeedChangeOutput) The array representing the ressources |
{- "pageRequest": {
- "page": 0,
- "size": 2,
- "column": "startDate",
- "direction": "ASC"
}, - "criteria": [
- {
- "key": "startDate",
- "operation": "LESS_THAN",
- "value": "2025-04-01T05:00:00.000+02:00"
}, - {
- "key": "endDate",
- "operation": "GREATER_THAN_OR_NULL",
- "value": "2025-03-01T05:00:00.000+01:00"
}, - {
- "key": "equipmentId",
- "operation": "EQUAL",
- "value": "00000000-0000-0000-0000-000000000000"
}, - {
- "key": "duration",
- "operation": "GREATER_THAN_OR_NULL",
- "value": 60000
}
]
}{- "totalElements": 19,
- "totalPages": 10,
- "page": 0,
- "data": [
- {
- "equipmentId": "00000000-0000-0000-0000-000000000000",
- "startDate": "2022-05-10T16:02:52.034Z",
- "endDate": "2025-03-10T09:59:52.549Z",
- "duration": 89402220515,
- "data": {
- "cycleDurationMs": 1000,
- "theoreticalAmountPerCycle": 1,
- "maxSpeedQpH": 3600,
- "amountPerCycle": 1
}, - "createdBy": {
- "name": "Arnaud Zouliour"
}, - "modifiedBy": {
- "name": "Arnaud Zouliour"
}
}, - {
- "equipmentId": "00000000-0000-0000-0000-000000000000",
- "startDate": "2025-03-10T09:59:52.549Z",
- "endDate": "2025-03-10T10:03:38.87Z",
- "duration": 226321,
- "data": {
- "cycleDurationMs": 5446.293494704993,
- "theoreticalAmountPerCycle": 1,
- "maxSpeedQpH": 661,
- "amountPerCycle": 1
}, - "createdBy": {
- "name": "Arnaud Zouliour"
}, - "modifiedBy": {
- "name": "Arnaud Zouliour"
}
}
]
}Retrieve the value of an indicator over a period and an axis (equipment, operation, etc.). For example, you can retrieve the TRS of the Press for the previous week.
Request data
| indicatorIdentifier required | string Indicator identifier.
|
object (Temporality) Analysis range to calculate the indicator | |
Array of objects (AnalysisAxisInstanceInput) Axis used to calculate the indicator |
| value | number <double> Indicator value |
object (PeriodBaseOutput) Analysis range used to calculate the indicator | |
Array of objects (IndicatorValueOutput) Deprecated |
{- "indicatorIdentifier": "QUANTITY_GOOD_PARTS",
- "temporality": {
- "type": "WEEKS",
- "length": 1,
- "offset": 0
}, - "analysisAxes": [
- {
- "axis": "OPERATION",
- "axisId": "6e40a70a-20c5-485e-9d0b-94ffe8bbaa7d",
- "propertyAxisInstanceList": [ ]
}
]
}{- "value": 50,
- "period": {
- "start": "2025-09-01T06:00:00Z",
- "end": "2025-10-01T06:00:00Z"
}, - "indicatorDataMultiAxes": [
- {
- "value": 50
}
]
}Retrieve the distribution of a category indicator over a period and an axis (equipment, operation, etc.). For example, you can retrieve the duration of each equipment state for the previous week.
Request data
| indicatorIdentifier required | string Indicator category identifier.
|
object (Temporality) Analysis range to calculate the indicator | |
Array of objects (AnalysisAxisInstanceInput) Axis used to calculate the indicator |
| value | number <double> Indicator value |
object (PeriodBaseOutput) Analysis range used to calculate the indicator | |
Array of objects (IndicatorValueOutput) Deprecated |
{- "indicatorIdentifier": "STATE_DURATION_COUNT_MACHINE",
- "temporality": {
- "type": "WEEKS",
- "length": 1,
- "offset": 0
}, - "analysisAxes": [
- {
- "axis": "EQUIPMENT",
- "axisId": "00000000-0000-0000-0000-000000000000",
- "propertyAxisInstanceList": [ ]
}
]
}{- "keyDurationCountGroupingData": [
- {
- "label": "Arrêt non qualifié",
- "durationMs": 332886792,
- "count": 1,
- "color": "rgb(228,61,48)"
}
], - "period": {
- "start": "2025-03-02T22:00:00+01:00",
- "end": "2025-03-09T22:00:00+01:00"
}
}Retrieve the list of equipments according to the search criteria
Paged request
object (QueryPageRequest) The pagination properties used for the query | |
Array of objects (QuerySearchCriteria) An array representing the search criteria used for the query |
| totalElements | integer <int64> The total number of items |
| totalPages | integer <int32> The total number of pages |
| page | integer <int32> The current page (0 is the first page) |
Array of objects (EquipmentOutput) The array representing the ressources |
{- "pageRequest": {
- "page": 0,
- "size": 1
}, - "criteria": [ ]
}{- "totalElements": 10,
- "totalPages": 10,
- "page": 0,
- "data": [
- {
- "id": "a5d97cc1-c2e7-4632-83c0-dd021daac9bb",
- "setupOnOperationLaunch": true,
- "name": "Usinage 5 axes",
- "productionCharacteristics": {
- "cycleDurationMs": 1000,
- "maxSpeedQpH": 3600,
- "numberOfTopToGenerateACount": 1,
- "partsPerCount": 1
}, - "productionCharacteristicsMode": "MAX_SPEED",
- "canProduceMoreThanOneUnitsPerCycle": false,
- "onePartPerCountForScrap": false,
- "customPartPerCountForDi2": false,
- "unqualifiedStateMaxDurationMs": 2000,
- "timeBeforeStopDetectionMs": 2000,
- "equipmentType": "Usinage 5 axes",
- "idErp": "1100",
- "brand": "C.B.FERRARI",
- "model": "ML 45",
- "unit": "p",
- "stopDetectionType": "TOP_CYCLE_COUNT",
- "acquisitionMode": "PACKAGING_1_SIGNAL",
- "stopStartDateStrategy": "AT_LAST_TOP_CYCLE_DATE",
- "topCycleBeforeStopDetection": 25,
- "active": true,
- "version": 9,
- "histogramType": "QUANTITIES_STACK",
- "packagingLabels": { },
- "topsCycleToComputeSpeed": 9,
- "poorPerformanceThreshold": 0,
- "poorPerformanceEnabled": false,
- "documents": [ ]
}
]
}Retrieve the list of equipment status changes according to the search criteria
Paged request
object (QueryPageRequest) The pagination properties used for the query | |
Array of objects (QuerySearchCriteria) An array representing the search criteria used for the query |
| totalElements | integer <int64> The total number of items |
| totalPages | integer <int32> The total number of pages |
| page | integer <int32> The current page (0 is the first page) |
Array of objects (EquipmentStateChangeOutput) The array representing the ressources |
{- "pageRequest": {
- "page": 0,
- "size": 2,
- "column": "startDate",
- "direction": "ASC"
}, - "criteria": [
- {
- "key": "startDate",
- "operation": "LESS_THAN",
- "value": "2025-04-01T05:00:00.000+02:00"
}, - {
- "key": "endDate",
- "operation": "GREATER_THAN_OR_NULL",
- "value": "2025-03-01T05:00:00.000+01:00"
}, - {
- "key": "equipmentState.type",
- "operation": "NOT_EQUAL",
- "value": "PRODUCTION"
}, - {
- "key": "duration",
- "operation": "GREATER_THAN_OR_NULL",
- "value": 60000
}
]
}{- "totalElements": 180,
- "totalPages": 90,
- "page": 0,
- "data": [
- {
- "equipmentId": "332ed588-031a-4a4b-8e06-8c125b492567",
- "startDate": "2022-05-10T16:02:48.114Z",
- "endDate": "2025-03-10T07:00:00Z",
- "duration": 89391431886,
- "equipmentState": {
- "category": "CLOSING_TIME",
- "type": "STOP",
- "name": "Initial",
- "color": "rgb(0,250,255)"
}, - "comment": "",
- "createdBy": {
- "name": "Arnaud Zouliour"
}, - "modifiedBy": {
- "name": "Arnaud Zouliour"
}
}, - {
- "equipmentId": "bdc21f86-e627-4ba6-8f20-dab6f7f51d98",
- "startDate": "2022-05-10T16:02:48.81Z",
- "endDate": "2025-03-10T07:00:00Z",
- "duration": 89391431190,
- "equipmentState": {
- "category": "CLOSING_TIME",
- "type": "STOP",
- "name": "Initial",
- "color": "rgb(0,250,255)"
}, - "comment": "",
- "createdBy": {
- "name": "Arnaud Zouliour"
}, - "modifiedBy": {
- "name": "Arnaud Zouliour"
}
}
]
}Retrieve the list of checklist instances according to the search criteria
Paged request
object (QueryPageRequest) The pagination properties used for the query | |
Array of objects (QuerySearchCriteria) An array representing the search criteria used for the query |
| totalElements | integer <int64> The total number of items |
| totalPages | integer <int32> The total number of pages |
| page | integer <int32> The current page (0 is the first page) |
Array of objects (ChecklistInstanceOutput) The array representing the ressources |
{- "pageRequest": {
- "page": 0,
- "size": 1
}, - "criteria": [ ]
}{- "totalElements": 10,
- "totalPages": 10,
- "page": 0,
- "data": [
- { }
]
}Retrieve the list of references properties
| id | string <uuid> Property technical id |
| name | string Property name |
[- {
- "id": "b57ec942-6bb8-4503-9a80-bfb78a364614",
- "name": "DLU"
}, - {
- "id": "0a97e794-0ad5-4fe5-96c1-ce5dadc55d68",
- "name": "Fournisseur"
}
]Retrieve the list of operations properties
| id | string <uuid> Property technical id |
| name | string Property name |
[- {
- "id": "b57ec942-6bb8-4503-9a80-bfb78a364614",
- "name": "DLU"
}, - {
- "id": "0a97e794-0ad5-4fe5-96c1-ce5dadc55d68",
- "name": "Fournisseur"
}
]