For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • Get Started
    • Introduction
    • Quickstart
    • Authentication
  • API Reference
      • GETList Templates
      • POSTCreate Template
      • GETGet Template
      • DELDelete Template
      • PATCHUpdate Template
      • POSTClone Template
      • POSTFavorite Template
      • DELUnfavorite Template
  • Python SDK
    • Install
    • Usage
    • Errors
  • CLI
    • Overview
LogoLogo
API Referencetemplates

Unfavorite Template

DELETE
/api/v1/templates/:template_id/favorite
DELETE
/api/v1/templates/:template_id/favorite
$curl -X DELETE https://api.onepin.ai/api/v1/templates/template_id/favorite \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{}'
1{
2 "data": {},
3 "meta": {
4 "request_id": "a3f47c9e-8b2d-4f1a-9c3e-2d5b7f6a1e4c",
5 "timestamp": "2024-04-27T14:22:00Z"
6 }
7}

Remove a template favorite for the current user.

Deletion is intentionally non-enumerating: authenticated callers receive a successful empty response whether the row or template exists.

Was this page helpful?
Previous

List Voices

Next
Built with

Authentication

AuthorizationBearer
Clerk JWT token

Path parameters

template_idstringRequiredformat: "uuid"

Response

Successful Response
datamap from strings to any
metaobject

Errors

422
Unprocessable Entity Error