Download OpenAPI specification:
APIs published by siemens for SITRANS FM MAG 8000 4G/LTE portfolio.
Let's admin create a new child company.
| name | string user_name@company.comCompany name can consist of [a-z] [0-9] [#,_,&], and the first letter must be an alphabet. The length must be at least 2 |
| parent_company_id | string Must be requested using suitable company API. This parameter specifies the parent company of the new company. If this parameter is not specified, the new company will be listed under current company. |
{- "name": "new_company_pvt_ltd#1",
- "parent_company_id": "1234-f44j-44f4-44f"
}{- "message": "The company created successfully."
}Only the company administrator has the authority to remove its subsidiary companies. Self-deletion is restricted, and deleting companies with subsidiaries is also prohibited.
| company_id required | string The id of attached to the company |
{- "message": "string"
}Lets admin visualize the metadata of the company and the children companies.
| company_id required | string The id of the company. |
| subchild | integer Example: subchild=3 The number of subchildren to limit the output to. Defaults to the maximum value. |
{- "message": "string",
- "data": {
- "CompanyId": "string",
- "CompanyPath": "string",
- "CompanyName": "string",
- "Children": [
- {
- "CompanyId": "string",
- "CompanyPath": "string",
- "CompanyName": "string"
}
]
}
}Lets admin visualize the metadata of the company in context and the children companies.
| subchild | integer Example: subchild=3 The number of subchildren to limit the output to. Defaults to the maximum value. |
{- "message": "string",
- "data": {
- "CompanyId": "string",
- "CompanyPath": "string",
- "CompanyName": "string",
- "Children": [
- {
- "CompanyId": "string",
- "CompanyPath": "string",
- "CompanyName": "string"
}
]
}
}Let's admin register a company(at least one unclaimed device is needed).
string | |
| password | string |
| company_name | string Company name can consist of [a-z] [0-9] [#,_,&], and the first letter must be an alphabet. The length must be at least 2 |
Array of objects = 1 items |
{- "email": "user_name@company.com",
- "password": "XXXXXXXX",
- "company_name": "new_company_pvt_ltd#1",
- "devices": [
- {
- "id": "123456789",
- "type": "4G"
}
]
}{- "data": {
- "company_id": "string",
- "client_id": "string",
- "client_secret": "string"
}, - "message": "The company, attached admin acccount and asset have been created and claimed successfully."
}Let's admin create an user under a company.
| company_id required | string The id of the company attached to the user |
string | |
| password | string |
| first_name | string A name using which we can identify an user. |
| last_name | string A surname using which we can identify an user. |
| society | string Address to know the user well |
| mobile | string Mobile number to identify contact |
| country_code | string Country code to contact the user |
| language | string Good to know users preferred language |
| title | string Title to understand user better |
| role | string Create user role e.g. SIEMENS_ADMIN, COMPANY_ADMIN, COMPANY_USER |
{- "email": "user_name@company.com",
- "password": "XXXXXXXX",
- "first_name": "John",
- "last_name": "Doe",
- "society": "Address",
- "mobile": "1234567890",
- "country_code": "+1",
- "language": "ENGLISH",
- "title": "Mr",
- "role": "SIEMENS_ADMIN/COMPANY_ADMIN/COMPANY_USER"
}{- "message": "The user created successfully."
}This API will return user details under the company
| company_id required | string The id of the company attached to the user |
| user_id required | string The id of the user to be deleted |
{- "message": "string",
- "data": {
- "devices": [
- "string"
]
}
}Updates a company user
| company_id required | string The id of the company attached to the user |
| user_id required | string The id of the user to modify |
| first_name | string A name using which we can identify an user. |
| last_name | string A surname using which we can identify an user. |
| society | string Address to know the user well |
| mobile | string Mobile number to identify contact |
| country_code | string Country code to contact the user |
| language | string Good to know users preferred language |
| title | string Title to understand user better |
{- "first_name": "John",
- "last_name": "Doe",
- "society": "Address",
- "mobile": "1234567890",
- "country_code": "+1",
- "language": "ENGLISH",
- "title": "Mr"
}{- "first_name": "John",
- "last_name": "Doe",
- "society": "Address",
- "mobile": "1234567890",
- "country_code": "+1",
- "language": "ENGLISH",
- "title": "Mr"
}Let's admin create a new api keys for the company. Example different app
| company_id required | string Example: 1234 The company id which is linked to the api key |
| name | string |
| role | string Create app role e.g. COMPANY_ADMIN, COMPANY_USER |
{- "name": "SecondCompany",
- "role": "COMPANY_ADMIN/COMPANY_USER"
}{- "data": {
- "company_id": "string",
- "client_id": "string",
- "client_secret": "string"
}, - "message": "string"
}This API will return list of all app api keys created for this company
| company_id required | string Example: 1234 The company id which is linked to the api key |
{- "data": {
- "applications": [
- {
- "AppName": "string",
- "ClientId": "string"
}
]
}, - "message": "string"
}This API will delete app keys for this company
| company_id required | string Example: 1234 The company id which is linked to the api key |
| client_id required | string Example: 1234 The client id which is linked to the api key |
{- "message": "string"
}Lets user register their mag8000 com modules under their company.
| company_id required | string This specifies the company id to which device will be registered. |
Array of objects = 1 items |
{- "devices": [
- {
- "id": "123456789",
- "type": "4G"
}
]
}{- "data": {
- "invalid_devices": [
- "string"
]
}, - "message": "string"
}This API will return device list.
| company_id required | string The id of the company attached to the user |
| subchild | integer Example: subchild=3 The number of subchildren to limit the output to. Defaults to the maximum value. |
{- "message": "string",
- "data": {
- "CompanyId": "string",
- "Devices": [
- {
- "DeviceId": "string",
- "IMEI": "string",
- "CompanyID": "string",
- "AssetType": "string",
- "ClaimedStatus": "string",
- "SerialNumber": "string",
- "ConnectivityStatus": "string"
}
]
}
}This API will return device detail created under this company
| company_id required | string The id of the company attached to the user |
| device_id required | string The device_id of the to be fetched. |
{- "message": "string"
}This API will return device detail created under this company
| company_id required | string The id of the company attached to the user |
| device_id required | string The device_id of the to be fetched |
| subchild | integer Example: subchild=3 The number of subchildren to limit the output to. Defaults to the maximum value. |
{- "message": "string",
- "data": {
- "CompanyId": "string",
- "Devices": [
- {
- "DeviceId": "string",
- "IMEI": "string",
- "CompanyID": "string",
- "AssetType": "string",
- "ClaimedStatus": "string",
- "SerialNumber": "string",
- "ConnectivityStatus": "string"
}
]
}
}This API will return the device position data.
| company_id required | string The company id which is linked to the device |
{- "message": "string",
- "data": {
- "device_positions": [
- {
- "device_id": "string",
- "location_status": {
- "status": "string",
- "position": {
- "latitude": 0,
- "longitude": 0
}, - "last_update": "2019-08-24T14:15:22Z"
}
}
]
}
}This API will trigger a location request for the device.
| company_id required | string The company id which is linked to the device |
| device_id required | string The device id to update position for |
{- "message": "string",
- "data": {
- "device_id": "string",
- "position_status": {
- "last_update": "2019-08-24T14:15:22Z"
}
}
}This endpoint will opt-in for forwarding the process data of a device to a SFTP/FTPS server.
| company_id required | string Example: 1234 The company id which is linked to the device |
| device_id required | string Example: 1234 The device id to get the process data from |
| host | string The host name of the FTP server |
| port | number The port number of the FTP server |
| username | string The username to authenticate with the FTP server |
| password | string The password to authenticate with the FTP server |
| ftp_type | string the type of the FTP server |
| destination_path | string The path to save the files on the FTP server |
{- "host": "ftp.example.com",
- "port": 21,
- "username": "username",
- "password": "password",
- "ftp_type": "SFTP|EXPLICIT_FTPS|IMPLICIT_FTPS",
- "destination_path": "/path/to/save"
}{- "message": "string"
}This endpoint will fetch the process data forwarding SFTP/FTPS configuration.
| company_id required | string Example: 1234 The company id which is linked to the device |
| device_id required | string Example: 1234 The device id to get the process data from |
{- "data": {
- "ftp": {
- "host": "string",
- "port": 0,
- "username": "string",
- "password": "string",
- "ftp_type": "string",
- "destination_path": "string"
}
}
}This endpoint will delete the process data forwarding SFTP/FTPS configuration.
| company_id required | string Example: 1234 The company id which is linked to the device |
| device_id required | string Example: 1234 The device id to get the ftp details |
| ftp_type required | string Example: SFTP|EXPLICIT_FTPS|IMPLICIT_FTPS The ftp type will be SFTP, EXPLICIT_FTPS or IMPLICIT_FTPS |
{- "message": "string"
}This endpoint will update the process data forwarding SFTP/FTPS configuration.
| company_id required | string Example: 1234 The company id which is linked to the device |
| device_id required | string Example: 1234 The device id to get the ftp details |
| ftp_type required | string Example: SFTP|EXPLICIT_FTPS|IMPLICIT_FTPS The ftp type will be SFTP, EXPLICIT_FTPS or IMPLICIT_FTPS |
| host | string The host name of the FTP server |
| port | number The port number of the FTP server |
| username | string The username to authenticate with the FTP server |
| password | string The password to authenticate with the FTP server |
| destination_path | string The path to save the files on the FTP server |
{- "host": "ftp.example.com",
- "port": 21,
- "username": "username",
- "password": "password",
- "destination_path": "/path/to/save"
}{- "message": "string"
}This endpoint will opt-in for forwarding the process data of a device to a list of email addresses. Maximum 5 emails per device can be added.
| company_id required | string Example: 1234 The company id which is linked to the device |
| device_id required | string Example: 1234 The device id to get the process data from |
| email_addresses | Array of strings non-empty The list of email addresses to opt in for process data forwarding CSV files |
{- "email_addresses": [
- "string"
]
}{- "message": "string"
}This endpoint will fetch list of email configured for forwarding the process data of a device
| company_id required | string Example: 1234 The company id which is linked to the device |
| device_id required | string Example: 1234 The device id to get the process data from |
{- "message": "string",
- "data": {
- "emails": [
- "string"
]
}
}This endpoint will delete the email configured for forwarding the process data of a device
| company_id required | string Example: 1234 The company id which is linked to the device |
| device_id required | string Example: 1234 The device id to get list of emails |
| email_address required | string Example: name@example.com email to delete from the list |
{- "message": "string"
}This endpoint will update the email configured for forwarding the process data of a device.
| company_id required | string Example: 1234 The company id which is linked to the device |
| device_id required | string Example: 1234 The device id to get list of emails |
| email_address required | string Example: name@example.com email to delete from the list |
| email_address | string The new email address for process data forwarding CSV files |
{- "email_address": "string"
}{- "message": "string"
}Lets user get a token to acess API's.
| client_id | string |
| client_secret | string |
| grant_type | string This parameter specifies the type of request, now only 'credentials' is supported. |
{- "client_id": "string",
- "client_secret": "string",
- "grant_type": "credentials"
}{- "data": {
- "jwt": "string"
}, - "message": "string"
}This API will return flow measurement data of a specific device.
| company_id required | string Example: This is company id linked to the device |
| device_id required | string Example: 1234568 This is Device ID of the device. |
| from_date | string Default: "None" Example: from_date=YYYY-MM-DD The date in the format YYYY, YYYY-MM or YYYY-MM-DD |
| to_date | string Default: "None" Example: to_date=YYYY-MM-DD The date in the format YYYY, YYYY-MM or YYYY-MM-DD |
| max_items | integer Default: 100 Example: max_items=123 Optional. The maximum of values to fetch. Will add a 'NextToken' key to fetch the next page. Defaults to 100 and cannot be less than 1 if specified. |
| next_token | string Default: "None" Example: next_token=eyabcdefgegOIjlwPIJmqmlqjzIOPJkLQjfd A base64 encoded string to fetch the next page of the paginated result. |
{- "message": "string",
- "data": {
- "DeviceId": "string",
- "NextValueTimestamp": "string",
- "NextValueDatetime": "string",
- "NextToken": "string",
- "Values": [
- {
- "BatteryCapacity": "string",
- "Totalizer1": "string",
- "Totalizer2": "string",
- "Totalizer3": "string",
- "TotalizerUnit": "string",
- "FlowUnit": "string",
- "FlowValue": "string",
- "Header": "string",
- "AnalogMeasurement1": "string",
- "AnalogMeasurement2": "string",
- "MessageNumber": 0,
- "TransmittedDatetime": "2019-08-24T14:15:22Z",
- "TransmittedTimestamp": "string",
- "CollectedDatetime": "2019-08-24T14:15:22Z",
- "CollectedTimestamp": "string",
- "Alarms": {
- "ModuleAlarms": [
- {
- "RequirementID": "string",
- "Description": "string"
}
], - "HostDeviceAlarms": [
- {
- "RequirementID": "string",
- "Description": "string"
}
]
}
}
]
}
}This API will return only the latest flow measurement data of a specific device.
| company_id required | string Example: This is company id linked to the device |
| device_id required | string Example: 1234568 This is Device ID of the device. |
{- "message": "string",
- "data": {
- "DeviceId": "string",
- "NextValueTimestamp": "string",
- "NextValueDatetime": "string",
- "NextToken": "string",
- "Values": [
- {
- "BatteryCapacity": "string",
- "Totalizer1": "string",
- "Totalizer2": "string",
- "Totalizer3": "string",
- "TotalizerUnit": "string",
- "FlowUnit": "string",
- "FlowValue": "string",
- "Header": "string",
- "AnalogMeasurement1": "string",
- "AnalogMeasurement2": "string",
- "MessageNumber": 0,
- "TransmittedDatetime": "2019-08-24T14:15:22Z",
- "TransmittedTimestamp": "string",
- "CollectedDatetime": "2019-08-24T14:15:22Z",
- "CollectedTimestamp": "string",
- "Alarms": {
- "ModuleAlarms": [
- {
- "RequirementID": "string",
- "Description": "string"
}
], - "HostDeviceAlarms": [
- {
- "RequirementID": "string",
- "Description": "string"
}
]
}
}
]
}
}This API returns the list of alarms raised for a device.
| company_id required | string Example: 1234 The company id which is linked to the device |
| device_id required | string Example: 1234 The device id to fetch the alarms from |
| from_date | string Default: "None" Example: from_date=YYYY-MM-DD The date in the format YYYY, YYYY-MM or YYYY-MM-DD |
| to_date | string Default: "None" Example: to_date=YYYY-MM-DD The date in the format YYYY, YYYY-MM or YYYY-MM-DD |
| max_items | integer Default: 100 Example: max_items=3 The maximum of values to fetch. Will add a 'NextToken' key to fetch the next page. Defaults to 100 and cannot be less than 1 if specified. |
| next_token | string Default: "None" Example: next_token=eyabcdefgegOIjlwPIJmqmlqjzIOPJkLQjfd A base64 encoded string to fetch the next page of the paginated result. |
{- "message": "string",
- "data": {
- "DeviceId": "string",
- "NextToken": "string",
- "Values": [
- {
- "Date": "string",
- "ModuleAlarms": [
- {
- "RequirementID": "string",
- "Description": "string"
}
], - "HostDeviceAlarms": [
- {
- "RequirementID": "string",
- "Description": "string"
}
]
}
]
}
}This API returns the list of alarms raised for all the devices under a company.
| company_id required | string Example: 1234 The company id which is linked to the device |
| from_date | string Default: "None" Example: from_date=YYYY-MM-DD The date in the format YYYY, YYYY-MM or YYYY-MM-DD |
| to_date | string Default: "None" Example: to_date=YYYY-MM-DD The date in the format YYYY, YYYY-MM or YYYY-MM-DD |
| max_items | integer Default: 100 Example: max_items=3 The maximum of values to fetch. Will add a 'NextToken' key to fetch the next page. Defaults to 100 and cannot be less than 1 if specified. |
| next_token | string Default: "None" Example: next_token=eyabcdefgegOIjlwPIJmqmlqjzIOPJkLQjfd A base64 encoded string to fetch the next page of the paginated result. |
{- "message": "string",
- "data": {
- "CompanyId": "string",
- "NextToken": "string",
- "Values": [
- {
- "Date": "string",
- "ModuleAlarms": [
- {
- "RequirementID": "string",
- "Description": "string"
}
], - "HostDeviceAlarms": [
- {
- "RequirementID": "string",
- "Description": "string"
}
], - "DeviceId": "string"
}
]
}
}This API returns the message when the particular parameter is requested to read.
| company_id required | string Example: 1234 The company id which is linked to the device |
| device_id required | string Example: 1234 The device id to fetch the parameters for |
| register_number required | string Example: register_number=5014 The register_number of the parameter |
{- "message": "string",
- "data": {
- "sent_message": "string",
- "sent_message_hex": "string",
- "topic": "string",
- "message_id": "string"
}
}This API returns the message when the particular parameter value is requested to update.
| company_id required | string Example: 1234 The company id which is linked to the device |
| device_id required | string Example: 1234 The device id to fetch the parameters for |
| register_number required | string Example: register_number=5014 The register_number of the parameter |
| register_value required | string Example: register_value=200 The value of the parameter |
{- "message": "string",
- "data": {
- "sent_message": "string",
- "sent_message_hex": "string",
- "topic": "string",
- "message_id": "string"
}
}This API returns the message when the particular host register/coil value is requested to update.
| company_id required | string Example: 1234 The company id which is linked to the device |
| device_id required | string Example: 1234 The device id to fetch the parameters for |
| parameter_type required | string Example: parameter_type=coil The register belongs to which parameter type- coil/register |
| register_number required | string Example: register_number=5014 The register_number of the parameter |
| register_value required | string Example: register_value=200 The value of the parameter |
{- "message": "string",
- "data": {
- "sent_message": "string",
- "sent_message_hex": "string",
- "topic": "string",
- "message_id": "string"
}
}This API returns the message when the particular host register/coil value is requested to read.
| company_id required | string Example: 1234 The company id which is linked to the device |
| device_id required | string Example: 1234 The device id to fetch the parameters for |
| parameter_type required | string Example: parameter_type=coil The register belongs to which parameter type- coil/register |
| register_number required | string Example: register_number=5014 The register_number of the parameter |
{- "message": "string",
- "data": {
- "sent_message": "string",
- "sent_message_hex": "string",
- "topic": "string",
- "message_id": "string"
}
}This API will return device register value and status.
| company_id required | string Example: 1234 The company id which is linked to the device |
| device_id required | string Example: 1234 The device id to fetch the register data from |
| status | string Example: status=True (Optional). Fetch the status for parameter request. Allowed values True or False |
| register_num | string Example: register_num=5011 (Optional). Limit the response data to specific register number of the device |
{- "message": "<string>",
- "data": {
- "DeviceId": "<string>",
- "register_number": {
- "Value": "<string>",
- "ParameterName": "<string>",
- "DataType": "<string>",
- "MinValue": "<string>",
- "MaxValue": "<string>",
- "DefaultValue": "<string>",
- "Permission": "<string>",
- "Description": "<string>"
}
}
}This API will return device host register value and status.
| company_id required | string Example: 1234 The company id which is linked to the device |
| device_id required | string Example: 1234 The device id to fetch the register data from |
| status | string Example: status=True (Optional). Fetch the status for parameter request. Allowed values True or False |
| register_num | string Example: register_num=5011 (Optional). Limit the response data to specific register number of the device |
| parameter_type required | string Example: parameter_type=coil The register belongs to which parameter type- coil/register |
{- "message": "<string>",
- "data": {
- "DeviceId": "<string>",
- "register_number": {
- "Value": "<string>",
- "ParameterName": "<string>",
- "DataType": "<string>",
- "MinValue": "<string>",
- "MaxValue": "<string>",
- "Permission": "<string>",
- "Description": "<string>",
- "ParameterNumber": "<string>"
}
}
}This API will return the device queue status for 4G devices.
| company_id required | string Example: 1234 The company id which is linked to the device |
| device_id required | string Example: 1234 The device id to fetch the register data from |
{- "message": "string",
- "data": {
- "queueCount": 0,
- "inflightCount": 0,
- "retryCount": 0,
- "status": "string"
}
}This endpoint will trigger FUOTA to device.
| company_id required | string Example: 1234 The company id which is linked to the device |
| device_id required | string Example: 1234 The device id to fetch the parameters for |
{- "message": "string",
- "data": {
- "sent_message": "string",
- "sent_message_hex": "string",
- "topic": "string",
- "message_id": "string"
}
}This endpoint will get fuota status.
| company_id required | string Example: 1234 The company id which is linked to the device |
| device_id required | string Example: 1234 The device id to fetch the parameters for |
{- "message": "string",
- "data": {
- "sent_message": "string",
- "sent_message_hex": "string",
- "topic": "string",
- "message_id": "string"
}
}This endpoint will fetch the list of firmware versions available for FUOTA.
{- "data": {
- "firmwares": {
- "bundles": [
- {
- "version": "string",
- "last_modified": "string"
}
], - "firmwares": [
- {
- "version": "string",
- "last_modified": "string"
}
]
}, - "parameters_list": {
- "module": {
- "4G": [
- "string"
], - "LORA": [
- "string"
]
}, - "host_device": [
- "string"
]
}
}, - "message": "string"
}This endpoint will send an email to the user with a verification code to reset the password.
string |
{- "email": "zyx@gmail.com"
}{- "message": "Success"
}This endpoint will allow user to change current password.
| username | string |
| old_password | string |
| new_password | string |
{- "username": "zyx@gmail.com",
- "old_password": "G20JX+o^2{4_",
- "new_password": "Muwgy1H(6?3%"
}{- "message": "Success"
}This endpoint will allow user to confirm the password.
| username | string |
| verification_code | string |
| new_password | string |
{- "username": "zyx@gmail.com",
- "verification_code": "962534",
- "new_password": "Muwgy1H(6?3%"
}{- "message": "Success"
}