Connect the Amazon developer account automatic setup runs as
PUT/v1/admin/integrations/alexa/lwa-connection
Verifies an LWA security profile and stores it with a refresh token, so automatic
setups need no further consent. Send either the authorization code LWA returned
to lwa_redirect_uri after the account owner consented (scope
alexa::ask:skills:readwrite alexa::ask:skills:test), which is redeemed here
because it expires within minutes, or a refresh token minted elsewhere, which is
checked with LWA first. Replaces any connected account. The refresh token can
manage every skill of that account, so it is stored encrypted and never returned.
Admin only.
Request
Responses
- 200
- 400
- 401
- 403
- 500
Account connected
Missing client id or secret, neither or both of a code and a refresh token, a
code without lwa_redirect_uri, or LWA refused them (Failed to redeem the LWA authorization code, Failed to verify the LWA credentials). Nothing is stored.
Unauthorized - Invalid or missing authentication
Forbidden - User does not have permission to access the resource
Server error, or Login with Amazon unavailable (network error or upstream 5xx/429)