Skip to content

Workspaces

List, create, update and delete workspaces with the Platform API.

A workspace groups apps together. Every account has at least one, and one of them is always the default.

List workspaces#

GET/workspacesworkspaces:read

Returns every workspace the key can see. A key that is limited to one workspace gets only that one.

QueryTypeNotes
countsbooleanInclude the number of apps in each workspace. Off by default because it costs one query per workspace.
curl "https://apipublic.yeshbe.com/api/platform/v1/workspaces?counts=true" \ -H "Authorization: Bearer $YESHBE_KEY"
Response
{"success":true,"data":{"items":[{"id":12,"name":"Production","description":"","color":"#2e8b57","is_default":true,"apps_count":4,"created_at":"2026-01-14T09:22:00"}],"total":1}}

Get a workspace#

GET/workspaces/{id}workspaces:read

Always includes the app count.

curl "https://apipublic.yeshbe.com/api/platform/v1/workspaces/12" \ -H "Authorization: Bearer $YESHBE_KEY"
Response
{"success":true,"data":{"id":12,"name":"Production","description":"","color":"#2e8b57","is_default":true,"apps_count":4}}

Create a workspace#

POST/workspacesworkspaces:write

A key that is limited to a single workspace can't create new ones.

BodyTypeNotes
namestringRequired. Up to 200 characters.
descriptionstring
colorstringHex, for example #2e8b57.
is_defaultbooleanMakes this the default and clears the flag from the previous one.
curl -X POST "https://apipublic.yeshbe.com/api/platform/v1/workspaces" \ -H "Authorization: Bearer $YESHBE_KEY" \ -H "Content-Type: application/json" \ -d '{"name":"Staging","color":"#3b6fb8"}'
Response
{"success":true,"data":{"id":19,"name":"Staging","color":"#3b6fb8","is_default":false}}

Update a workspace#

PATCH/workspaces/{id}workspaces:write

Partial. Fields you leave out keep their current value.

BodyTypeNotes
namestring
descriptionstring
colorstring
is_defaultbooleanOnly true has an effect. To unset a default, make another workspace the default.
curl -X PATCH "https://apipublic.yeshbe.com/api/platform/v1/workspaces/19" \ -H "Authorization: Bearer $YESHBE_KEY" \ -H "Content-Type: application/json" \ -d '{"name":"Staging EU"}'
Response
{"success":true,"data":{"id":19,"name":"Staging EU","is_default":false}}

Delete a workspace#

DELETE/workspaces/{id}workspaces:write

Refused with 409 if the workspace is the default, if it is the last one, or if it still holds apps. Move the apps first with Move an app.

curl -X DELETE "https://apipublic.yeshbe.com/api/platform/v1/workspaces/19" \ -H "Authorization: Bearer $YESHBE_KEY"
Response
{"success":true,"data":{"id":19,"deleted":true}}