Get Started with Alexa Smart Properties for Residential APIs
Before you can use Alexa Smart Properties for residential APIs, you must create an Amazon Business account, and then register it with Amazon. Then you must create a Login with Amazon (LWA) security profile by using the same Amazon Business account that you registered with Alexa Smart Properties for residential. Finally, you must register your LWA security profile with Alexa Smart Properties and use the security profile to generate an API access token.
To create an Amazon Business account
- To create an Amazon Business account, go to Create an Amazon Business Account.
To register with Alexa Smart Properties for residential
- To register your Amazon Business account for Alexa Smart Properties for residential APIs, see Get Started with Alexa Smart Properties for hospitality and Alexa Smart Properties for residential. A member of the Alexa Business Development team will contact you to:
- Register your company's Amazon Business account e-mail or customer ID, legal entity ID, and app client ID
- Finalize pricing
- Finish setting up your subscription
- Give you your Alexa for Residential organization (
Create an LWA security profile
Create a security profile by following the steps in the LWA console, using the same Amazon Business account and email address that you registered with Alexa Smart Properties for residential. For future reference, make sure to note the client ID for your application. After creating your security profile, add your website to the security profile.
Integrate with LWA to get an API access token
To integrate LWA into your application to obtain an API access token, follow the instructions in Integrate LWA with your app. These instructions show you how to integrate LWA into your application and obtain an LWA API access token. For more information, see Authorization Code Grant.
To integrate with LWA to get an API access token for Alexa Smart Properties for residential
Auth Code Grantas your auth grant type.
- Request the
After you can successfully log in with Amazon by using your Amazon Business account, you can call Alexa Smart Properties for residential APIs.
To refresh your access token, follow the instructions in Using Refresh Tokens.
Use the LWA access token
To call the APIs, you must include your API access token as part of the Authorization request header of each API call.
The following example is a CURL request that uses the access token. To use it, change
$ACCESS_TOKEN to your real access token, and then change the URL to the correct one for the API you're calling.
curl -i -v -X GET -H "Authorization: Bearer $ACCESS_TOKEN" https://api.amazonalexa.com/v2/endpoints
Now that you've registered with Alexa Smart Properties for residential, you're ready to use its APIs. To learn how to set up admin roles for your users, see Managing Roles in Alexa Smart Properties for Residential.