Configure URLs in the Alexa developer console
To enable app-to-app account linking using the developer console, take the following steps.- Sign in to the Alexa Skills Kit developer console.
- On the Skills tab, under SKILL NAME, scroll to find your skill.
- Under ACTIONS, expand the dropdown list in your skill’s row, and then select Edit.
- On the left side, click TOOLS, and then click ACCOUNT LINKING.
- Turn on Allow users to link their account to your skill from within your application or website.
- For the authorization grant type, select Auth Code Grant.
App-to-app account linking supports authorization code grant only. - For Your Redirect URLs, add the redirect URLs described in URLs and endpoints / Your app’s redirect URLs. Alexa and LWA use these URLs to send the user back to your app.
- For the other settings, use the settings described in Configure Account Linking.
- The redirect URLs must comply with the specified URI syntax. The Alexa app opens this Universal Link or App Link URL to launch your app.
- To handle different scenarios, you can add more than one redirect URL.
- If your app doesn’t support Universal Links or App Links, you should have a valid web page that your redirect URLs lead to. The web page should support the same process to receive the user’s Amazon authorization code described in How it works.
- Remember to add Your Redirect URLs for your iOS app, Android app, and website.
Configure URLs with the CLI
To enable app-to-app account linking using the ASK CLI, use theupdate-account-linking-info.
The following example shows the JSON format for the account-linking-request option. Set the redirectUrls to your fallback URL and the authorizationUrlsByPlatformto your iOS and Android redirect URLs. For more details about the fields, see Request body properties for Update account linking information REST API.
Configure URLs with the REST API
To enable app-to-app account linking by using the Account Linking Management REST API, use the following settings for theaccountLinkingRequest structure.
| Field | Description | Type |
|---|---|---|
skipOnEnablement | Set to true to let users enable the skill without starting the account linking flow. Set to false to require the normal account linking flow when users enable the skill. For more details, see Let Users Enable Your Skill without Account Linking. | Boolean |
type | Specifies the OAuth authorization grant type. For app-to-app account linking, you must use AUTH_CODE. | String |
authorizationUrl | Alexa app URL. For more details, see URLs and endpoints. | String |
domains | List of additional domains that your log-in page gets content from. You can specify up to 15 domains. | Array of String |
clientId | Identifier that the Amazon log-in page uses to recognize that the request came from your skill. | String |
scopes | Strings that indicate the access that you need for the user account, such as the user_id. For smart home skills, this field is a required property. You can specify up to 15 scopes. You must include alexa::skills:account_linking. | Array of String |
accessTokenUrl | Amazon OAuth URI for requesting authorization tokens | String |
accessTokenScheme | Type of authentication used. Set to HTTP_BASIC or REQUEST_BODY_CREDENTIALS. | String |
redirectUrls | List of fallback website URLs when your app links aren’t available. For more details, see URLs and endpoints. | Array of String |
authorizationUrlsByPlatform | List of URLs by mobile platform used to redirect back to your app. For more details, see URLs and endpoints. | Array of String |
pkceConfiguration | Defines the Proof Key for Code Exchange (PKCE) parameters. Include if your app backend supports PKCE using SHA-256. The pkceConfiguration object contains two properties:
| Object |

