Skip to main content
GET
/
template
/
tree
Get template tree
curl --request GET \
  --url https://api.promptmetrics.dev/template/tree \
  --header 'Authorization: Bearer <token>'
{
  "responseData": {
    "data": [
      {
        "id": "folder_1",
        "name": "Root Folder",
        "is_folder": true,
        "children": [
          {
            "id": "prompt_1",
            "name": "Sales Prompt",
            "is_folder": false,
            "children": []
          }
        ]
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

workspace_id
string
required

Response

200 - application/json

Template tree

responseData
object