Endpoint Features REST API Reference


Use the Endpoint Features REST API to view and update Alexa-connected endpoint properties, such as power state on a smart home light. You use the Endpoint Features API along with the Endpoints REST API to view and change settings on devices owned by your Amazon Business account.

API endpoints

Based on the country of your organization, set the Host parameter in the request header to one of the following API endpoints.

Country Endpoint

CA, US

https://api.amazonalexa.com

DE, ES, FR, IT, UK

https://api.eu.amazonalexa.com

JP

https://api.fe.amazonalexa.com

Authentication

Each API request must have an authorization header whose value is the access token retrieved from Login with Amazon (LWA). For details, see Manage API Access.

Operations

The Endpoint Features API includes the following operations.

Operation HTTP method and URI

Get Bluetooth properties

GET /v2/endpoints/{endpointId}/features/bluetooth

Get brightness

GET /v2/endpoints/{endpointId}/features/brightness

Get color

GET /v2/endpoints/{endpointId}/features/color

Get color temperature

GET /v2/endpoints/{endpointId}/features/colorTemperature

Get connectivity status

GET /v2/endpoints/{endpointId}/features/connectivity

Get power state

GET /v2/endpoints/{endpointId}/features/power

Get speaker properties

GET /v2/endpoints/{endpointId}/features/speaker

Get temperature sensor

GET /v2/endpoints/{endpointId}/features/temperatureSensor

Get thermostat properties

GET /v2/endpoints/{endpointId}/features/thermostat

Get Wi-Fi installation status

GET /v2/endpoints/{endpointId}/features/connectivity/addOrUpdateWifiConfigurations/submittedOperations/{operationId}

Save Wi-Fi configuration

POST /credentiallocker/v2/saveWifiConfigurations

Set Wi-Fi configurations

POST /v2/endpoints/endpointId/features/connectivity/addOrUpdateWifiConfigurations

Unpair Bluetooth devices

POST /v2/endpoints/{endpointId}/features/bluetooth/unpair

Update brightness

POST /v2/endpoints/{endpointId}/features/brightness/{operation}

Update color

POST /v2/endpoints/{endpointId}/features/color/setColor

Update color temperature

POST /v2/endpoints/{endpointId}/features/colorTemperature/{operation}

Update power state

POST /v2/endpoints/{endpointId}/features/power/{operation}

Update speaker properties

POST /v2/endpoints/{endpointId}/features/speaker/{operation}

Get Bluetooth properties

Get the Bluetooth properties of the specified endpoint.

This operation is available in the following countries.

Healthcare Hospitality Senior Living Core

None

US, UK, FR, CA, IT, DE, JP

US, UK, FR, CA, IT, DE, JP

None

Request

To get Bluetooth properties, you make a GET request to the features/bluetooth resource.

Request path and header example

Copied to clipboard.

GET /v2/endpoints/{endpointId}/features/bluetooth
Host: api.amazonalexa.com
Content-Type: application/json
Authorization: Bearer {access token}
Accept: application/json

Request path and header parameters

Parameter Located in Description Type Required

endpointId

Path

Unique ID for this endpoint that Amazon assigns to each customer device.
Formatted as an Amazon Common Identifier (ACI), amzn1.alexa.endpoint.{id}.

String

Yes

access token

Header

Access token for the customer.
Set to an LWA token.

String

Yes

Request body example

The request has no body.

Request body parameters

The request has no body.

Response

A successful response returns HTTP 200 OK, along with the Bluetooth properties. On error, the response returns the appropriate HTTP status code and includes a response body with an error code and human readable message.

Response body example

The following example shows a response.

{
  "operations": [
    {
       "name": "unpair",
       "path": "/v2/endpoints/{endpointId}/features/bluetooth/unpair"
    }
   ]
}

Response body parameters

Parameter Description Type

properties

List of Bluetooth properties for the endpoint.
If you don't have permission to view the data, the list is empty.

Array of objects

properties[].name

Name of the property.
Valid value: none.

String

properties[].type

Type of the property.
If set to ERROR, you can retry the request.
Valid values: RETRIEVABLE, NOT_RETRIEVABLE, ERROR.

String

properties[].error

(Optional) Describes the error encountered.
Included when type = ERROR.

Error object

operations

List of update operations available for this feature and endpoint.
If you don't have permission to view the data, the list is empty.

Array of Operation objects

configuration

Configuration data accessible to the caller.
Valid values: none.

List of configuration objects

HTTP status codes

Status Description

200 OK

Response body contains the current values of the requested property.

400 Bad Request

Indicates that one or more properties in the request body aren't valid.
The following example shows the response body with the error code and message.

{
     "message": "The property is outside the allowed range.",
     "code": "INVALID_STRING_LENGTH"
}

401 Unauthorized

Request didn't include the authorization token, or the included token expired or isn't valid. Or, you don't have access to the resource.

403 Forbidden

Indicates that the authorization token is valid, but the requested operation isn't allowed.

404 Not Found

Requested resource not found.

429 Too Many Requests

Permitted rate limit, specified as the number of requests per unit of time, exceeded. You can retry the request by using exponential back-off.

500 Server Error

Error occurred on the server. You can retry the request by using exponential back-off.

503 Service Unavailable

Server is down for maintenance, overloaded, or otherwise unavailable to handle the incoming request.

Get brightness

Get the brightness level of the specified endpoint.

This operation is available in the following countries.

Healthcare Hospitality Senior Living Core

US

US, UK, FR, CA, IT, DE, ES, JP

US, UK, FR, CA, IT, DE, ES, JP

US

Request

To get the brightness level, you make a GET request to the features/brightness resource.

Request path and header example

Copied to clipboard.

GET /v2/endpoints/{endpointId}/features/brightness
Host: api.amazonalexa.com
Content-Type: application/json
Authorization: Bearer {access token}
Accept: application/json

Request path and header parameters

Parameter Located in Description Type Required

endpointId

Path

Unique ID for this endpoint that Amazon assigns to each customer device.
Formatted as an Amazon Common Identifier (ACI), amzn1.alexa.endpoint.{id}.

String

Yes

access token

Header

Access token for the customer.
Set to an LWA token.

String

Yes

Request body example

The request has no body.

Request body properties

The request has no body.

Response

A successful response returns HTTP 200 OK, along with the current brightness level. On error, the response returns the appropriate HTTP status code and includes a response body with an error code and human readable message.

Response body example

{
    "properties": [{
        "name": "brightness",
        "type": "RETRIEVABLE",
        "value": {
            "value": 50
        },
        "timeOfSample": "2023-07-03T10:20:50.52Z"
    }],
   "operations": [
       {
          "name": "setBrightness",
          "path": "/v2/endpoints/{id}/features/brightness/setBrightness"
       },
       {
          "name": "adjustBrightness",
          "path": "/v2/endpoints/{id}/features/brightness/adjustBrightness"
       }
   ]
}

Response body properties

Property Description Type

properties

List of brightness properties for the endpoint.
If you don't have permission to view the data, the list is empty.

Array of objects

properties[].name

Name of the property.
Valid value: brightness.

String

properties[].type

Type of the property.
If set to ERROR, you can retry the request.
Valid values: RETRIEVABLE, NOT_RETRIEVABLE, ERROR.

String

properties[].value

Brightness properties.

Object

properties[].value.value

Current brightness level of the endpoint.
Valid values: 0–100.

Integer

properties[].timeOfSample

