DELETE
/
v1
/
api
/
workspaces
/
{workspaceId}
curl --request DELETE \
  --url https://api.trillet.ai/v1/api/workspaces/{workspaceId} \
  --header 'x-api-key: <api-key>' \
  --header 'x-workspace-id: <x-workspace-id>'
{
  "success": true
}

Path Parameters

workspaceId
string
required

The unique identifier of the workspace to delete.

Headers

x-workspace-id
string
required

The workspace ID being accessed (should match the path parameter).

Description

This endpoint allows the authenticated owner of a workspace to delete it, subject to the following restrictions:

  • The workspace cannot be the master workspace.
  • The workspace cannot be the user’s only remaining workspace.
  • The requester must be the owner of the workspace (team members are not authorized).

If the workspace contains external members, their access is revoked before deletion. The associated workspace wallet is also deleted as part of this operation.

Response Fields

success
boolean

Indicates whether the workspace was successfully deleted.

DELETE
/
v1
/
api
/
workspaces
/
{workspaceId}
curl --request DELETE \
  --url https://api.trillet.ai/v1/api/workspaces/{workspaceId} \
  --header 'x-api-key: <api-key>' \
  --header 'x-workspace-id: <x-workspace-id>'
{
  "success": true
}

Path Parameters

workspaceId
string
required

The unique identifier of the workspace to delete.

Headers

x-workspace-id
string
required

The workspace ID being accessed (should match the path parameter).

Description

This endpoint allows the authenticated owner of a workspace to delete it, subject to the following restrictions:

  • The workspace cannot be the master workspace.
  • The workspace cannot be the user’s only remaining workspace.
  • The requester must be the owner of the workspace (team members are not authorized).

If the workspace contains external members, their access is revoked before deletion. The associated workspace wallet is also deleted as part of this operation.

Response Fields

success
boolean

Indicates whether the workspace was successfully deleted.