List workspaces
GET
/v1/workspaces
const url = 'https://shareout.site/v1/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://shareout.site/v1/workspaces \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Workspaces the user belongs to
Media type application/json
object
workspaces
Array<object>
object
id
string
name
string
slug
string
role
string
Example
{ "workspaces": [ { "role": "owner" } ]}