Time the endpoint detected the state change.
Defined in ISO 8601 format, YYYY-MM-DDThh:mm:ssZ.

String

properties[].error

(Optional) Describes the error encountered.
Included when type = ERROR.

Error object

operations

List of update operations available for this feature and endpoint.
If you don't have permission to view the data, the list is empty.

Array of Operation objects

HTTP status codes

Status Description

200 OK

Response body contains the current value of the requested property.

400 Bad Request

Indicates that one or more properties in the request body aren't valid.
The following example shows the response body with the error code and message.

{
     "message": "The property is outside the allowed range.",
     "code": "INVALID_STRING_LENGTH"
}

401 Unauthorized

Request didn't include the authorization token, or the included token expired or isn't valid. Or, you don't have access to the resource.

403 Forbidden

Indicates that the authorization token is valid, but the requested operation isn't allowed.

404 Not Found

Requested resource not found.

429 Too Many Requests

Permitted rate limit, specified as the number of requests per unit of time, exceeded. You can retry the request by using exponential back-off.

500 Server Error

Error occurred on the server. You can retry the request by using exponential back-off.

503 Service Unavailable

Server is down for maintenance, overloaded, or otherwise unavailable to handle the incoming request.

Get color

Get the hue, saturation, and brightness of the specified endpoint.

This operation is available in the following countries.

Healthcare Hospitality Senior Living Core

US

US, UK, FR, CA, IT, DE, ES, JP

US, UK, FR, CA, IT, DE, ES, JP

US

Request

To get the color, you make a GET request to the features/color resource.

Request path and header example

Copied to clipboard.

GET /v2/endpoints/{endpointId}/features/color
Host: api.amazonalexa.com
Content-Type: application/json
Authorization: Bearer {access token}
Accept: application/json

Request path and header parameters

Parameter Located in Description Type Required

endpointId

Path

Unique ID for this endpoint that Amazon assigns to each customer device.
Formatted as an ACI, amzn1.alexa.endpoint.{id}.

String

Yes

access token

Header

Access token for the customer.
Set to an LWA token.

String

Yes

Request body example

The request has no body.

Request body properties

The request has no body.

Response

A successful response returns HTTP 200 OK, along with the current hue, saturation, and brightness of the endpoint. On error, the response returns the appropriate HTTP status code and includes a response body with an error code and human readable message.

Response body example

{
    "properties": [{
        "name": "color",
        "type": "RETRIEVABLE",
        "value": {
            "hue": 20,
            "saturation": 0.5,
            "brightness": 0.7
        },
        "timeOfSample": "2023-07-03T10:20:50.52Z"
    }],
   "operations": [
      {
         "name": "setColor",
         "path": "/v2/endpoints/{endpointId}/features/color/setColor"
      }
   ]
}

Response body properties

Property Description Type

properties

List of color properties for the endpoint.
If you don't have permission to view the data, the list is empty.

Array of objects

properties[].name

Name of the property.
Valid value: color.

String

properties[].type

Type of the property.
If set to ERROR, you can retry the request.
Valid values: RETRIEVABLE, NOT_RETRIEVABLE, ERROR.

String

properties[].value

Current color of the endpoint.

Color object

properties[].value.hue

Current hue value of the color.
Valid values: 0–360.

Integer

properties[].value.saturation

Current saturation level of the color.
Valid values: 0.0–1.0, inclusive.

Double

properties[].value.brightness

Current brightness.
Valid values: 0.0–1.0, inclusive.

Double

properties[].timeOfSample

Time the endpoint detected the state change.
Defined in ISO 8601 format, YYYY-MM-DDThh:mm:ssZ.

String

properties[].error

(Optional) Describes the error encountered.
Included when type = ERROR.

Error object

operations

List of update operations available for this feature and endpoint.
If you don't have permission to view the data, the list is empty.

Array of Operation objects

HTTP status codes

Status Description

200 OK

Response body contains the current value of the requested property.

400 Bad Request

Indicates that one or more properties in the request body aren't valid.
The following example shows the response body with the error code and message.

{
     "message": "The property is outside the allowed range.",
     "code": "INVALID_STRING_LENGTH"
}

401 Unauthorized

Request didn't include the authorization token, or the included token expired or isn't valid. Or, you don't have access to the resource.

403 Forbidden

Indicates that the authorization token is valid, but the requested operation isn't allowed.

404 Not Found

Requested resource not found.

429 Too Many Requests

Permitted rate limit, specified as the number of requests per unit of time, exceeded. You can retry the request by using exponential back-off.

500 Server Error

Error occurred on the server. You can retry the request by using exponential back-off.

503 Service Unavailable

Server is down for maintenance, overloaded, or otherwise unavailable to handle the incoming request.

Get color temperature

Get the color temperature of endpoints that support tunable white light, such as light bulbs.

This operation is available in the following countries.

Healthcare Hospitality Senior Living Core

US

US, UK, FR, CA, IT, DE, ES, JP

US, UK, FR, CA, IT, DE, ES, JP

US

Request

To get the color temperature, you make a GET request to the features/colorTemperature resource.

Request path and header example

Copied to clipboard.

GET /v2/endpoints/{endpointId}/features/colorTemperature
Host: api.amazonalexa.com
Content-Type: application/json
Authorization: Bearer {access token}
Accept: application/json

Request path and header parameters

Parameter Located in Description Type Required

endpointId

Path

Unique ID for this endpoint that Amazon assigns to each customer device.
Formatted as an ACI, amzn1.alexa.endpoint.{id}.

String

Yes

access token

Header

Access token for the customer.
Set to an LWA token.

String

Yes

Request body example

The request has no body.

Request body properties

The request has no body.

Response

A successful response returns HTTP 200 OK, along with the current color temperature. On error, the response returns the appropriate HTTP status code and includes a response body with an error code and human readable message.

Response body example

{
    "properties": [{
        "name": "colorTemperatureInKelvin",
        "type": "RETRIEVABLE",
        "value": {
            "value": 2700
        },
        "timeOfSample": "2023-07-03T10:20:50.52Z"
    }],
   "operations": [
      {
          "name": "setColorTemperature",
          "path": "/v2/endpoints/{id}/features/colorTemperature/setColorTemperature"
      },
      {
         "name": "increaseColorTemperature",
         "path": "/v2/endpoints/{id}/features/colorTemperature/increaseColorTemperature"
      },
      {
         "name": "decreaseColorTemperature",
         "path": "/v2/endpoints/{id}/features/colorTemperature/decreaseColorTemperature"
      }
   ]
}

Response body properties

Property Description Type

properties

List of color temperature properties for the endpoint.
If you don't have permission to view the data, the list is empty.

Array of objects

properties[].name

Name of the property.
Valid value: colorTemperatureInKelvin.

String

properties[].type

Type of the property.
If set to ERROR, you can retry the request.
Valid values: RETRIEVABLE, NOT_RETRIEVABLE, ERROR.

String

properties[].value

Color properties.

Object

properties[].value

Current color temperature in degrees Kelvin of an endpoint. For details about shades of white, see Color temperature values.
Valid values: 1000–10000.

Integer

properties[].timeOfSample

Time the endpoint detected the state change.
Defined in ISO 8601 format, YYYY-MM-DDThh:mm:ssZ.

String

properties[].error

(Optional) Describes the error encountered.
Included when type = ERROR.

Error object

operations

List of update operations available for this feature and endpoint.
If you don't have permission to view the data, the list is empty.

Array of Operation objects

