Get the current authenticated account
GET
/v1/account
const url = 'https://api.aetherpush.com/v1/account';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.aetherpush.com/v1/account \ --header 'Authorization: Bearer <token>'Returns the account profile of the authenticated user. The
linkedProviders field is always an empty array in Aether (legacy
Microsoft fork field, scheduled for removal).
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Account profile.
Media typeapplication/json
object
account
required
object
email
required
string format: email
name
required
string
linkedProviders
required
Legacy field inherited from the Microsoft CodePush fork. Always empty in Aether. Will be removed in a future version.
Array<string>
Example
{ "account": { "email": "adrian@aetherpush.com", "name": "Adrian Moreno", "linkedProviders": [] }}Unauthenticated.
Media typeapplication/json
object
error
required
Human-readable error message.
string
requestId
Unique identifier for the request, also exposed as the X-Request-Id response header.
string
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}Internal server error.
Media typeapplication/json
object
error
required
Human-readable error message.
string
requestId
Unique identifier for the request, also exposed as the X-Request-Id response header.
string
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}