Data Sources
Returns a list of data sources in your organization.
Caps the page size. Defaults to 1000, which is also the maximum; a value below 1 or above 1000 is rejected.
1000Successful Response
Validation Error
GET /api/v2/data-sources HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"type": "text",
"readout_limit": 1,
"readout_interval": 1,
"readout_status": {
"last_readout_at": "2026-01-01T00:00:00.000Z",
"configured_variables": 1,
"state": {
"type": "OK"
}
},
"name": "text",
"spark": "123e4567-e89b-12d3-a456-426614174000",
"manufacturer": "Siemens",
"device_model": "S7-1214C",
"note": "text",
"capabilities": {
"variable_discovery": true
},
"machine": "123e4567-e89b-12d3-a456-426614174000",
"details": {
"host": "text",
"port": 44818,
"type": "text"
}
}
],
"metadata": {
"next_cursor": "text"
}
}Create a new data source
The human readable name of the data source.
Which SPARK reads from the data source. It must be located at the same site as the current SPARK.
Manufacturer of the data source.
SiemensSpecific model or name describing the data source as concretely as possible.
S7-1214CGeneral remarks concerning this data source.
On which machine the data source is located.
Data Source specific properties required for the connection to the data source
Successful Response
The human readable name of the data source.
Which SPARK reads from the data source. It must be located at the same site as the current SPARK.
Manufacturer of the data source.
SiemensSpecific model or name describing the data source as concretely as possible.
S7-1214CGeneral remarks concerning this data source.
On which machine the data source is located.
This field is deprecated, use the readout_status.last_readout_at
Data Source specific properties required for the connection to the data source
Validation Error
POST /api/v2/data-sources HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 229
{
"name": "text",
"spark": "123e4567-e89b-12d3-a456-426614174000",
"manufacturer": "Siemens",
"device_model": "S7-1214C",
"note": "text",
"machine": "123e4567-e89b-12d3-a456-426614174000",
"details": {
"host": "text",
"port": 44818,
"type": "text"
}
}{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"type": "text",
"readout_limit": 1,
"readout_interval": 1,
"readout_status": {
"last_readout_at": "2026-01-01T00:00:00.000Z",
"configured_variables": 1,
"state": {
"type": "OK"
}
},
"name": "text",
"spark": "123e4567-e89b-12d3-a456-426614174000",
"manufacturer": "Siemens",
"device_model": "S7-1214C",
"note": "text",
"capabilities": {
"variable_discovery": true
},
"machine": "123e4567-e89b-12d3-a456-426614174000",
"details": {
"host": "text",
"port": 44818,
"type": "text"
}
}Returns details for a specific data source.
Successful Response
The human readable name of the data source.
Which SPARK reads from the data source. It must be located at the same site as the current SPARK.
Manufacturer of the data source.
SiemensSpecific model or name describing the data source as concretely as possible.
S7-1214CGeneral remarks concerning this data source.
On which machine the data source is located.
This field is deprecated, use the readout_status.last_readout_at
Data Source specific properties required for the connection to the data source
Validation Error
GET /api/v2/data-sources/{uuid} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"type": "text",
"readout_limit": 1,
"readout_interval": 1,
"readout_status": {
"last_readout_at": "2026-01-01T00:00:00.000Z",
"configured_variables": 1,
"state": {
"type": "OK"
}
},
"name": "text",
"spark": "123e4567-e89b-12d3-a456-426614174000",
"manufacturer": "Siemens",
"device_model": "S7-1214C",
"note": "text",
"capabilities": {
"variable_discovery": true
},
"machine": "123e4567-e89b-12d3-a456-426614174000",
"details": {
"host": "text",
"port": 44818,
"type": "text"
}
}Reveal what a data source authenticates with, in the shape its own type uses — a password for S7+, a user identity for OPC UA, the whole connection URL for SQL. Regular reads never include any of it, and a type that stores no credential answers unauthenticated. This is a step-up guarded read: the session's last active authentication must be no older than the server's maximum, otherwise the response is a 403 naming the max_age to re-authenticate with (OIDC max_age). Only an interactive user session can be stepped up — API keys and delegated OAuth clients are refused.
Successful Response
Forbidden
Not Found
Validation Error
GET /api/v2/data-sources/{uuid}/credentials HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"username": "text",
"password": "text",
"type": "text"
}Delete a data source
Successful Response
No content
Validation Error
DELETE /api/v2/data-sources/{data_source_uuid} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
No content
Update a data source
The human readable name of the data source.
Which SPARK reads from the data source. It must be located at the same site as the current SPARK.
Manufacturer of the data source.
SiemensSpecific model or name describing the data source as concretely as possible.
S7-1214CGeneral remarks concerning this data source.
Data Source specific properties required for the connection to the data source
Successful Response
Validation Error
PATCH /api/v2/data-sources/{data_source_uuid} HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 176
{
"name": "text",
"spark": "123e4567-e89b-12d3-a456-426614174000",
"manufacturer": "Siemens",
"device_model": "S7-1214C",
"note": "text",
"details": {
"type": "text",
"host": "text",
"port": 1
}
}No content
Last updated