HTTP status codes

Status Description

200 OK

Response body contains the current value of the requested property.

400 Bad Request

Indicates that one or more properties in the request body aren't valid.
The following example shows the response body with the error code and message.

{
     "message": "The property is outside the allowed range.",
     "code": "INVALID_STRING_LENGTH"
}

401 Unauthorized

Request didn't include the authorization token, or the included token expired or isn't valid. Or, you don't have access to the resource.

403 Forbidden

Indicates that the authorization token is valid, but the requested operation isn't allowed.

404 Not Found

Requested resource not found.

429 Too Many Requests

Permitted rate limit, specified as the number of requests per unit of time, exceeded. You can retry the request by using exponential back-off.

500 Server Error

Error occurred on the server. You can retry the request by using exponential back-off.

503 Service Unavailable

Server is down for maintenance, overloaded, or otherwise unavailable to handle the incoming request.

Get connectivity status

Get the connection status of the specified endpoint.

This operation is available in the following countries.

Healthcare Hospitality Senior Living Core

US

US, UK, FR, CA, IT, DE, ES, JP

US, UK, FR, CA, IT, DE, ES, JP

US

Request

To get the connection status, you make a GET request to the features/connectivity resource.

Request path and header example

Copied to clipboard.

GET /v2/endpoints/{endpointId}/features/connectivity
Host: api.amazonalexa.com
Content-Type: application/json
Authorization: Bearer {access token}
Accept: application/json

Request path and header parameters

Parameter Located in Description Type Required

endpointId

Path

Unique ID for this endpoint that Amazon assigns to each customer device.
Formatted as an ACI, amzn1.alexa.endpoint.{id}.

String

Yes

access token

Header

Access token for the customer.
Set to an LWA token.

String

Yes

Request body example

The request has no body.

Request body properties

The request has no body.

Response

A successful response returns HTTP 200 OK, along with the connection status of the endpoint. On error, the response returns the appropriate HTTP status code and includes a response body with an error code and human readable message.

Response body example

{
    "properties": [{
        "name": "reachability",
        "type": "RETRIEVABLE",
        "value": {
            "value": "OK"
        },
        "timeOfSample": "2023-07-03T10:20:50.52Z"
    }]
}

Response body properties

Property Description Type

properties

List of brightness properties for the endpoint.
If you don't have permission to view the data, the list is empty.

Array of objects

properties[].name

Name of the property.
Valid value: reachability.

String

properties[].type

Type of the property.
If set to ERROR, you can retry the request.
Valid values: RETRIEVABLE, NOT_RETRIEVABLE, ERROR.

String

properties[].value

Connectivity properties.

Object

properties[].value.value

Current connectivity status of the endpoint. Valid values:

  • OK – The device is connected to the network
  • UNREACHABLE – The device isn't connected to the network. For example, the device is unplugged, or the network isn't available.
  • NOT_FOUND – The device has been offline for more than 30 days, or there is no device state reported. This status typically indicates an unplugged device.

String

properties[].timeOfSample

Time the endpoint detected the state change.
Defined in ISO 8601 format, YYYY-MM-DDThh:mm:ssZ.

String

properties[].error

(Optional) Describes the error encountered.
Included when type = ERROR.

Error object

HTTP status codes

Status Description

200 OK

Response body contains the current value of the requested property.

400 Bad Request

Indicates that one or more properties in the request body aren't valid.
The following example shows the response body with the error code and message.

{
     "message": "The property is outside the allowed range.",
     "code": "INVALID_STRING_LENGTH"
}

401 Unauthorized

Request didn't include the authorization token, or the included token expired or isn't valid. Or, you don't have access to the resource.

403 Forbidden

Indicates that the authorization token is valid, but the requested operation isn't allowed.

404 Not Found

Requested resource not found.

429 Too Many Requests

Permitted rate limit, specified as the number of requests per unit of time, exceeded. You can retry the request by using exponential back-off.

500 Server Error

Error occurred on the server. You can retry the request by using exponential back-off.

503 Service Unavailable

Server is down for maintenance, overloaded, or otherwise unavailable to handle the incoming request.

Get power state

Determine if the power of the specified endpoint is on or off.

This operation is available in the following countries.

Healthcare Hospitality Senior Living Core

US

US, UK, FR, CA, IT, DE, ES, JP

US, UK, FR, CA, IT, DE, ES, JP

US

Request

To get the power state, you make a GET request to the features/power resource.

Request path and header example

Copied to clipboard.

GET /v2/endpoints/{endpointId}/features/power
Host: api.amazonalexa.com
Content-Type: application/json
Authorization: Bearer {access token}
Accept: application/json

Request path and header parameters

Parameter Located in Description Type Required

endpointId

Path

Unique ID for this endpoint that Amazon assigns to each customer device.
Formatted as an ACI, amzn1.alexa.endpoint.{id}.

String

Yes

access token

Header

Access token for the customer.
Set to an LWA token.

String

Yes

Request body example

The request has no body.

Request body properties

The request has no body.

Response

A successful response returns HTTP 200 OK, along with the power state of the endpoint. On error, the response returns the appropriate HTTP status code and includes a response body with an error code and human readable message.

Response body example

{
    "properties": [{
        "name": "powerState",
        "type": "RETRIEVABLE",
        "value": {
            "value": "ON"
        },
        "timeOfSample": "2023-07-03T10:20:50.52Z"
    }],
   "operations": [
      {
         "name": "turnOn",
         "path": "/v2/endpoints/{endpointID}/features/power/turnOn"
      },
      {
         "name": "turnOff",
         "path": "/v2/endpoints/{endpointID}/features/power/turnOff"
      }
   ]
}

Response body properties

Property Description Type

properties

List of power properties for the endpoint.
If you don't have permission to view the data, the list is empty.

Array of objects

properties[].name

Name of the property.
Valid value: powerState.

String

properties[].type

Type of the property.
If set to ERROR, you can retry the request.
Valid values: RETRIEVABLE, NOT_RETRIEVABLE, ERROR.

String

properties[].value

Power properties.

Object

properties[].value.value

Current power state of the endpoint. Valid values: ON, OFF.

String

properties[].timeOfSample

Time the endpoint detected the state change.
Defined in ISO 8601 format, YYYY-MM-DDThh:mm:ssZ.

String

properties[].error

(Optional) Describes the error encountered.
Included when type = ERROR.

Error object

operations

List of update operations available for this feature and endpoint.
If you don't have permission to view the data, the list is empty.

Array of Operation objects

HTTP status codes

Status Description

200 OK

Response body contains the current value of the requested property.

400 Bad Request

Indicates that one or more properties in the request body aren't valid.
The following example shows the response body with the error code and message.

{
     "message": "The property is outside the allowed range.",
     "code": "INVALID_STRING_LENGTH"
}

401 Unauthorized

Request didn't include the authorization token, or the included token expired or isn't valid. Or, you don't have access to the resource.

403 Forbidden

Indicates that the authorization token is valid, but the requested operation isn't allowed.

404 Not Found

Requested resource not found.

429 Too Many Requests

Permitted rate limit, specified as the number of requests per unit of time, exceeded. You can retry the request by using exponential back-off.

500 Server Error

Error occurred on the server. You can retry the request by using exponential back-off.

503 Service Unavailable

Server is down for maintenance, overloaded, or otherwise unavailable to handle the incoming request.

Get speaker properties

Get the speaker properties of the specified endpoint.

This operation is available in the following countries.

