List workspaces
GET
/api/workspaces
const url = 'http://localhost:8080/api/workspaces';const options = {method: 'GET', headers: {cookie: 'auth_session=<auth_session>'}};
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:8080/api/workspaces \ --cookie auth_session=<auth_session>Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Workspaces for the user.
Media typeapplication/json
object
success
required
boolean
data
required
Array<object>
object
id
string
name
required
string
slug
required
string
role
string
createdAt
string format: date-time
updatedAt
string format: date-time
settings
required
object
key
additional properties
Example
{ "success": true, "data": [ { "id": "507f1f77bcf86cd799439011" } ]}Invalid request
Media typeapplication/json
object
success
boolean
error
string
Example
{ "error": "Error message"}Internal server error
Media typeapplication/json
object
success
boolean
error
string
Example
{ "error": "Error message"}