Self Service Onboarding API Reference for Alexa Smart Properties
Use the Self Service Onboarding API to onboard and manage a communication provider to the Alexa service for Alexa Smart Properties.
API endpoint
The endpoint of the Self Service Onboarding API is https://api.amazonalexa.com/v1/communications/serviceProviders
.
Authentication
Each API request must have an authorization header whose value is the access token retrieved from Login with Amazon (LWA). The LWA scope to use here is amazon_communication::service_provider
. For details on getting the access token, see Get an access token.
Operations
The API supports the following operations:
Operation | HTTP method and URI |
---|---|
| |
| |
| |
|
Create a service provider
Create a new service provider.
This operation is available in the following countries.
Healthcare | Hospitality | Senior Living | Core |
---|---|---|---|
US |
US, UK, FR, IT, DE, ES |
US, UK, FR, IT, DE, ES |
US |
Request
To create a service provider, make a POST
request to /v1/communications/serviceProviders
.
Request path and header example
POST /v1/communications/serviceProviders HTTP/1.1
Host: api.amazonalexa.com
Content-type: application/json
Authorization: Bearer {access token}
Request path and header parameters
Parameter | Located in | Description | Type | Required |
---|---|---|---|---|
|
Header |
Login with Amazon (LWA) token. For details, see Get an Access Token for SMAPI. |
String |
Yes |
Request body example
Request body properties
Property | Description | Type | Required |
---|---|---|---|
|
Unique ID for each service provider. |
String |
Yes |
|
Customer facing name for the service provider. At this moment, it is used for internal analytics. |
Array of objects |
No |
|
Accepted locale.This release supports |
String |
No. The default is |
|
Customer facing name. |
String |
No |
Response
A successful response returns HTTP 201 Created
, along with the status of the target. On error, the response returns the appropriate HTTP status code and includes a response body with an error code and human readable message. For details, see HTTP status codes.
Response body example
Response body properties
Property | Description | Type |
---|---|---|
|
Internally generated ID as a unique identifier for the created service provider. |
String |
|
Unique identifier of the created service provider. |
String |
|
Locale for the display name. |
String |
|
Customer facing name. |
String |
HTTP status codes
Status | Description |
---|---|
|
The request succeeded. |
|
A required parameter isn't present or is incorrectly formatted. |
|
The access token is missing or expired. |
|
You don't have permission to perform the operation or the authentication token is invalid. |
|
The requested |
|
You made more API calls than the allowed limit. |
|
An internal service error caused the request failure. |
|
The server is temporarily unavailable. |
Get the service provider information
Get detailed service provider information for a specific service provider ID.
This operation is available in the following countries.
Healthcare | Hospitality | Senior Living | Core |
---|---|---|---|
US |
US, UK, FR, IT, DE, ES |
US, UK, FR, IT, DE, ES |
US |
Request
To get details of a specific service provider ID, make a GET
request to /v1/communications/serviceProviders/{serviceProviderId}
.
Request path and header example
GET /v1/communications/serviceProviders/amzn1.comms.csp.id.eb56ddf4-a5bd-119c-be09-0242ac127501 HTTP/1.1
Host: api.amazonalexa.com
Content-type: application/json
Authorization: Bearer {access token}
Request path and header parameters
Parameter | Located in | Description | Type | Required |
---|---|---|---|---|
|
Path |
The unique service provider ID. |
String |
Yes |
|
Header |
Login with Amazon (LWA) token. For details, see Get an Access Token for SMAPI. |
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 target. On error, the response returns the appropriate HTTP status code and includes a response body with an error code and human readable message. For details, see HTTP status codes.
Response body example
Response body properties
Property | Description | Type |
---|---|---|
|
Internally generated ID as a unique identifier for the created service provider. |
String |
|
Unique identifier of the created service provider. |
String |
|
Locale for the display name. |
String |
|
Customer facing name. |
String |
HTTP status codes
Status | Description |
---|---|
|
The request succeeded. |
|
A required parameter isn't present or is incorrectly formatted. |
|
The access token is missing or expired. |
|
You don't have permission to perform the operation or the authentication token is invalid. |
|
The specified |
|
You made more API calls than the allowed limit. |
|
An internal service error caused the request failure. |
|
The server is temporarily unavailable. |
Update a service provider
Modify an existing service provider's properties, such as the display name. You can't modify the serviceProviderLogicalId
after its creation.
This operation is available in the following countries.
Healthcare | Hospitality | Senior Living | Core |
---|---|---|---|
US |
US, UK, FR, IT, DE, ES |
US, UK, FR, IT, DE, ES |
US |
Request
To update a service provider's properties, make a PUT
request to /v1/communications/serviceProviders/{serviceProviderId}
.
Request path and header example
PUT /v1/communications/serviceProviders/amzn1.comms.csp.id.eb56ddf4-a5bd-119c-be09-0242ac127501 HTTP/1.1
Host: api.amazonalexa.com
Content-type: application/json
Authorization: Bearer {access token}
Request path and header parameters
Parameter | Located in | Description | Type | Required |
---|---|---|---|---|
|
Path |
Unique identifier of the service provider. |
String |
Yes |
|
Header |
Login with Amazon (LWA) token. For details, see Get an Access Token for SMAPI. |
String |
Yes |
Request body example
Request body properties
Property | Description | Type | Required |
---|---|---|---|
|
Unique ID for each service provider. You can't modify this ID after its creation. This property is optional when updating a service provider but it is required when creating a service provider. |
String |
No |
|
Customer facing name. |
Array of objects |
No |
|
Accepted locale. This release supports |
String |
No. The default is |
|
Customer facing name. |
String |
No |
Response
A successful response returns HTTP 200 OK
, along with the status of the target. On error, the response returns the appropriate HTTP status code and includes a response body with an error code and human readable message. For details, see HTTP status codes.
Response body example
Response body properties
Property | Description | Type |
---|---|---|
|
Internally generated ID as a unique identifier for the created service provider. |
String |
|
Locale for the display name. |
String |
|
Customer facing name. |
String |
HTTP status codes
Status | Description |
---|---|
|
The request succeeded. |
|
A required parameter isn't present or is incorrectly formatted. |
|
The access token is missing or expired. |
|
You don't have permission to perform the operation or the authentication token is invalid. |
|
The specified |
|
You made more API calls than the allowed limit. |
|
An internal service error caused the request failure. |
|
The server is temporarily unavailable. |
Delete a service provider
Delete a service provider ID.
This operation is available in the following countries.
Healthcare | Hospitality | Senior Living | Core |
---|---|---|---|
US |
US, UK, FR, IT, DE, ES |
US, UK, FR, IT, DE, ES |
US |
Request
To delete a service provider ID, make a DELETE
request to /v1/communications/serviceProviders/{serviceProviderId}
.
Request path and header example
DELETE /v1/communications/serviceProviders/amzn1.comms.csp.id.eb56ddf4-a5bd-119c-be09-0242ac127501 HTTP/1.1
Host: api.amazonalexa.com
Content-type: application/json
Authorization: Bearer {access token}
Request path and header parameters
Parameter | Located in | Description | Type | Required |
---|---|---|---|---|
|
Path |
Unique identifier of the service provider for deletion. |
String |
Yes |
|
Header |
Login with Amazon (LWA) token. For details, see Get an Access Token for SMAPI. |
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 target. On error, the response returns the appropriate HTTP status code and includes a response body with an error code and human readable message. For details, see HTTP status codes.
Response body example
The response has no body.
Response body properties
The response has no body.
HTTP status codes
Status | Description |
---|---|
|
The request succeeded. |
|
A required parameter isn't present or is incorrectly formatted. |
|
The access token is missing or expired. |
|
You don't have permission to perform the operation or the authentication token is invalid. |
|
The specified |
|
You made more API calls than the allowed limit. |
|
An internal service error caused the request failure. |
|
The server is temporarily unavailable. |
Related topics
- Onboard and Implement Skill-Based WebRTC Calling for Alexa Smart Properties
- Account Linking for Custom Skills
- Service Provider Network Mapping API Reference for Alexa Smart Properties
- Create and Manage Skills in the Developer Console
Last updated: Nov 28, 2023