Healthcare Hospitality Senior Living Core

US

US, UK, FR, CA, IT, DE, ES, JP

US, UK, FR, CA, IT, DE, ES, JP

US

Request

To get the speaker properties, you make a GET request to the features/speaker resource.

Request path and header example

Copied to clipboard.

GET /v2/endpoints/{endpointId}/features/speaker
Host: api.amazonalexa.com
Content-Type: application/json
Authorization: Bearer {access token}
Accept: application/json

Request path and header parameters

Parameter Located in Description Type Required

endpointId

Path

Unique ID for this endpoint that Amazon assigns to each customer device.
Formatted as an ACI, amzn1.alexa.endpoint.{id}.

String

Yes

access token

Header

Access token for the customer.
Set to an LWA token.

String

Yes

Request body example

The request has no body.

Request body properties

The request has no body.

Response

A successful response returns HTTP 200 OK, along with the speaker properties of the endpoint. On error, the response returns the appropriate HTTP status code and includes a response body with an error code and human readable message.

Response body example

{
    "properties": [{
        "name": "volume",
        "type": "RETRIEVABLE",
        "value": {
            "value": "42"
        },
        "timeOfSample": "2023-07-03T10:20:50.52Z"
    }],
    "operations": [
        {
            "name": "setVolume",
            "path": "/v2/endpoints/<id>/features/speaker/setVolume"
        },
        {
            "name": "adjustVolume",
            "path": "/v2/endpoints/<id>/features/speaker/adjustVolume"
        }
    ]
}

Response body properties

Property Description Type

properties

List of speaker properties for the endpoint.
If you don't have permission to view the data, the list is empty.

Array of objects

properties[].name

Name of the property.
Valid value: volume.

String

properties[].type

Type of the property.
If set to ERROR, you can retry the request.
Valid values: RETRIEVABLE, NOT_RETRIEVABLE, ERROR.

String

properties[].value

Speaker properties.

Object

properties[].value.value

Current volume. Valid values: 0–100.

Integer

properties[].timeOfSample

Time the endpoint detected the state change.
Defined in ISO 8601 format, YYYY-MM-DDThh:mm:ssZ.

String

properties[].error

(Optional) Describes the error encountered.
Included when type = ERROR.

Error object

operations

List of update operations available for this feature and endpoint.
If you don't have permission to view the data, the list is empty.

Array of Operation objects

HTTP status codes

Status Description

200 OK

Response body contains the current value of the requested property.

400 Bad Request

Indicates that one or more properties in the request body aren't valid.
The following example shows the response body with the error code and message.

{
     "message": "The property is outside the allowed range.",
     "code": "INVALID_STRING_LENGTH"
}

401 Unauthorized

Request didn't include the authorization token, or the included token expired or isn't valid. Or, you don't have access to the resource.

403 Forbidden

Indicates that the authorization token is valid, but the requested operation isn't allowed.

404 Not Found

Requested resource not found.

429 Too Many Requests

Permitted rate limit, specified as the number of requests per unit of time, exceeded. You can retry the request by using exponential back-off.

500 Server Error

Error occurred on the server. You can retry the request by using exponential back-off.

503 Service Unavailable

Server is down for maintenance, overloaded, or otherwise unavailable to handle the incoming request.

Get temperature sensor

Get the current temperature detected by the specified endpoint.

This operation is available in the following countries.

Healthcare Hospitality Senior Living Core

US

US, UK, FR, CA, IT, DE, ES, JP

US, UK, FR, CA, IT, DE, ES, JP

US

Request

To get the temperature, you make a GET request to the features/temperatureSensor resource.

Request path and header example

Copied to clipboard.

GET /v2/endpoints/{endpointId}/features/temperatureSensor
Host: api.amazonalexa.com
Content-Type: application/json
Authorization: Bearer {access token}
Accept: application/json

Request path and header parameters

Parameter Located in Description Type Required

endpointId

Path

Unique ID for this endpoint that Amazon assigns to each customer device.
Formatted as an ACI, amzn1.alexa.endpoint.{id}.

String

Yes

access token

Header

Access token for the customer.
Set to an LWA token.

String

Yes

Request body example

The request has no body.

Request body properties

The request has no body.

Response

A successful response returns HTTP 200 OK, along with the current temperature. On error, the response returns the appropriate HTTP status code and includes a response body with an error code and human readable message.

Response body example

{
    "properties": [{
            "name": "thermostatMode",
            "type": "RETRIEVABLE",
            "value": {
                "value": "HEAT"
            },
            "timeOfSample": "2021-03-04T17:46:42.48Z"
        },
        {
            "name": "targetSetpoint",
            "type": "RETRIEVABLE",
            "value": {
                "value": 68.0,
                "scale": "FAHRENHEIT"
            },
            "timeOfSample": "2021-03-04T17:46:42.48Z"
        }
    ],
    "configuration": {
        "supportedModes": [
            "HEAT",
            "COOL",
            "AUTO",
            "ECO"
        ]
    }
}

Response body properties

Property Description Type

properties

List of thermostat properties for the endpoint.
If you don't have permission to view the data, the list is empty.

Array of objects

properties[].name

Name of the property.
Valid values: temperature.

String

properties[].type

Type of the property.
If set to ERROR, you can retry the request.
Valid values: RETRIEVABLE, NOT_RETRIEVABLE, ERROR.

String

properties[].value

Temperature property.

Temperature object

properties[].value.value

Current temperature detected by the endpoint.

Double

properties[].value.scale

Temperature scale.
Valid values: CELSIUS, FAHRENHEIT, KELVIN.

String

properties[].timeOfSample

Time the endpoint detected the state change.
Defined in ISO 8601 format, YYYY-MM-DDThh:mm:ssZ.

String

properties[].error

(Optional) Describes the error encountered.
Included when type = ERROR.

Error object

HTTP status codes

Status Description

200 OK

Response body contains the current value of the requested properties.

400 Bad Request

Indicates that one or more properties in the request body aren't valid.
The following example shows the response body with the error code and message.

{
     "message": "The property is outside the allowed range.",
     "code": "INVALID_STRING_LENGTH"
}

401 Unauthorized

Request didn't include the authorization token, or the included token expired or isn't valid. Or, you don't have access to the resource.

403 Forbidden

Indicates that the authorization token is valid, but the requested operation isn't allowed.

404 Not Found

Requested resource not found.

429 Too Many Requests

Permitted rate limit, specified as the number of requests per unit of time, exceeded. You can retry the request by using exponential back-off.

500 Server Error

Error occurred on the server. You can retry the request by using exponential back-off.

503 Service Unavailable

Server is down for maintenance, overloaded, or otherwise unavailable to handle the incoming request.

Get thermostat properties

Get the thermostat mode and setpoints for the specified endpoint. A single-setpoint thermostat has a single temperature setting. A dual-setpoint thermostat has two temperature settings, a lower and upper setpoint.

This operation is available in the following countries.

Healthcare Hospitality Senior Living Core

US

US, UK, FR, CA, IT, DE, ES, JP

US, UK, FR, CA, IT, DE, ES, JP

US

Request

To get the thermostat properties, you make a GET request to the features/thermostat resource.

Request path and header example

Copied to clipboard.

GET /v2/endpoints/{endpointId}/features/thermostat
Host: api.amazonalexa.com
Content-Type: application/json
Authorization: Bearer {access token}
Accept: application/json

Request path and header parameters

Parameter Located in Description Type Required

