Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get started
Connect with Matter
Alexa Connect Kit
Add-ons
Certify
Resources
Skip to main content
In this step, you configure your skill to use app-to-app account linking and define the redirect URLs. You can use the Alexa developer console, Alexa Skills Kit Command Line Interface (ASK CLI), or the Account Linking Management REST API to configure your skill. During this step, you specify your app’s redirect URL (deep-link enabled), access token URL, and more. For details, see URIs and endpoints. In this topic, the terms URI and URL are used interchangeably.

Configure URLs in the Alexa developer console

To enable app-to-app account linking using the developer console, take the following steps.
  1. Sign in to the Alexa Skills Kit developer console.
  2. On the Skills tab, under SKILL NAME, scroll to find your skill.
  3. Under ACTIONS, expand the dropdown list in your skill’s row, and then select Edit.
  4. On the left side, click TOOLS, and then click ACCOUNT LINKING.
  5. Turn on Allow users to link their account to your skill from within your application or website.
  6. For the authorization grant type, select Auth Code Grant.
    App-to-app account linking supports authorization code grant only.
  7. 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.
  8. For the other settings, use the settings described in Configure Account Linking.
Make sure that you follow these requirements when you add the redirect URLs:
  • 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 the update-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 the accountLinkingRequest structure.
FieldDescriptionType
skipOnEnablementSet 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
typeSpecifies the OAuth authorization grant type. For app-to-app account linking, you must use AUTH_CODE.String
authorizationUrlAlexa app URL. For more details, see URLs and endpoints.String
domainsList of additional domains that your log-in page gets content from. You can specify up to 15 domains.Array of String
clientIdIdentifier that the Amazon log-in page uses to recognize that the request came from your skill.String
scopesStrings 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
accessTokenUrlAmazon OAuth URI for requesting authorization tokensString
accessTokenSchemeType of authentication used. Set to HTTP_BASIC or REQUEST_BODY_CREDENTIALS.String
redirectUrlsList of fallback website URLs when your app links aren’t available. For more details, see URLs and endpoints.Array of String
authorizationUrlsByPlatformList of URLs by mobile platform used to redirect back to your app. For more details, see URLs and endpoints.Array of String
pkceConfigurationDefines the Proof Key for Code Exchange (PKCE) parameters. Include if your app backend supports PKCE using SHA-256.

The pkceConfiguration object contains two properties:
  • status – Indicates whether the app backend supports PKCE.
    Valid values: ENABLED, DISABLED. Default: DISABLED.
  • codeChallengeMethod – Method used to create a code challenge. Account linking supports SHA-256.
    Valid value: S256.
Object
The following is an example of a request to add redirect URLs by using the Update account linking information operation.
Last modified on October 4, 2026