This endpoint allows you to delete a specific studio template from your workspace using its unique ID.
https://api.orshot.com/v1/studio/templates/:templateId/deleteawait fetch("https://api.orshot.com/v1/studio/templates/123/delete", {
method: "DELETE",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer <ORSHOT_API_KEY>",
},
});| Parameter | Type | Required | Description |
|---|---|---|---|
templateId | Integer | Yes | The unique identifier of the studio template to delete |
If your workspace has embedded studio with a webhook_url configured, a template.delete event will be sent automatically when a template is deleted.
{
"event_type": "template.delete",
"template": {
"id": 123,
"name": "My Template",
"workspace_id": "890"
},
"timestamp": "2026-02-17T12:00:00.000Z",
"workspace_id": "890"
}{
"error": "Studio template with ID '123' not found in your workspace"
}{
"error": "'templateId' is missing in the request parameters"
}{
"error": "Access Forbidden: Invalid API Key"
}