Skip to main content
Filter out deprecated templates by checking the deprecated_at field is null.
GET
/
v1
/
templates
List templates
curl --request GET \
  --url https://api.peepal.dev/v1/templates \
  --header 'x-api-key: <api-key>'
{
  "data": [
    {
      "id": "<string>",
      "name": "<string>",
      "version": 123,
      "description": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "deprecated_at": "2023-11-07T05:31:56Z",
      "input_schema": {},
      "extraction_schema": {},
      "search_plan": {},
      "scoring_rubric": {},
      "metadata": {}
    }
  ],
  "next_cursor": "<string>"
}
Retrieve a paginated list of all templates in your project, including both active and deprecated templates.
curl -X GET "https://api.peepal.dev/v1/templates?limit=25" \
  -H "x-api-key: YOUR_API_KEY"
{
  "data": [
    {
      "id": "tpl_01ARZ3NDEKTSV4RRFFQ69G5FAV",
      "name": "Employee Verification",
      "version": 1,
      "description": "Standard employee background check",
      "created_at": "2025-12-31T10:00:00Z",
      "deprecated_at": null,
      "input_schema": {},
      "extraction_schema": {},
      "search_plan": {},
      "scoring_rubric": {}
    }
  ],
  "next_cursor": null
}

Authorizations

x-api-key
string
header
required

Query Parameters

limit
integer
default:25
Required range: 1 <= x <= 100
cursor
string

Response

Paginated templates

data
object[]
required
next_cursor
string | null
required