Skip to main content
Workspaces are the top-level organizational unit in Chevre. Every project, automation, and team member belongs to a workspace. Use the endpoints below to create and manage workspaces programmatically. All requests must include your API key in the Authorization header as Bearer <your_api_key>.

List workspaces

GET https://api.chevre.io/v1/workspaces Returns a paginated list of all workspaces the authenticated API key has access to. Results are ordered by creation date, newest first.

Query parameters

page
integer
default:"1"
The page number to retrieve. Must be a positive integer.
per_page
integer
default:"20"
The number of workspaces to return per page. Minimum is 1, maximum is 100.

Example request

Example response

200

Response fields

data
array
An array of workspace objects.
meta
object
Pagination metadata for the response.

Create a workspace

POST https://api.chevre.io/v1/workspaces Creates a new workspace. The authenticated user becomes the workspace owner automatically.

Request body

name
string
required
The display name for the new workspace. Must be between 1 and 255 characters.
slug
string
A URL-safe identifier for the workspace. Must be lowercase, contain only letters, numbers, and hyphens, and be unique across all workspaces. If omitted, Chevre auto-generates a slug from the name.
timezone
string
default:"UTC"
The IANA timezone identifier for the workspace (e.g. "America/New_York"). Used as the default timezone for scheduled automations and reports.

Example request

Example response

201

Response fields

data
object
The newly created workspace object.

List projects in a workspace

GET https://api.chevre.io/v1/workspaces/{id}/projects Returns a paginated list of all projects belonging to the specified workspace. This is a convenient shorthand for browsing a workspace’s projects without needing to call the Projects endpoints directly. For full project creation and management, see the Projects reference.

Path parameters

id
string
required
The unique identifier of the workspace whose projects you want to list (e.g. ws_01HXYZ).

Query parameters

page
integer
default:"1"
The page number to retrieve. Must be a positive integer.
per_page
integer
default:"20"
The number of projects to return per page. Minimum is 1, maximum is 100.
archived
boolean
default:"false"
When true, returns only archived projects. When false (the default), returns only active projects.

Example request

Example response

200

Response fields

data
array
An array of project objects belonging to the workspace.
meta
object
Pagination metadata for the response.

Get a workspace

GET https://api.chevre.io/v1/workspaces/{id} Retrieves a single workspace by its ID. You must have access to the workspace to retrieve it.

Path parameters

id
string
required
The unique identifier of the workspace to retrieve (e.g. ws_01HXYZ).

Example request

Example response

200

Response fields

data
object
The requested workspace object.

Update a workspace

PATCH https://api.chevre.io/v1/workspaces/{id} Updates one or more fields on an existing workspace. Send only the fields you want to change — all other fields remain unchanged.

Path parameters

id
string
required
The unique identifier of the workspace to update (e.g. ws_01HXYZ).

Request body

name
string
The new display name for the workspace.
slug
string
A new URL-safe identifier for the workspace. Must be unique across all workspaces. Changing a slug immediately invalidates any previously shared workspace URLs.
timezone
string
A new IANA timezone identifier (e.g. "Europe/London"). Updating the timezone affects all future scheduled automations but does not reschedule existing ones.

Example request

Example response

200

Response fields

data
object
The updated workspace object, reflecting all applied changes.

Delete a workspace

DELETE https://api.chevre.io/v1/workspaces/{id} Deletes a workspace and all of its contents, including projects, automations, members, and settings.
This action is permanent and irreversible. Deleting a workspace immediately removes all associated projects, automations, webhooks, and member associations. There is no recovery path. Ensure you have exported any data you need before proceeding.
This endpoint requires your API key to have the admin scope on the workspace. Requests authenticated with keys that have read-only or editor scope will receive a 403 Forbidden response.

Path parameters

id
string
required
The unique identifier of the workspace to delete (e.g. ws_01HXYZ).

Example request

Example response

204
A successful deletion returns HTTP 204 No Content with an empty response body.