List Workspaces
GET
/api/workspaces
const url = 'http://localhost:8000/api/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 http://localhost:8000/api/workspaces \ --header 'Authorization: Bearer <token>'List workspaces the caller belongs to.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
example