endpointId

Path

Unique ID for this endpoint that Amazon assigns to each customer device.
Formatted as an ACI, amzn1.alexa.endpoint.{id}.

String

Yes

access token

Header

Access token for the customer.
Set to an LWA token.

String

Yes

Request body example

The request has no body.

Request body properties

The request has no body.

Response

A successful response returns HTTP 200 OK, along with the thermostat mode and setpoints of the thermostat endpoint. On error, the response returns the appropriate HTTP status code and includes a response body with an error code and human readable message.

Response body example

The follow example shows the thermostat properties of a single-setpoint thermostat.

The follow example shows the thermostat properties of a dual-setpoint thermostat.

Response body properties

Property Description Type

properties

List of thermostat properties for the endpoint.
If you don't have permission to view the data, the list is empty.

Array of objects

properties[].name

Name of the property.
Valid values: thermostatMode, targetSetpoint, lowerSetpoint, upperSetpoint.

String

properties[].type

Type of the property.
If set to ERROR, you can retry the request.
Valid values: RETRIEVABLE, NOT_RETRIEVABLE, ERROR.

String

properties[].value

Thermostat properties of the specified endpoint.

Object

properties[].value.value

Current value of the property specified by name. Valid values for thermostatMode: HEAT, COOL, AUTO, ECO, OFF. Valid values for targetSetpoint, lowerSetpoint, upperSetpoint: Current temperature.

String for thermostatMode, Double for setpoints

properties[].value.scale

Temperature scale. Included for targetSetpoint, lowerSetpoint, upperSetpoint only.
Valid values: CELSIUS, FAHRENHEIT, KELVIN.

String

properties[].timeOfSample

Time the endpoint detected the state change.
Defined in ISO 8601 format, YYYY-MM-DDThh:mm:ssZ.

String

properties[].error

(Optional) Describes the error encountered.
Included when type = ERROR.

Error object

configuration

Supported thermostat modes.

Object

supportedModes

List of modes that the thermostat endpoint supports. Valid values: HEAT, COOL, AUTO, ECO, OFF.

Array of string

operations

List of update operations available for this feature and endpoint.
If you don't have permission to view the data, the list is empty.

Array of Operation objects

HTTP status codes

Status Description

200 OK

Response body contains the current value of the requested properties.

400 Bad Request

Indicates that one or more properties in the request body aren't valid.
The following example shows the response body with the error code and message.

{
     "message": "The property is outside the allowed range.",
     "code": "INVALID_STRING_LENGTH"
}

401 Unauthorized

Request didn't include the authorization token, or the included token expired or isn't valid. Or, you don't have access to the resource.

403 Forbidden

Indicates that the authorization token is valid, but the requested operation isn't allowed.

404 Not Found

Requested resource not found.

429 Too Many Requests

Permitted rate limit, specified as the number of requests per unit of time, exceeded. You can retry the request by using exponential back-off.

500 Server Error

Error occurred on the server. You can retry the request by using exponential back-off.

503 Service Unavailable

Server is down for maintenance, overloaded, or otherwise unavailable to handle the incoming request.

Get Wi-Fi installation status

Get the status of a previous Set Wi-Fi configuration operation on the specified endpoint.

This operation is available in the following countries.

Healthcare Hospitality Senior Living Core

US

US, CA, UK, DE, FR, IT, ES, JP

US, CA, UK, DE, FR, IT, ES, JP

US

Request

To get the installation status, you make a GET request to the features/connectivity/addOrUpdateWifiConfigurations resource.

Request path and header example

Copied to clipboard.

GET /v2/endpoints/{endpointId}/features/connectivity/addOrUpdateWifiConfigurations/submittedOperations/{operationId}
Host: api.amazonalexa.com
Content-Type: application/json
Authorization: Bearer {access token}
Accept: application/json

Request path and header parameters

Parameter Located in Description Type Required

endpointId

Path

Unique ID for this endpoint that Amazon assigns to each customer device.
Formatted as an ACI, amzn1.alexa.endpoint.{id}.

String

Yes

operationId

Path

Unique submittedOperationId returned by Set Wi-Fi configuration.

String

Yes

access token

Header

Access token for the customer.
Set to an LWA token.

String

Yes

Request body example

The request has no body.

Request body properties

The request has no body.

Response

A successful response returns HTTP 200 OK, along with the status of the Wi-Fi installation. On error, the response returns the appropriate HTTP status code and includes a response body with an error code and human readable message.

Response body example

{
    "status": {
        "value": "IN_PROGRESS"
    }
}

Response body properties

Property Description Type

status

Identifies the status of the requested Wi-Fi configuration installation for the specified endpoint.

Object

status.value

Operation status value.
Valid values: SUCCESS,FAILURE, TIMEOUT, IN_PROGRESS.

String

HTTP status codes

Status Description

200 OK

Response body contains the current status of the Wi-Fi installation.

400 Bad Request

Indicates that one or more properties in the request body aren't valid.
The following example shows the response body with the error code and message.

{
     "message": "The property is outside the allowed range.",
     "code": "INVALID_STRING_LENGTH"
}

401 Unauthorized

Request didn't include the authorization token, or the included token expired or isn't valid. Or, you don't have access to the resource.

403 Forbidden

Indicates that the authorization token is valid, but the requested operation isn't allowed.

404 Not Found

Requested resource not found.

429 Too Many Requests

Permitted rate limit, specified as the number of requests per unit of time, exceeded. You can retry the request by using exponential back-off.

500 Server Error

Error occurred on the server. You can retry the request by using exponential back-off.

503 Service Unavailable

Server is down for maintenance, overloaded, or otherwise unavailable to handle the incoming request.

Save Wi-Fi configurations

Save Wi-Fi configurations to assign to endpoints with Set Wi-Fi configuration. To use this operation, you must configure your LWA token with the following scopes: credential_locker::wifi_management, alexa::enterprise:management.

This operation is available in the following countries.

Healthcare Hospitality Senior Living Core

US

US, CA, DE, ES, FR, IT, UK, JP

US, CA, DE, ES, FR, IT, UK, JP

US

Request

To save Wi-Fi configurations, you make a POST request to the credentiallocker/v2/saveWifiConfigurations resource. This operation uses a separate API endpoint than the other operations in this guide.

API endpoints

Based on the country of your organization, set the Host parameter in the request header to one of the following API endpoints.

Country Endpoint

CA, US

https://credential-locker-service.amazon.com

DE, ES, FR, IT, UK

https://credential-locker-service.amazon.eu

JP

https://credential-locker-service.amazon.jp

Request path and header example

Copied to clipboard.

POST /credentiallocker/v2/saveWifiConfigurations
Host: credential-locker-service.amazon.com
x-amz-access-token: {access token}
Content-Type: application/json
Authorization: Bearer {access token}

Request path and header parameters

Parameter Located in Description Type Required

access token

Header

Access token for the customer.
Set to an LWA token configured with the following scopes: credential_locker::wifi_management, alexa::enterprise:management.

String

Yes

Request body example

The follow example shows a Wi-Fi configuration that uses Protected Access Pre-Shared Key (WPAPSK) for network access.

The follow example shows a Wi-Fi configuration that uses Wi-Fi Protected Access 2 (WPA2) Extensible Authentication Protocol (EAP) for network access.

Request body properties

Field Description Type Required

wifiConfigurations

List of Wi-Fi configurations.

Array of objects

Yes

wifiConfigurations[].credentialConfiguration

