SendAlexaOfferToMaster
Note
Before using this API, you must call the GetSignalingChannelEndpoint
API to get an endpoint. You then specify the endpoint and region in your
SendAlexaOfferToMaster
API request.
This API allows you to connect WebRTC-enabled devices with Alexa display devices. When invoked, it sends the Alexa Session Description Protocol (SDP) offer to the master peer. The offer is delivered as soon as the master is connected to the specified signaling channel. This API returns the SDP answer from the connected master. If the master is not connected to the signaling channel, redelivery requests are made until the message expires.
Request Syntax
POST /v1/send-alexa-offer-to-master HTTP/1.1
Content-type: application/json
{
"ChannelARN": "string
",
"MessagePayload": "string
",
"SenderClientId": "string
"
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
- ChannelARN
-
The Amazon Resource Name (ARN) of the signaling channel by which Alexa and the master peer communicate.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 1024.
Pattern:
arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+
Required: Yes
- MessagePayload
-
The base64-encoded SDP offer content.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 10000.
Pattern:
[a-zA-Z0-9+/=]+
Required: Yes
- SenderClientId
-
The unique identifier for the sender client.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 256.
Pattern:
[a-zA-Z0-9_.-]+
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"Answer": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- Answer
-
The base64-encoded SDP answer content.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 10000.
Errors
For information about the errors that are common to all actions, see Common Errors.
- ClientLimitExceededException
-
Your request was throttled because you have exceeded the limit of allowed client calls. Try making the call later.
HTTP Status Code: 400
- InvalidArgumentException
-
The value for this input parameter is invalid.
HTTP Status Code: 400
- NotAuthorizedException
-
The caller is not authorized to perform this operation.
HTTP Status Code: 401
- ResourceNotFoundException
-
The specified resource is not found.
HTTP Status Code: 404
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: