Restore a deleted teamspace
View as MarkdownPOST
/v1/teamspaces/{teamspaceId}/restoreBrings 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.
curl -X POST "https://api.lydie.co/v1/teamspaces/01JCQ3V5MZ8G4ZK2X7T9R6N1PB/restore" \
-H "Authorization: Bearer $LYDIE_TOKEN"Path parameters
Teamspace id.
Response
- namestring
- descriptionstring
- visibilitystring
One of
openclosedprivate - isDefaultboolean
One of
ownermember- createdAttimestamp
- updatedAttimestamp
{
"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.