Credential information for the Wi-Fi network.

Object

Yes

wifiConfigurations[].credentialConfiguration.privateSharedKey

Wi-Fi password for network access, enclosed in double quotation marks.

String

Yes

wifiConfigurations[].credentialConfiguration.eapAuthenticationMethod

Identifies the configuration uses Extensible Authentication Protocol (EAP) for network access.
Valid values: EAP-TLS.

String

Yes

wifiConfigurations[].credentialConfiguration.certificateAuthority

Identifies the certificate authority.

CertificateAuthority object

Yes

wifiConfigurations[].keyManagement

Wi-Fi configuration security type.
Valid values:

  • OPEN for open networks.
  • WPAPSK for password-based Wi-Fi Service Set Identifiers (SSIDs).
  • WPA2_EAP for WPA2 Enterprise Wi-Fi networks.

String

Yes

wifiConfigurations[].priority

Wi-Fi configuration priority.

Integer

No

Response

A successful response returns HTTP 200 OK. On error, the response returns the appropriate HTTP status code and includes a response body with an error code and human readable message.

Response body example

The response has no body.

Response body properties

The response has no body.

HTTP status codes

Status Description

200 OK

Wi-Fi configuration saved successfully.

400 Bad Request

Indicates that one or more properties in the request body aren't valid.
The following example shows the response body with the error code and message.

{
     "message": "The property is outside the allowed range.",
     "code": "INVALID_STRING_LENGTH"
}

401 Unauthorized

Request didn't include the authorization token, or the included token expired or isn't valid. Or, you don't have access to the resource.

403 Forbidden

Indicates that the authorization token is valid, but the requested operation isn't allowed.

404 Not Found

Requested resource not found.

429 Too Many Requests

Permitted rate limit, specified as the number of requests per unit of time, exceeded. You can retry the request by using exponential back-off.

500 Server Error

Error occurred on the server. You can retry the request by using exponential back-off.

503 Service Unavailable

Server is down for maintenance, overloaded, or otherwise unavailable to handle the incoming request.

Set Wi-Fi configuration

Associate a saved Wi-Fi configuration with the specified endpoint. You can associate up to 32 Wi-Fi configurations with each endpoint.

This operation is available in the following countries.

Healthcare Hospitality Senior Living Core

None

US, CA, UK, DE, FR, IT, ES, JP

US, CA, UK, DE, FR, IT, ES, JP

None

Request

To set a Wi-Fi configuration, you make a POST request to the features/connectivity/addOrUpdateWifiConfigurations resource.

Request path and header example

Copied to clipboard.

POST /v2/endpoints/endpointId/features/connectivity/addOrUpdateWifiConfigurations
Host: api.amazonalexa.com
Content-Type: application/json
Authorization: Bearer {access token}

Request path and header parameters

Parameter Located in Description Type Required

endpointId

Path

Unique ID for this endpoint that Amazon assigns to each customer device.
Formatted as an Amazon Common Identifier (ACI), amzn1.alexa.endpoint.{id}.

String

Yes

access token

Header

Access token for the customer.
Set to an LWA token.

String

Yes

Request body example

Copied to clipboard.

{
    "payload": {
        "wifiConfigurations": [{
            "ssid": "\"wifi-ssid\"",
            "keyManagement": "WPAPSK",
            "priority": 1
        }]
    }
}

Request body properties

Field Description Type Required

wifiConfigurations

List of Wi-Fi configurations to add or update on the specified endpoint.

Array of objects

Yes

wifiConfigurations.ssid

Wi-Fi configuration network name enclosed in double quotation marks.
This value must be one of the Wi-Fi configurations that you saved with Save Wi-Fi configuration.

String

Yes

wifiConfigurations.keyManagement

Wi-Fi configuration security type. Must be the same value used in Save Wi-Fi configuration.
Valid values:

  • OPEN for open networks.
  • WPAPSK for password-based Wi-Fi SSIDs.
  • WPA2_EAP for WPA2 Enterprise Wi-Fi.

String

Yes

wifiConfigurations.priority

Wi-Fi configuration priority.

Integer

No

Response

A successful response returns HTTP 200 OK, along with the identifier to use to get the status of the installation. On error, the response returns the appropriate HTTP status code and includes a response body with an error code and human readable message.

Response body example

{
    "submittedOperationId": "operationId"
}

Response body properties

Property Description Type

submittedOperationId

Operation status ID that you can use to get the status of the installation.

String

HTTP status codes

Status Description

202 Accepted

Devices unpaired successfully.

400 Bad Request

Indicates that one or more properties in the request body aren't valid.
The following example shows the response body with the error code and message.

{
     "message": "The property is outside the allowed range.",
     "code": "INVALID_STRING_LENGTH"
}

401 Unauthorized

Request didn't include the authorization token, or the included token expired or isn't valid. Or, you don't have access to the resource.

403 Forbidden

Indicates that the authorization token is valid, but the requested operation isn't allowed.

404 Not Found

Requested resource not found.

429 Too Many Requests

Permitted rate limit, specified as the number of requests per unit of time, exceeded. You can retry the request by using exponential back-off.

500 Server Error

Error occurred on the server. You can retry the request by using exponential back-off.

503 Service Unavailable

Server is down for maintenance, overloaded, or otherwise unavailable to handle the incoming request.

Unpair Bluetooth devices

Unpair all Bluetooth devices from the specified Alexa-enabled endpoint.

This operation is available in the following countries.

Healthcare Hospitality Senior Living Core

US

US, CA, DE, ES, FR, IT, UK, JP

US, CA, DE, ES, FR, IT, UK, JP

US

Request

To unpair Bluetooth devices, you make a POST request to the features/bluetooth/ resource.

Request path and header example

Copied to clipboard.

POST /v2/endpoints/{endpointId}/features/bluetooth/unpair
Host: api.amazonalexa.com
Authorization: Bearer {access token}

Request path and header parameters

Parameter Located in Description Type Required

endpointId

Path

Unique ID for this endpoint that Amazon assigns to each customer device.
Formatted as an Amazon Common Identifier (ACI), amzn1.alexa.endpoint.{id}.

String

Yes

access token

Header

Access token for the customer.
Set to an LWA token.

String

Yes

Request body example

The request has no body.

Request body properties

The request has no body.

Response

A successful response returns HTTP 202 Accepted. On error, the response returns the appropriate HTTP status code and includes a response body with an error code and human readable message.

Response body example

The response has no body.

Response body properties

The response has no body.

HTTP status codes

Status Description

202 Accepted

Devices unpaired successfully.

400 Bad Request

Indicates that one or more properties in the request body aren't valid.
The following example shows the response body with the error code and message.

{
     "message": "The property is outside the allowed range.",
     "code": "INVALID_STRING_LENGTH"
}

401 Unauthorized

Request didn't include the authorization token, or the included token expired or isn't valid. Or, you don't have access to the resource.

403 Forbidden

Indicates that the authorization token is valid, but the requested operation isn't allowed.

404 Not Found

Requested resource not found.

429 Too Many Requests

Permitted rate limit, specified as the number of requests per unit of time, exceeded. You can retry the request by using exponential back-off.

500 Server Error

Error occurred on the server. You can retry the request by using exponential back-off.

503 Service Unavailable

Server is down for maintenance, overloaded, or otherwise unavailable to handle the incoming request.

Update brightness

Set the brightness level for the specified endpoint.

This operation is available in the following countries.

Healthcare Hospitality Senior Living Core

