List active workspaces eligible for native browser reauthorization
GET
/v1/mobile/workspaces
const url = 'https://api.vocapable.com/v1/mobile/workspaces';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.vocapable.com/v1/mobile/workspaces \ --header 'Authorization: Bearer <token>'Return safe labels only; a client must still run the browser PKCE exchange to switch.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
MobileWorkspaceList
object
items
Items
Array<object>
MobileWorkspaceOptionA safe native reauthorization choice; it is not a switching credential.
object
membership_id
required
Membership Id
string
tenant_id
required
Tenant Id
string
label
required
Label
string
role
required
Role
string
active_membership_id
required
Active Membership Id
string
Example
{ "items": [ { "role": "admin" } ]}