Skip to main content
GET
/
template
/
{id}
Get template by ID
curl --request GET \
  --url https://api.promptmetrics.dev/template/{id} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "_id": "<string>",
    "workspace_id": "<string>",
    "parent_id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "is_folder": true,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Query Parameters

version
number
env_label
enum<string>
Available options:
development,
staging,
production,
legacy,
canary

Response

Template details

data
object