Get a list of all workspaces
curl --request GET \
--url https://api.wacht.dev/workspaces \
--header 'Authorization: Bearer <token>'
{
"total": 100,
"page": 1,
"per_page": 20,
"total_pages": 5,
"data": [
{
"id": "<string>",
"organization_id": "<string>",
"name": "Engineering Team",
"slug": "engineering",
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"member_count": 12,
"roles": [
{
"id": "<string>",
"name": "Admin",
"description": "<string>",
"permissions": [
"workspace.manage",
"members.invite",
"members.remove"
],
"is_default": false,
"created_at": "2023-11-07T05:31:56Z"
}
]
}
]
}
JWT Bearer token authentication using the Authorization header
(i64 formatted as string)
Successful response
The response is of type object
.
curl --request GET \
--url https://api.wacht.dev/workspaces \
--header 'Authorization: Bearer <token>'
{
"total": 100,
"page": 1,
"per_page": 20,
"total_pages": 5,
"data": [
{
"id": "<string>",
"organization_id": "<string>",
"name": "Engineering Team",
"slug": "engineering",
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"member_count": 12,
"roles": [
{
"id": "<string>",
"name": "Admin",
"description": "<string>",
"permissions": [
"workspace.manage",
"members.invite",
"members.remove"
],
"is_default": false,
"created_at": "2023-11-07T05:31:56Z"
}
]
}
]
}