Skip to main content
DELETE
/
v1
/
templates
/
{slug}
Soft-delete a template
curl --request DELETE \
  --url https://api.craftkit.dev/v1/templates/{slug} \
  --header 'Authorization: Bearer <token>'
{
  "id": "7c9f0b2e-2b1a-4f3d-9c8e-1a2b3c4d5e6f",
  "slug": "invoice",
  "deletedAt": "2026-06-21T10:00:00.000Z"
}

Authorizations

Authorization
string
header
required

Project API key (ck_live_… or ck_test_…) presented as a bearer token. For embed partner endpoints this is the partner secret key, which is the same credential type.

Path Parameters

slug
string
required

The template slug (canonical identifier within the project).

Response

Template soft-deleted.

id
string<uuid>
required
slug
string
required
deletedAt
string<date-time>
required