Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
The Vega Media Account Login API provides a way for apps to report their authentication status to the system.

Remarks

Apps need to refresh the user’s login status upon each launch, which is done by the Account Login API. There are two account login states: signed in, and signed out. By keeping the login status up-to-date, apps make sure that users have access to appropriate content and features. The interface allows apps to communicate a boolean value indicating whether a user is logged in, both at launch and whenever the login state changes. The system can also query this status as needed, enabling a personalized user experience. Products can leverage this information to feature or filter content from services where the user is already authenticated, allowing for instant access to content. The Account Login functionality offers two key components for managing authentication status: the updateStatus method, and the handleReadStatus callback function. The updateStatus method reports an app’s current login status for real-time updates when the authentication state changes. The handleReadStatus callback function can respond to system queries about the app’s current login status. Both methods use the StatusType for account status, with two possible values: SIGNED_IN and SIGNED_OUT.

Get started

Setup

  1. Add the following library dependency to the dependencies section of your package.json file.
  2. In your manifest.toml, add the following privileges required to access. Note: When modifying the manifest entries, replace com.amazondeveloper.media.sample with your app’s package ID, as seen in the following example.
Media apps often require integration with three key APIs:
  • Content Launcher Cluster API for finding and launching content
  • Vega Media Controls API for controlling launched media
  • Account Login API for communicating Account Login status to the system
The Content Launcher and Vega Media Control APIs are most often implemented as an interactive component, which handles Vega media queries. This component is specified in the app manifest’s extras section using the interface.provider key, as shown in the following TOML snippet and in the previous example.
The Account Login API is implemented as a service app, allowing the system to query Account Login status without waking up the entire app. The Account Login API uses a single “Status” attribute, which is handled by the service component. To ensure proper routing of login status attribute interactions, the app manifest must specify the service component using the override_attribute_component setting, as demonstrated in this TOML example and in the previous example:
Use this approach to optimize system performance and provide a clear separation between media control and account management functionalities. Account Login Integration Guide

Modules


Last modified on June 11, 2026