US

US, UK, FR, CA, IT, DE, JP

US, UK, FR, CA, IT, DE, JP

US

Request

To set the brightness, you make a POST request to the features/brightness resource.

Request path and header example

Copied to clipboard.

POST /v2/endpoints/{endpointId}/features/brightness/{operation}
Host: api.amazonalexa.com
Content-Type: application/json
Authorization: Bearer {access token}

Request path and header parameters

Parameter Located in Description Type Required

endpointId

Path

Unique ID for this endpoint that Amazon assigns to each customer device.
Formatted as an ACI, amzn1.alexa.endpoint.{id}.

String

Yes

operation

Path

Operation to adjust or set the brightness level. Valid values: adjustBrightness, setBrightness.

String

Yes

access token

Header

Access token for the customer.
Set to an LWA token.

String

Yes

Request body example

The following example shows the request body for the adjustBrightness operation.

Copied to clipboard.

{
    "payload": {
        "brightnessDelta": -25
    }
}

The following example shows the request body for the setBrightness operation.

Copied to clipboard.

{
    "payload": {
        "brightness": 75
    }
}

Request body properties

Property Description Type Required

payload

Information required to control the brightness property.
Include one of brightness or brightnessDelta.

Object

Yes

payload.brightness

Percentage amount to set the brightness of the endpoint.
Include with setBrightness operation.
Valid values: 0–100.

Integer

No

payload.brightnessDelta

Percentage amount by which to change the brightness of the endpoint. Include with adjustBrightness operation.
Use a negative value to decrease the brightness and positive value to increase the brightness.
Valid values: –100 (minus 100) to 100.

Integer

No

Response

A successful response returns HTTP 200 OK. On error, the response returns the appropriate HTTP status code and includes a response body with an error code and human readable message.

Response body example

The response has no body.

Response body properties

The response has no body.

HTTP status codes

Status Description

200 OK

Property updated successfully on the specified endpoint.

400 Bad Request

Indicates that one or more properties in the request body aren't valid.
The following example shows the response body with the error code and message.

{
     "message": "The property is outside the allowed range.",
     "code": "INVALID_STRING_LENGTH"
}

401 Unauthorized

Request didn't include the authorization token, or the included token expired or isn't valid. Or, you don't have access to the resource.

403 Forbidden

Indicates that the authorization token is valid, but the requested operation isn't allowed.

404 Not Found

Requested resource not found.

429 Too Many Requests

Permitted rate limit, specified as the number of requests per unit of time, exceeded. You can retry the request by using exponential back-off.

500 Server Error

Error occurred on the server. You can retry the request by using exponential back-off.

503 Service Unavailable

Server is down for maintenance, overloaded, or otherwise unavailable to handle the incoming request.

Update color

Set the color for the specified endpoint.

This operation is available in the following countries.

Healthcare Hospitality Senior Living Core

US

US, UK, FR, CA, IT, DE, JP

US, UK, FR, CA, IT, DE, JP

US

Request

To set the color, you make a POST request to the features/color resource.

Request path and header example

Copied to clipboard.

