Skip to content
LydieDevelopers
Menu

Restore a deleted teamspace

View as Markdown
POST/v1/teamspaces/{teamspaceId}/restore

Brings back a deleted teamspace and the pages that were moved to the trash with it. Pages trashed before the teamspace was deleted stay in the trash. Workspace owners and admins, and the teamspace's owners.

Request
curl -X POST "https://api.lydie.co/v1/teamspaces/01JCQ3V5MZ8G4ZK2X7T9R6N1PB/restore" \
  -H "Authorization: Bearer $LYDIE_TOKEN"

Path parameters

Response

200
{
  "id": "string",
  "workspaceId": "01JCQ3TZ0WJ8K4M2X7T9R6N1PA",
  "name": "Notes",
  "description": "string",
  "icon": null,
  "visibility": "open",
  "isDefault": false,
  "myRole": null,
  "createdAt": "2026-11-12T09:30:00.000Z",
  "updatedAt": "2026-11-12T09:30:00.000Z",
  "deletedAt": null
}

Errors use one envelope for every endpoint. See Errors and versions.