# AWS IoT SiteWise API

> Welcome to the IoT SiteWise API Reference. IoT SiteWise is an Amazon Web Services service that connects <a href="https://en.wikipedia.org/wiki/Internet_of_things#Industrial_applications">Industrial Internet of Things (IIoT)</a> devices to the power of the Amazon Web Services Cloud. For more information, see the <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/">IoT SiteWise User Guide</a>. For information about IoT SiteWise quotas, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a> in the <i>IoT SiteWise User Guide</i>.

AWS IoT SiteWise is a cloud platforms API from amazonaws.com. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 73 endpoints.

## At a glance

- Category: [Cloud Platforms](https://www.openparable.com/apis/category/cloud)
- Provider: amazonaws.com
- Authentication: API key
- HTTPS: Yes
- CORS: Not stated
- Documentation: https://docs.aws.amazon.com/iotsitewise/
- OpenAPI description: https://api.apis.guru/v2/specs/amazonaws.com/iotsitewise/2019-12-02/openapi.json
- Version: 2019-12-02
- Specification updated: 2020-05-12

## Endpoints

- `POST /assets/{assetId}/associate` — Associates a child asset with the given parent asset through a hierarchy defined in the parent asset's model. For more information, see <a href="https://docs.aw
- `POST /timeseries/associate/#alias&assetId&propertyId` — Associates a time series (data stream) with an asset property.
- `POST /projects/{projectId}/assets/associate` — Associates a group (batch) of assets with an IoT SiteWise Monitor project.
- `POST /projects/{projectId}/assets/disassociate` — Disassociates a group (batch) of assets from an IoT SiteWise Monitor project.
- `POST /properties/batch/aggregates` — Gets aggregated values (for example, average, minimum, and maximum) for one or more asset properties. For more information, see <a href="https://docs.aws.amazon
- `POST /properties/batch/latest` — Gets the current value for one or more asset properties. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/query-indu
- `POST /properties/batch/history` — Gets the historical values for one or more asset properties. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/query-
- `POST /properties` — <p>Sends a list of asset property values to IoT SiteWise. Each value is a timestamp-quality-value (TQV) data point. For more information, see <a href="https://d
- `GET /access-policies` — Retrieves a paginated list of access policies for an identity (an IAM Identity Center user, an IAM Identity Center group, or an IAM user) or an IoT SiteWise Mon
- `POST /access-policies` — Creates an access policy that grants the specified identity (IAM Identity Center user, IAM Identity Center group, or IAM user) access to the specified IoT SiteW
- `GET /assets` — <p>Retrieves a paginated list of asset summaries.</p> <p>You can use this operation to do the following:</p> <ul> <li> <p>List assets based on a specific asset
- `POST /assets` — Creates an asset from an existing asset model. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/create-assets.html">
- `GET /asset-models` — Retrieves a paginated list of summaries of all asset models.
- `POST /asset-models` — Creates an asset model from specified property and hierarchy definitions. You create assets from asset models. With asset models, you can easily create assets o
- `GET /jobs` — Retrieves a paginated list of bulk import job requests. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/ListBulkImp
- `POST /jobs` — <p>Defines a job to ingest data to IoT SiteWise from Amazon S3. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/Cre
- `POST /dashboards` — Creates a dashboard in an IoT SiteWise Monitor project.
- `GET /20200301/gateways` — Retrieves a paginated list of gateways.
- `POST /20200301/gateways` — Creates a gateway, which is a virtual or edge device that delivers industrial data streams from local servers to IoT SiteWise. For more information, see <a href
- `GET /portals` — Retrieves a paginated list of IoT SiteWise Monitor portals.
- `POST /portals` — <p>Creates a portal, which can contain projects and dashboards. IoT SiteWise Monitor uses IAM Identity Center or IAM to authenticate portal users and manage use
- `POST /projects` — <p>Creates a project in the specified portal.</p> <note> <p>Make sure that the project name and description don't contain confidential information.</p> </note>
- `GET /access-policies/{accessPolicyId}` — Describes an access policy, which specifies an identity's access to an IoT SiteWise Monitor portal or project.
- `PUT /access-policies/{accessPolicyId}` — Updates an existing access policy that specifies an identity's access to an IoT SiteWise Monitor portal or project resource.
- `DELETE /access-policies/{accessPolicyId}` — Deletes an access policy that grants the specified identity access to the specified IoT SiteWise Monitor resource. You can use this operation to revoke access t
- `GET /assets/{assetId}` — Retrieves information about an asset.
- `PUT /assets/{assetId}` — Updates an asset's name. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/update-assets-and-models.html">Updating as
- `DELETE /assets/{assetId}` — <p>Deletes an asset. This action can't be undone. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/delete-assets-and
- `GET /asset-models/{assetModelId}` — Retrieves information about an asset model.
- `PUT /asset-models/{assetModelId}` — <p>Updates an asset model and all of the assets that were created from the model. Each asset created from the model inherits the updated asset model's property
- `DELETE /asset-models/{assetModelId}` — Deletes an asset model. This action can't be undone. You must delete all assets created from an asset model before you can delete the model. Also, you can't del
- `GET /dashboards/{dashboardId}` — Retrieves information about a dashboard.
- `PUT /dashboards/{dashboardId}` — Updates an IoT SiteWise Monitor dashboard.
- `DELETE /dashboards/{dashboardId}` — Deletes a dashboard from IoT SiteWise Monitor.
- `GET /20200301/gateways/{gatewayId}` — Retrieves information about a gateway.
- `PUT /20200301/gateways/{gatewayId}` — Updates a gateway's name.
- `DELETE /20200301/gateways/{gatewayId}` — Deletes a gateway from IoT SiteWise. When you delete a gateway, some of the gateway's files remain in your gateway's file system.
- `GET /portals/{portalId}` — Retrieves information about a portal.
- `PUT /portals/{portalId}` — Updates an IoT SiteWise Monitor portal.
- `DELETE /portals/{portalId}` — Deletes a portal from IoT SiteWise Monitor.
- `GET /projects/{projectId}` — Retrieves information about a project.
- `PUT /projects/{projectId}` — Updates an IoT SiteWise Monitor project.
- `DELETE /projects/{projectId}` — Deletes a project from IoT SiteWise Monitor.
- `POST /timeseries/delete/` — <p>Deletes a time series (data stream). If you delete a time series that's associated with an asset property, the asset property still exists, but the time seri
- `GET /assets/{assetId}/properties/{propertyId}` — <p>Retrieves information about an asset property.</p> <note> <p>When you call this operation for an attribute property, this response includes the default attri
- `PUT /assets/{assetId}/properties/{propertyId}` — <p>Updates an asset property's alias and notification state.</p> <important> <p>This operation overwrites the property's existing alias and notification state.
- `GET /jobs/{jobId}` — Retrieves information about a bulk import job request. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/DescribeBulk
- `GET /configuration/account/encryption` — Retrieves information about the default encryption configuration for the Amazon Web Services account in the default or specified Region. For more information, s
- `POST /configuration/account/encryption` — Sets the default encryption configuration for the Amazon Web Services account. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/lates
- `GET /20200301/gateways/{gatewayId}/capability/{capabilityNamespace}` — Retrieves information about a gateway capability configuration. Each gateway capability defines data sources for a gateway. A capability configuration can conta
- `GET /logging` — Retrieves the current IoT SiteWise logging options.
- `PUT /logging` — Sets logging options for IoT SiteWise.
- `GET /configuration/account/storage` — Retrieves information about the storage configuration for IoT SiteWise.
- `POST /configuration/account/storage` — Configures storage settings for IoT SiteWise.
- `GET /timeseries/describe/` — <p>Retrieves information about a time series (data stream).</p> <p>To identify a time series, do one of the following:</p> <ul> <li> <p>If the time series isn't
- `POST /assets/{assetId}/disassociate` — Disassociates a child asset from the given parent asset through a hierarchy defined in the parent asset's model.
- `POST /timeseries/disassociate/#alias&assetId&propertyId` — Disassociates a time series (data stream) from an asset property.
- `GET /properties/aggregates#aggregateTypes&resolution&startDate&endDate` — <p>Gets aggregated values for an asset property. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/query-industrial-d
- `GET /properties/latest` — <p>Gets an asset property's current value. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/query-industrial-data.ht
- `GET /properties/history` — <p>Gets the history of an asset property's values. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/query-industrial
- `GET /properties/interpolated#startTimeInSeconds&endTimeInSeconds&quality&intervalInSeconds&type` — <p>Get interpolated values for an asset property for a specified time interval, during a period of time. If your time series is missing data points during the s
- `GET /asset-models/{assetModelId}/properties` — Retrieves a paginated list of properties associated with an asset model. If you update properties associated with the model before you finish listing all the pr
- `GET /assets/{assetId}/properties` — Retrieves a paginated list of properties associated with an asset. If you update properties associated with the model before you finish listing all the properti
- `GET /assets/{assetId}/assetRelationships#traversalType` — Retrieves a paginated list of asset relationships for an asset. You can use this operation to identify an asset's root asset and all associated assets between t
- `GET /assets/{assetId}/hierarchies` — <p>Retrieves a paginated list of associated assets.</p> <p>You can use this operation to do the following:</p> <ul> <li> <p>List child assets associated to a pa
- `GET /dashboards#projectId` — Retrieves a paginated list of dashboards for an IoT SiteWise Monitor project.
- `GET /projects/{projectId}/assets` — Retrieves a paginated list of assets associated with an IoT SiteWise Monitor project.
- `GET /projects#portalId` — Retrieves a paginated list of projects for an IoT SiteWise Monitor portal.
- `GET /tags#resourceArn` — Retrieves the list of tags for an IoT SiteWise resource.
- `POST /tags#resourceArn` — Adds tags to an IoT SiteWise resource. If a tag already exists for the resource, this operation updates the tag's value.
- `GET /timeseries/` — Retrieves a paginated list of time series (data streams).
- `DELETE /tags#resourceArn&tagKeys` — Removes a tag from an IoT SiteWise resource.
- `POST /20200301/gateways/{gatewayId}/capability` — Updates a gateway capability configuration or defines a new capability configuration. Each gateway capability defines data sources for a gateway. A capability c

## Questions

### Does the AWS IoT SiteWise API need an API key?

Yes. The AWS IoT SiteWise API uses API key authentication; the documentation explains how to get credentials.

### Does the AWS IoT SiteWise API support HTTPS?

Yes, the AWS IoT SiteWise API is served over HTTPS.

### How many endpoints does the AWS IoT SiteWise API have?

Its OpenAPI description lists 73 endpoints in version 2019-12-02. All of them are shown on this page.

### What are alternatives to the AWS IoT SiteWise API?

Other Cloud Platforms APIs include Remote Settings PROD, Linode API, DigitalOcean API, Vercel API, Platform API.

## Similar cloud platforms APIs

- [Remote Settings PROD](https://www.openparable.com/apis/remote-settings-prod): Firefox is a free web browser backed by Mozilla, a non-profit dedicated to internet health and privacy.
- [Linode API](https://www.openparable.com/apis/linode): ## Introduction The Linode API provides the ability to programmatically manage the full range of Linode products and services. This reference is designed to assist application developers and system administrators. Each endpoint includes descriptions, request syntax, and examples using standard HTTP requests. Response data is returned in JSON format. This document was generated from our OpenAPI Specification. See the <a target="_top" href="https://www.openapis.org">OpenAPI website</a> for more information. <a target="_top" href="/docs/api/openapi.yaml">Download the Linode OpenAPI Specification</a>. ## Changelog <a target="_top" href="/docs/products/tools/api/release-notes/">View our Changelog</a> to see release notes on all changes made to our API. ## Access and Authentication Some endpoints are publicly accessible without requiring authentication. All endpoints affecting your Account, however, require either a Personal Access Token or OAuth authentication (when using third-party applications). ### Personal Access Token The easiest way to access the API is with a Personal Access Token (PAT) generated from the <a target="_top" href="https://cloud.linode.com/profile/tokens">Linode Cloud Manager</a> or the [Create Personal Access Token](/docs/api/profile/#personal-access-token-create) endpoint. All scopes for the OAuth security model ([defined below](/docs/api/profile/#oauth)) apply to this security model as well. #### Authentication | Security Scheme Type: | HTTP | |-----------------------|------| | **HTTP Authorization Scheme** | bearer | ### OAuth If you only need to access the Linode API for personal use, we recommend that you create a [personal access token](/docs/api/#personal-access-token). If you're designing an application that can authenticate with an arbitrary Linode user, then you should use the OAuth 2.0 workflows presented in this section. For a more detailed example of an OAuth 2.0 implementation, see our guide on [How to Create an OAuth App with the Linode Python API Library](/docs/products/tools/api/guides/create-an-oauth-app-with-the-python-api-library/#oauth-2-authentication-exchange). Before you implement OAuth in your application, you first need to create an OAuth client. You can do this [with the Linode API](/docs/api/account/#oauth-client-create) or [via the Cloud Manager](https://cloud.linode.com/profile/clients): - When creating the client, you'll supply a `label` and a `redirect_uri` (referred to as the Callback URL in the Cloud Manager). - The response from this endpoint will give you a `client_id` and a `secret`. - Clients can be public or private, and are private by default. You can choose to make the client public when it is created. - A private client is used with applications which can securely store the client secret (that is, the secret returned to you when you first created the client). For example, an application running on a secured server that only the developer has access to would use a private OAuth client. This is also called a confidential client in some OAuth documentation. - A public client is used with applications where the client secret is not guaranteed to be secure. For example, a native app running on a user's computer may not be able to keep the client secret safe, as a user could potentially inspect the source of the application. So, native apps or apps that run in a user's browser should use a public client. - Public and private clients follow different workflows, as described below. #### OAuth Workflow The OAuth workflow is a series of exchanges between your third-party app and Linode. The workflow is used to authenticate a user before an application can start making API calls on the user's behalf. Notes: - With respect to the diagram in [section 1.2 of RFC 6749](https://tools.ietf.org/html/rfc6749#section-1.2), login.linode.com (referred to in this section as the *login server*) is the Resource Owner and the Authorization Server; api.linode.com (referred to here as the *api se
- [DigitalOcean API](https://www.openparable.com/apis/digitalocean): # Introduction The DigitalOcean API allows you to manage Droplets and resources within the DigitalOcean cloud in a simple, programmatic way using conventional HTTP requests. All of the functionality that you are familiar with in the DigitalOcean control panel is also available through the API, allowing you to script the complex actions that your situation requires. The API documentation will start with a general overview about the design and technology that has been implemented, followed by reference information about specific endpoints. ## Requests Any tool that is fluent in HTTP can communicate with the API simply by requesting the correct URI. Requests should be made using the HTTPS protocol so that traffic is encrypted. The interface responds to different methods depending on the action required. |Method|Usage| |--- |--- | |GET|For simple retrieval of information about your account, Droplets, or environment, you should use the GET method. The information you request will be returned to you as a JSON object. The attributes defined by the JSON object can be used to form additional requests. Any request using the GET method is read-only and will not affect any of the objects you are querying.| |DELETE|To destroy a resource and remove it from your account and environment, the DELETE method should be used. This will remove the specified object if it is found. If it is not found, the operation will return a response indicating that the object was not found. This idempotency means that you do not have to check for a resource's availability prior to issuing a delete command, the final state will be the same regardless of its existence.| |PUT|To update the information about a resource in your account, the PUT method is available. Like the DELETE Method, the PUT method is idempotent. It sets the state of the target using the provided values, regardless of their current values. Requests using the PUT method do not need to check the current attributes of the object.| |PATCH|Some resources support partial modification. In these cases, the PATCH method is available. Unlike PUT which generally requires a complete representation of a resource, a PATCH request is is a set of instructions on how to modify a resource updating only specific attributes.| |POST|To create a new object, your request should specify the POST method. The POST request includes all of the attributes necessary to create a new object. When you wish to create a new object, send a POST request to the target endpoint.| |HEAD|Finally, to retrieve metadata information, you should use the HEAD method to get the headers. This returns only the header of what would be returned with an associated GET request. Response headers contain some useful information about your API access and the results that are available for your request. For instance, the headers contain your current rate-limit value and the amount of time available until the limit resets. It also contains metrics about the total number of objects found, pagination information, and the total content length.| ## HTTP Statuses Along with the HTTP methods that the API responds to, it will also return standard HTTP statuses, including error codes. In the event of a problem, the status will contain the error code, while the body of the response will usually contain additional information about the problem that was encountered. In general, if the status returned is in the 200 range, it indicates that the request was fulfilled successfully and that no error was encountered. Return codes in the 400 range typically indicate that there was an issue with the request that was sent. Among other things, this could mean that you did not authenticate correctly, that you are requesting an action that you do not have authorization for, that the object you are requesting does not exist, or that your request is malformed. If you receive a status in the 500 range, this generally indicates a server-side problem. This means that we are having
- [Vercel API](https://www.openparable.com/apis/vercel): Vercel combines the best developer experience with an obsessive focus on end-user performance. Our platform enables frontend teams to do their best work.
- [Platform API](https://www.openparable.com/apis/platform): The [REST API specification](https://www.ably.io/documentation/rest-api) for Ably.
- [Azure Data Lake Storage](https://www.openparable.com/apis/azure-data-lake-storage): Azure Data Lake Storage provides storage for Hadoop and other big data workloads.
- [Control API v1](https://www.openparable.com/apis/control-v1): Use the Control API to manage your applications, namespaces, keys, queues, rules, and more. Detailed information on using this API can be found in the Ably <a href="https://ably.com/documentation/control-api">developer documentation</a>. Control API is currently in Beta.
- [Access Analyzer](https://www.openparable.com/apis/access-analyzer): <p>Identity and Access Management Access Analyzer helps identify potential resource-access risks by enabling you to identify any policies that grant access to an external principal. It does this by using logic-based reasoning to analyze resource-based policies in your Amazon Web Services environment. An external principal can be another Amazon Web Services account, a root user, an IAM user or role, a federated user, an Amazon Web Services service, or an anonymous user. You can also use IAM Access Analyzer to preview and validate public and cross-account access to your resources before deploying permissions changes. This guide describes the Identity and Access Management Access Analyzer operations that you can call programmatically. For general information about IAM Access Analyzer, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/what-is-access-analyzer.html">Identity and Access Management Access Analyzer</a> in the <b>IAM User Guide</b>.</p> <p>To start using IAM Access Analyzer, you first need to create an analyzer.</p>
- [Azure Metrics](https://www.openparable.com/apis/azure-metrics): A client for issuing REST requests to the Azure metrics service.
- [BatchService](https://www.openparable.com/apis/batchservice-windows): A client for issuing REST requests to the Azure Batch service.
- [Alexa For Business](https://www.openparable.com/apis/alexa-for-business): Alexa for Business helps you use Alexa in your organization. Alexa for Business provides you with the tools to manage Alexa devices, enroll your users, and assign skills, at scale. You can build your own context-aware voice skills using the Alexa Skills Kit and the Alexa for Business API operations. You can also make these available as private skills for your organization. Alexa for Business makes it efficient to voice-enable your products and services, thus providing context-aware voice experiences for your customers. Device makers building with the Alexa Voice Service (AVS) can create fully integrated solutions, register their products with Alexa for Business, and manage them as shared devices in their organization.
- [Hetzner Cloud API](https://www.openparable.com/apis/hetzner-cloud): This is the official API documentation for the Public Hetzner Cloud. ## Introduction The Hetzner Cloud API operates over HTTPS and uses JSON as its data format. The API is a RESTful API and utilizes HTTP methods and HTTP status codes to specify requests and responses. As an alternative to working directly with our API you may also consider to use: * Our CLI program [hcloud](https://github.com/hetznercloud/cli) * Our [library for Go](https://github.com/hetznercloud/hcloud-go) * Our [library for Python](https://github.com/hetznercloud/hcloud-python) Also you can find a [list of libraries, tools, and integrations on GitHub](https://github.com/hetznercloud/awesome-hcloud). If you are developing integrations based on our API and your product is Open Source you may be eligible for a free one time €50 (excl. VAT) credit on your account. Please contact us via the the support page on your Cloud Console and let us know the following: * The type of integration you would like to develop * Link to the GitHub repo you will use for the Project * Link to some other Open Source work you have already done (if you have done so) ## Getting Started To get started using the API you first need an API token. Sign in into the [Hetzner Cloud Console](https://console.hetzner.cloud/) choose a Project, go to `Security` → `API Tokens`, and generate a new token. Make sure to copy the token because it won’t be shown to you again. A token is bound to a Project, to interact with the API of another Project you have to create a new token inside the Project. Let’s say your new token is `jEheVytlAoFl7F8MqUQ7jAo2hOXASztX`. You’re now ready to do your first request against the API. To get a list of all Servers in your Project, issue the example request on the right side using [curl](https://curl.haxx.se/). Make sure to replace the token in the example command with the token you have just created. Since your Project probably does not contain any Servers yet, the example response will look like the response on the right side. We will almost always provide a resource root like `servers` inside the example response. A response can also contain a `meta` object with information like [Pagination](https://docs.hetzner.cloud/#overview-pagination). **Example Request** ```bash curl -H "Authorization: Bearer jEheVytlAoFl7F8MqUQ7jAo2hOXASztX" \ https://api.hetzner.cloud/v1/servers ``` **Example Response** ```json { "servers": [], "meta": { "pagination": { "page": 1, "per_page": 25, "previous_page": null, "next_page": null, "last_page": 1, "total_entries": 0 } } } ``` ## Authentication All requests to the Hetzner Cloud API must be authenticated via a API token. Include your secret API token in every request you send to the API with the `Authorization` HTTP header. To create a new API token for your Project, switch into the [Hetzner Cloud Console](https://console.hetzner.cloud/) choose a Project, go to `Security` → `API Tokens`, and generate a new token. **Example Authorization header** ```html Authorization: Bearer LRK9DAWQ1ZAEFSrCNEEzLCUwhYX1U3g7wMg4dTlkkDC96fyDuyJ39nVbVjCKSDfj ``` ## Errors Errors are indicated by HTTP status codes. Further, the response of the request which generated the error contains an error code, an error message, and, optionally, error details. The schema of the error details object depends on the error code. The error response contains the following keys: | Keys | Meaning | |-----------|-----------------------------------------------------------------------| | `code` | Short string indicating the type of error (machine-parsable) | | `message` | Textual description on what has gone wrong | | `details` | An object providing for details on the error (schema depends on code) | **Example response** ```json { "error": { "code": "invalid_input", "message": "invalid input in field 'broken_field': is too long", "details": { "fields": [ { "name": "broken_field", "messages": ["is too long"] } ] } } } ``` ### Error Codes | Code | Description | |---------------------

Listed from: APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/aws-iot-sitewise (OpenParable). Cite the canonical URL above.