POST /v2/endpoints/{endpointId}/features/color/setColor`
Host: api.amazonalexa.com
Content-Type: application/json
Authorization: Bearer {access token}

Request path and header parameters

Parameter Located in Description Type Required

endpointId

Path

Unique ID for this endpoint that Amazon assigns to each customer device.
Formatted as an ACI, amzn1.alexa.endpoint.{id}.

String

Yes

access token

Header

Access token for the customer.
Set to an LWA token.

String

Yes

Request body example

Copied to clipboard.

{
    "payload": {
        "color": {
            "hue": 20,
            "saturation": 0.75,
            "brightness": 0.34
        }
    }
}

Request body properties

Property Description Type Required

payload

Information required to control the color property.

Object

Yes

payload.color

Defines the color to set the endpoint.

Integer

Yes

payload.color.hue

Current hue value of the color.
Valid values: 0–360.

Integer

Yes

payload.color.saturation

Current saturation level of the color.
Valid values: 0.0–1.0, inclusive.

Double

Yes

payload.color.brightness

Current brightness.
Valid values: 0.0–1.0, inclusive.

Double

Yes

Response

A successful response returns HTTP 200 OK. On error, the response returns the appropriate HTTP status code and includes a response body with an error code and human readable message.

Response body example

The response has no body.

Response body properties

The response has no body.

HTTP status codes

Status Description

200 OK

Property updated successfully on the specified endpoint.

400 Bad Request

Indicates that one or more properties in the request body aren't valid.
The following example shows the response body with the error code and message.

{
     "message": "The property is outside the allowed range.",
     "code": "INVALID_STRING_LENGTH"
}

401 Unauthorized

Request didn't include the authorization token, or the included token expired or isn't valid. Or, you don't have access to the resource.

403 Forbidden

Indicates that the authorization token is valid, but the requested operation isn't allowed.

404 Not Found

Requested resource not found.

429 Too Many Requests

Permitted rate limit, specified as the number of requests per unit of time, exceeded. You can retry the request by using exponential back-off.

500 Server Error

Error occurred on the server. You can retry the request by using exponential back-off.

503 Service Unavailable

Server is down for maintenance, overloaded, or otherwise unavailable to handle the incoming request.

Update color temperature

Set the color temperature for the specified endpoint. You can set the color temperature to a specific value. Or, you can increase to a cooler or whiter setting relative to the current setting or decrease to a warmer or softer setting relative to the current setting. The endpoint manufacturer chooses how much to increase and decrease the setting.

This operation is available in the following countries.

Healthcare Hospitality Senior Living Core

US

US, UK, FR, CA, IT, DE, JP

US, UK, FR, CA, IT, DE, JP

US

Request

To set the color temperature, you make a POST request to the features/colorTemperature resource.

Request path and header example

Copied to clipboard.

POST /v2/endpoints/{endpointId}/features/colorTemperature/{operation}
Host: api.amazonalexa.com
Content-Type: application/json
Authorization: Bearer {access token}

Request path and header parameters

Parameter Located in Description Type Required

endpointId

Path

Unique ID for this endpoint that Amazon assigns to each customer device.
Formatted as an ACI, amzn1.alexa.endpoint.{id}.

String

Yes

operation

Path

Brightness operation to adjust or set the brightness level. Valid values: decreaseColorTemperature, increaseColorTemperature, setColorTemperature.

String

Yes

access token

Header

Access token for the customer.
Set to an LWA token.

String

Yes

Request body example

The decreaseColorTemperature and increaseColorTemperature operations have no request body.

The following example shows the request body for the setColorTemperature operation.

Copied to clipboard.

{
    "payload": {
        "colorTemperatureInKelvin": 2000
    }
}

Request body properties

Property Description Type Required

payload

Information required to control the colorTemperatureInKelvin property for the setColorTemperature operation.

Object

No

payload.colorTemperatureInKelvin

Color temperature in degrees Kelvin of an endpoint. For details about shades of white, see Color temperature values.
Valid values: 1000–10000.

Integer

No

Response

A successful response returns HTTP 200 OK. On error, the response returns the appropriate HTTP status code and includes a response body with an error code and human readable message.

Response body example

The response has no body.

Response body properties

The response has no body.

HTTP status codes

Status Description

200 OK

Property updated successfully on the specified endpoint.

400 Bad Request

Indicates that one or more properties in the request body aren't valid.
The following example shows the response body with the error code and message.

{
     "message": "The property is outside the allowed range.",
     "code": "INVALID_STRING_LENGTH"
}

401 Unauthorized

Request didn't include the authorization token, or the included token expired or isn't valid. Or, you don't have access to the resource.

403 Forbidden

Indicates that the authorization token is valid, but the requested operation isn't allowed.

404 Not Found

Requested resource not found.

429 Too Many Requests

Permitted rate limit, specified as the number of requests per unit of time, exceeded. You can retry the request by using exponential back-off.

500 Server Error

Error occurred on the server. You can retry the request by using exponential back-off.

503 Service Unavailable

Server is down for maintenance, overloaded, or otherwise unavailable to handle the incoming request.

Update power state

Turn the power on or off for the specified endpoint.

This operation is available in the following countries.

Healthcare Hospitality Senior Living Core

US

US, UK, FR, CA, IT, DE, JP

US, UK, FR, CA, IT, DE, JP

US

Request

To set the power state, you make a POST request to the features/power resource.

Request path and header example

Copied to clipboard.

POST /v2/endpoints/{endpointId}/features/power/{operation}
Host: api.amazonalexa.com
Content-Type: application/json
Authorization: Bearer {access token}

Request path and header parameters

Parameter Located in Description Type Required

endpointId

Path

Unique ID for this endpoint that Amazon assigns to each customer device.
Formatted as an ACI, amzn1.alexa.endpoint.{id}.

String

Yes

operation

Path

Operation used to turn on and off the power. Valid values: turnOn, turnOff.

String

Yes

access token

Header

Access token for the customer.
Set to an LWA token.

String

Yes

Request body example

The request has no body.

Request body properties

The request has no body.

Response

A successful response returns HTTP 200 OK. On error, the response returns the appropriate HTTP status code and includes a response body with an error code and human readable message.

Response body example

The response has no body.

Response body properties

The response has no body.

HTTP status codes

Status Description

200 OK

Property updated successfully on the specified endpoint.

400 Bad Request

Indicates that one or more properties in the request body aren't valid.
The following example shows the response body with the error code and message.

{
     "message": "The property is outside the allowed range.",
     "code": "INVALID_STRING_LENGTH"
}

401 Unauthorized

Request didn't include the authorization token, or the included token expired or isn't valid. Or, you don't have access to the resource.

403 Forbidden

Indicates that the authorization token is valid, but the requested operation isn't allowed.

404 Not Found

Requested resource not found.

429 Too Many Requests

Permitted rate limit, specified as the number of requests per unit of time, exceeded. You can retry the request by using exponential back-off.

500 Server Error

Error occurred on the server. You can retry the request by using exponential back-off.

503 Service Unavailable

Server is down for maintenance, overloaded, or otherwise unavailable to handle the incoming request.

Update speaker properties

Set or adjust the speaker volume for the specified endpoint.

This operation is available in the following countries.

Healthcare Hospitality Senior Living Core

US

US, UK, FR, CA, IT, DE, ES, JP

US, UK, FR, CA, IT, DE, ES, JP

US

Request

To set the speaker properties, you make a POST request to the features/speaker resource.

Request path and header example

Copied to clipboard.

POST /v2/endpoints/{endpointId}/features/speaker/{operation}
Host: api.amazonalexa.com
Content-Type: application/json
Authorization: Bearer {access token}

Request path and header parameters

Parameter Located in Description Type Required

endpointId

Path

Unique ID for this endpoint that Amazon assigns to each customer device.
Formatted as an ACI, amzn1.alexa.endpoint.{id}.

String

Yes

operation

Path

Operation used to set or adjust the speaker volume. Valid values: setVolume, adjustVolume.

String

Yes

access token

Header

Access token for the customer.
Set to an LWA token.

String

Yes

Request body example

The following example shows the request body for the adjustVolume operation.

Copied to clipboard.

{
    "payload": {
        "volumeDelta": -25
    }
}

The following example shows the request body for the setVolume operation.

Copied to clipboard.

{
    "payload": {
        "volume": 75
    }
}

Request body properties

Property Description Type Required

payload

Information required to control the speaker property.
Include one of volume or volumeDelta.

Object

Yes

payload.volume

Amount to set the volume of the endpoint.
Include with setVolume operation.
Valid values: 0–100.

Integer

No

payload.volumeDelta

Amount by which to change the volume of the endpoint. Include with adjustVolume operation.
Use a negative value to decrease the volume and positive value to increase the volume.
Valid values: –100 (minus 100) to 100.

Integer

No

Response

A successful response returns HTTP 200 OK. On error, the response returns the appropriate HTTP status code and includes a response body with an error code and human readable message.

Response body example

The response has no body.

Response body properties

The response has no body.

HTTP status codes

Status Description

200 OK

Property updated successfully on the specified endpoint.

400 Bad Request

Indicates that one or more properties in the request body aren't valid.
The following example shows the response body with the error code and message.

{
     "message": "The property is outside the allowed range.",
     "code": "INVALID_STRING_LENGTH"
}

401 Unauthorized

Request didn't include the authorization token, or the included token expired or isn't valid. Or, you don't have access to the resource.

403 Forbidden

Indicates that the authorization token is valid, but the requested operation isn't allowed.

404 Not Found

Requested resource not found.

429 Too Many Requests

Permitted rate limit, specified as the number of requests per unit of time, exceeded. You can retry the request by using exponential back-off.

500 Server Error

Error occurred on the server. You can retry the request by using exponential back-off.

503 Service Unavailable

Server is down for maintenance, overloaded, or otherwise unavailable to handle the incoming request.

Object definitions

The Endpoint Features API defines the following object definitions and property values.

CertificateAuthority object

The CertificateAuthority object identifies the certificates authority organization that creates and verifies digital certificates.

Property Description Type

providerName

Identifies the certificate authority organization.

String

Yes

id

ID of the certificate authority resource within the provider system.

String

Yes

Color temperature values

The following table lists example color temperature values for shades of white.

Shade Color temperature in absolute Kelvin

warm, warm white

2200

incandescent, soft white

2700

white

4000

daylight, daylight white

5500

cool, cool white

7000

Operation object

The Operation object describes the update operations available for the specified endpoint and feature.

Property Description Type

name

Name of the update operation.

String

path

Full HTTP path that you can use in an update operation to set the name property.

String

Temperature object

The Temperature object represents the current temperature detected by the endpoint.

Property Description Type

value

Temperature in degrees.

Double

scale

Temperature scale.
Included for targetSetpoint, lowerSetpoint, upperSetpoint only.
Valid values: CELSIUS, FAHRENHEIT, KELVIN.

String

ThermostatMode values

The following table shows the mode value strings for thermostats. A thermostat might not support all modes.

Value Description

AUTO

Automatic heating or cooling based on the current temperature and the setpoint.

COOL

Cooling mode.

ECO

Economy mode.

EM_HEAT

Emergency heating mode.
This mode uses a backup heat source as an additional heat source. For example, a customer might use emergency heat when it's really cold or when the heat pump is broken.

HEAT

Heating mode.

OFF

Heating and cooling are off, but the device might still have power.

Error object

The Error object describes the error that occurred.

Property Description Type

type

Type of error that occurred.
Valid values: ENDPOINT_UNREACHABLE, INTERNAL_ERROR.

String

message

Human readable error message.
Use for debugging and logging purposes only. You must not share it with the customer. No business logic should depend on the content of the error message.

String


Was this page helpful?

Last updated: Apr 16, 2024