Repository navigation
SolarUser Datum Stream Alias API
The SolarUser Datum Stream Alias API provides methods to manage datum stream alias entities. All requests must provide a valid user authentication token. See SolarNet API authentication for information on how to use authentication tokens.
A datum stream alias defines a node and source ID combination that refers to different node and source ID combination. This can be used to grant access to a datum stream that a user would not otherwise have access to, for example due to a security policy. For more details see Datum stream alias.
An alias normally points to a datum stream in the same account. A grant lets a stream's owner allow another account to alias that stream, so the other account can query the stream with its own tokens and pay for the query usage.
All dates and times are represented in the Gregorian calendar system. Timestamps returned
from the API are formatted in ISO 8601 style, using a space delimiter instead of T. For example: 2026-01-01 10:20:30.123456Z.
| Verb | Endpoint | Description |
|---|---|---|
POST |
/datum/stream/alias |
Create a new datum stream alias. |
GET |
/datum/stream/alias |
List datum stream aliases that match a search criteria. |
DELETE |
/datum/stream/alias |
Delete datum stream alias that match a search criteria. |
GET |
/datum/stream/alias/{aliasId} |
View a specific datum stream alias. |
PUT |
/datum/stream/alias/{aliasId} |
Update a specific datum stream alias. |
DELETE |
/datum/stream/alias/{aliasId} |
Delete a specific datum stream alias. |
POST |
/datum/stream/alias/bulk |
Create a set of new datum stream aliases. |
POST |
/datum/stream/alias/grants |
Create a new datum stream alias grant. |
GET |
/datum/stream/alias/grants |
List the grants made by the active user. |
GET |
/datum/stream/alias/grants/received |
List the enabled grants made to the active user. |
GET |
/datum/stream/alias/grants/received/streams |
List the streams of other accounts that can be aliased on a node. |
GET |
/datum/stream/alias/grants/{grantId} |
View a specific grant. |
PUT |
/datum/stream/alias/grants/{grantId} |
Update a specific grant. |
POST |
/datum/stream/alias/grants/{grantId}/enabled/{enabled} |
Enable or disable a specific grant. |
DELETE |
/datum/stream/alias/grants/{grantId} |
Delete a specific grant. |
A datum stream alias entity represents a single alias mapping to an original datum stream. The alias defines a unique node and source ID combination that points to a non-alias stream's node and source ID combination. For more details see Datum stream alias.
A Datum Stream Alias entity has the following properties:
| Property | Type | Description |
|---|---|---|
streamId |
String | The unique ID of the alias entity, serving as the alias' datum stream ID. |
created |
String | The creation date (see date formatting). |
modified |
String | The most recent modification date (see date formatting). |
kind |
String | Either n (node) or l (location). Only n is allowed in this API. |
objectId |
Number | The alias node ID. |
sourceId |
String | The alias source ID. |
originalObjectId |
Number | The original node ID the alias points to. |
originalSourceId |
String | The original source ID the alias points to. |
An example entity expressed in JSON looks like this:
{
"streamId": "949e2fc5-38b9-4e9b-9486-abe369da0eff",
"created": "2026-04-01 04:45:37.304327Z",
"modified": "2026-04-01 04:45:37.304328Z",
"kind": "n",
"objectId": 321,
"sourceId": "meter/b",
"originalObjectId": 123,
"originalSourceId": "meter/a"
}This method creates a new Datum Stream Alias entity. An application/json request body must be
provided with the details to create.
| POST | /solaruser/api/v1/sec/datum/stream/alias |
|---|
The request body accepts a Datum Stream Alias JSON object with the following properties:
| Property | Type | Description |
|---|---|---|
objectId |
Number | The alias node ID. |
sourceId |
String | The alias source ID. |
originalObjectId |
Number | The original node ID the alias points to. |
originalSourceId |
String | The original source ID the alias points to. |
For example:
{
"objectId": 321,
"sourceId": "meter/b",
"originalObjectId": 123,
"originalSourceId": "meter/a"
}The response will be a Datum Stream Alias entity object that provides the assigned ID. See the view response section for more details. In addition a Location HTTP header will be returned with the path to view the entity, for example:
Location: /solaruser/api/v1/sec/datum/stream/alias/dddd-ee-ff-gggg
This method creates a set of new Datum Stream Alias entities, for example to alias all the streams returned by the list available streams method. Either all the aliases are created, or none are.
| POST | /solaruser/api/v1/sec/datum/stream/alias/bulk |
|---|
The request body must be a JSON array of up to 1000 objects with the same properties as the create method. The caller chooses the alias node and source ID of each object. For example:
[
{
"objectId": 321,
"sourceId": "b/meter/a",
"originalObjectId": 123,
"originalSourceId": "meter/a"
},
{
"objectId": 321,
"sourceId": "b/meter/b",
"originalObjectId": 123,
"originalSourceId": "meter/b"
}
]The response will be an array of Datum Stream Alias entity objects, in the same order as the request. The request fails, with no aliases created, if any object is invalid or not allowed, or if any alias node and source ID combination is already in use.
This method returns a list of Datum Stream Alias entities matching an optional search filter.
| GET | /solaruser/api/v1/sec/datum/stream/alias |
|---|
The URL accepts the following search filter query parameters, which are combined using a logical "and" operation to determine which entities to return:
| Property | Description |
|---|---|
nodeId |
The ID of a single node. |
nodeIds |
A comma-delimited list of node IDs. This parameter may be also provided multiple times. |
sourceId |
String |
sourceIds |
A comma-delimited list of source IDs to restrict the results to. This parameter may also be provided multiple times. |
streamId |
The ID of a single stream to restrict the results to. |
streamIds |
A comma-delimited list of stream IDs to restrict the results to. This parameter may also be provided multiple times. |
streamAliasMatchType |
One of OriginalOrAlias, OriginalOnly, or AliasOnly. Determines what the node/source/stream criteria can match: original or alias values. Defaults to OriginalOrAlias. |
offset |
Optional starting result offset. Defaults to 0. |
max |
Optional maximum result count, or unlimited if not provided. |
The response will be a paged results list of Datum Stream Alias entity objects.
This method will delete Datum Stream Alias entities matching a search filter.
| DELETE | /solaruser/api/v1/sec/datum/stream/alias |
|---|
The URL accepts the following search filter query parameters, which are combined using a logical "and" operation to determine which entities to delete:
| Property | Description |
|---|---|
nodeId |
The ID of a single node to delete. |
nodeIds |
A comma-delimited list of node IDs to delete. This parameter may be also provided multiple times. |
sourceId |
String |
sourceIds |
A comma-delimited list of source IDs to delete. This parameter may also be provided multiple times. |
streamId |
The ID of a single stream to delete. |
streamIds |
A comma-delimited list of stream IDs to delete. This parameter may also be provided multiple times. |
streamAliasMatchType |
One of OriginalOrAlias, OriginalOnly, or AliasOnly. Determines what the node/source/stream criteria can match: original or alias values. Defaults to OriginalOrAlias. |
The response will be empty.
This method returns a specific Datum Stream Alias entity.
| GET | /solaruser/api/v1/sec/datum/stream/alias/{aliasId} |
|---|---|
aliasId |
The ID of the Datum Stream Alias entity to view. |
The response will be a Datum Stream Alias entity object.
An example response looks like:
{
"success": true,
"data": {
"streamId": "949e2fc5-38b9-4e9b-9486-abe369da0eff",
"created": "2026-04-01 04:45:37.304327Z",
"modified": "2026-04-01 04:45:37.304328Z",
"kind": "n",
"objectId": 321,
"sourceId": "meter/b",
"originalObjectId": 123,
"originalSourceId": "meter/a"
}
}Use this method to change a specific Datum Stream Alias entity's properties. An application/json
request body must be provided with the details to update.
| PUT | /solaruser/api/v1/sec/datum/stream/alias/{aliasId} |
|---|---|
aliasId |
The ID of the Datum Stream Alias entity to update. |
The request body accepts a Datum Stream Alias JSON object with the following properties:
| Property | Type | Description |
|---|---|---|
objectId |
Number | The alias node ID. |
sourceId |
String | The alias source ID. |
originalObjectId |
Number | The original node ID to point the alias at. |
originalSourceId |
String | The original source ID to point the alias at. |
For example:
{
"objectId": 2,
"sourceId": "meter/2",
"originalObjectId": 123,
"originalSourceId": "meter/a"
}The response will be the updated full Datum Stream Alias entity object. See the view response section for more details.
Use this method to delete a specific Datum Stream Alias entity.
| DELETE | /solaruser/api/v1/sec/datum/stream/alias/{aliasId} |
|---|---|
aliasId |
The ID of the Datum Stream Alias entity to delete. |
The response will be empty.
A grant allows another account, the grantee, to create aliases of datum streams owned by the account making the grant. Once such an alias exists the grantee can query the stream using the alias IDs, through their own security tokens and policies.
- Grants are checked every time an alias is used, not only when it is created. An alias stops resolving when its grant is disabled, changed to exclude the stream, or deleted, and works again if the grant is restored. Such a change can take up to a few minutes to reach cached queries, and a datum export that is already running is not checked again.
- A grant only ever applies to nodes the grant owner owns at the time of a query. If a node is transferred to another account, the grant no longer applies to that node and is updated to remove it. The new owner must make their own grant to allow access. Grants do not apply to archived nodes.
- The alias must be on a node owned by the grantee. That node must be private, unless the grant
that matches the stream has
allowPublicset. WithallowPublicthe stream can be read by anyone, without a token, through any public node of the grantee that hosts an alias of it, including its property names and metadata. Set it only on a grant covering streams you are happy to make public. Other streams, including those matched by another grant to the same grantee, are not affected. IfallowPublicis removed, aliases on public nodes stop resolving but aliases on private nodes keep working. - The grantee account pays for the query usage of its aliases, including anonymous queries of a public node, and usage already recorded stays with that account after a grant is removed.
- The grantee can see the stream's property names and metadata, in addition to its datum.
- Only tokens without a security policy can create aliases of streams in another account, list the available streams, or manage grants.
A Datum Stream Alias Grant entity has the following properties:
| Property | Type | Description |
|---|---|---|
userId |
Number | The ID of the account that owns the streams and made the grant. |
grantId |
Number | The unique ID of the grant, within the owner account. |
created |
String | The creation date (see date formatting). |
modified |
String | The most recent modification date (see date formatting). |
enabled |
Boolean |
true if the grant is in effect. |
allowPublic |
Boolean |
true if aliases on public nodes may resolve, making the granted streams readable by anyone. |
granteeId |
Number | The ID of the account allowed to create aliases. |
nodeIds |
Number[] | The node IDs the grant applies to. If omitted, all nodes owned by userId. |
sourceIds |
String[] | The source IDs the grant applies to, which can be Ant-style patterns such as meter/*. If omitted, all sources. |
At least one of nodeIds or sourceIds is always present. When both are, a stream must match both.
An example entity expressed in JSON looks like this:
{
"userId": 2,
"grantId": 10,
"created": "2026-11-01 04:45:37.304327Z",
"modified": "2026-11-01 04:45:37.304327Z",
"enabled": true,
"allowPublic": false,
"granteeId": 1,
"nodeIds": [123],
"sourceIds": ["meter/*"]
}This method creates a new Datum Stream Alias Grant entity. An application/json request body must be
provided with the details to create.
| POST | /solaruser/api/v1/sec/datum/stream/alias/grants |
|---|
The request body accepts a JSON object with the following properties:
| Property | Type | Description |
|---|---|---|
enabled |
Boolean |
true if the grant is in effect. |
allowPublic |
Boolean |
true if aliases on public nodes may resolve, making the granted streams readable by anyone. Defaults to false. |
granteeId |
Number | The ID of the account allowed to create aliases. Required. |
nodeIds |
Number[] | Up to 1000 node IDs, all owned by the active user. |
sourceIds |
String[] | Up to 100 source IDs or Ant-style patterns, each up to 64 characters. |
At least one of nodeIds or sourceIds must be provided. For example:
{
"enabled": true,
"granteeId": 1,
"nodeIds": [123],
"sourceIds": ["meter/*"]
}The response will be a Datum Stream Alias Grant entity object that
provides the assigned ID. In addition a Location HTTP header will be returned with the path to view
the entity.
This method returns a list of the Datum Stream Alias Grant entities made by the active user.
| GET | /solaruser/api/v1/sec/datum/stream/alias/grants |
|---|
The URL accepts the following search filter query parameters, which are combined using a logical "and" operation to determine which entities to return:
| Parameter | Type | Description |
|---|---|---|
grantId |
Number | A grant ID to match. Use grantIds for a list. |
granteeId |
Number | A grantee account ID to match. Use granteeIds for a list. |
enabled |
Boolean | Limit to enabled, or disabled, grants. |
max |
Number | The maximum number of results to return. |
offset |
Number | The first result to return, starting from 0. |
The response is a paged results object of Datum Stream Alias Grant entities.
This method returns a list of the enabled Datum Stream Alias Grant entities made to the active user. A disabled grant is not shown to the grantee.
| GET | /solaruser/api/v1/sec/datum/stream/alias/grants/received |
|---|
The URL accepts the following search filter query parameters, which are combined using a logical "and" operation to determine which entities to return:
| Parameter | Type | Description |
|---|---|---|
userId |
Number | The ID of a grant owner to match. Use userIds for a list. |
grantId |
Number | A grant ID to match. Use grantIds for a list. |
max |
Number | The maximum number of results to return. |
offset |
Number | The first result to return, starting from 0. |
The response is a paged results object of Datum Stream Alias Grant entities.
This method returns the datum streams of other accounts that the active user can alias on a given node, based on the grants made to the active user.
| GET | /solaruser/api/v1/sec/datum/stream/alias/grants/received/streams |
|---|
The URL accepts the following query parameters:
| Parameter | Type | Description |
|---|---|---|
objectId |
Number | The ID of the node that would host the aliases, which must be owned by the active user. For a public node only streams matched by a grant with allowPublic are returned. Required. |
userId |
Number | The ID of a stream owner to match. Use userIds for a list. |
grantId |
Number | Limit to streams matched by a grant. Use grantIds for a list. |
max |
Number | The maximum number of results to return. |
offset |
Number | The first result to return, starting from 0. |
The response is a paged results object of stream objects, each with the following properties:
| Property | Type | Description |
|---|---|---|
userId |
Number | The ID of the account that owns the stream. |
objectId |
Number | The node ID of the stream, to use as originalObjectId in an alias. |
sourceId |
String | The source ID of the stream, to use as originalSourceId in an alias. |
For example:
{
"success": true,
"data": {
"totalResults": 1,
"startingOffset": 0,
"returnedResultCount": 1,
"results": [
{
"userId": 2,
"objectId": 123,
"sourceId": "meter/a"
}
]
}
}Use this method to view a specific Datum Stream Alias Grant entity made by the active user.
| GET | /solaruser/api/v1/sec/datum/stream/alias/grants/{grantId} |
|---|---|
grantId |
The ID of the grant to view. |
The response will be a Datum Stream Alias Grant entity object.
Use this method to update a specific Datum Stream Alias Grant entity. The request body accepts the same object as the create grant method.
| PUT | /solaruser/api/v1/sec/datum/stream/alias/grants/{grantId} |
|---|---|
grantId |
The ID of the grant to update. |
The response will be the updated Datum Stream Alias Grant entity object.
Use this method to enable or disable a specific Datum Stream Alias Grant entity.
| POST | /solaruser/api/v1/sec/datum/stream/alias/grants/{grantId}/enabled/{enabled} |
|---|---|
grantId |
The ID of the grant to update. |
enabled |
true to enable the grant, false to disable it. |
The response will be the updated Datum Stream Alias Grant entity object.
Use this method to delete a specific Datum Stream Alias Grant entity. Aliases that depend on the grant are not deleted, but no longer resolve to the stream.
| DELETE | /solaruser/api/v1/sec/datum/stream/alias/grants/{grantId} |
|---|---|
grantId |
The ID of the grant to delete. |
The response will be empty.
- SolarNetwork API access
- SolarNetwork API authentication
- SolarNetwork API rate limiting
- SolarNetwork global objects
- SolarNetwork aggregation
- SolarFlux API
- SolarIn API
- SolarQuery API
-
SolarUser API
- SolarUser enumerated types
- SolarUser account API
- SolarUser datum expire API
- SolarUser datum export API
- SolarUser datum import API
- SolarUser datum stream alias API
- SolarUser event hook API
- SolarUser location request API
- SolarUser Cloud Integrations API
- SolarUser DIN API
- SolarUser DNP3 API
- SolarUser ININ API
- SolarUser OCPP API
- SolarUser OSCP API
- SolarUser Secrets API
- SolarUser SolarFlux API