Skip to main content
DELETE
/
api
/
partner
/
v1
/
templates
/
{templateId}
curl --request DELETE \
  --url https://www.genviral.io/api/partner/v1/templates/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa \
  --header 'Authorization: Bearer <token>'
{
  "ok": true,
  "code": 200,
  "message": "Template deleted",
  "data": {
    "id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
    "deleted": true
  }
}
Deletes a template you own and can mutate in current scope.

Path Parameters

templateId
string
required
Template UUID.
curl --request DELETE \
  --url https://www.genviral.io/api/partner/v1/templates/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa \
  --header 'Authorization: Bearer <token>'
{
  "ok": true,
  "code": 200,
  "message": "Template deleted",
  "data": {
    "id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
    "deleted": true
  }
}

Error Responses

  • 400 missing_template_id - path param missing
  • 404 not_found - template not found in readable scope
  • 403 forbidden_template - template exists but mutation is not allowed in current scope
  • 401 - authentication failed (missing/invalid/revoked token)
  • 402 subscription_required - active Creator/Professional/Business plan required
  • 403 tier_not_allowed - Scheduler tier cannot use Partner API
  • 500 template_delete_failed - unexpected delete failure