Account Endpoints
/account/change-account
Users can switch between multiple accounts within a single app using this endpoint.
Accounts available
Provide a list of accounts available for the current user. The list does not include the current account.
GET /account/change-account
Returns a select list of accounts.
{
"success": true,
"message": "",
"payload": {
"acc_demoSeinfeld": "Seinfeld Sitcom",
"acc_demoSimpsons": "The Simpsons"
}
}
Change account
Submit the new account_id
to the API to update the current session with the account details.
POST /account/change-account
{
"account_id": "acc_1234567890"
}
Returns a session object with values associated with the new account.
{
"success": true,
"message": "",
"payload": {
...
"account": {
"id": "acc_1234567890",
...
},
"acccess": {
...
},
...
}
}