The user's memberships, before choosing a tenant for the exchange.
GET
/console/memberships
const url = 'https://api.canopyhq.dev/console/memberships';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.canopyhq.dev/console/memberships \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The user’s workspaces.
Media typeapplication/json
Array<object>
A workspace the verified user may select.
object
name
required
string
role
required
What a user may do in a tenant. An owner consents on its behalf.
string
tenant
required
The organization that consented. Comes from the console’s identity.
string
Example
[ { "role": "Owner" }]No trusted issuer token.