cURL
curl --request POST \ --url https://api.peepal.dev/v1/templates \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "name": "<string>", "version": 2, "input_schema": {}, "extraction_schema": {}, "search_plan": {}, "scoring_rubric": {} } '
{ "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": {} }
curl -X POST "https://api.peepal.dev/v1/templates" \ -H "Content-Type: application/json" \ -H "x-api-key: YOUR_API_KEY" \ -d '{ "name": "Employee Verification", "version": 1, "description": "Standard employee background check", "input_schema": {}, "extraction_schema": {}, "search_plan": {}, "scoring_rubric": {} }'
{ "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": {}, "metadata": {} }
x >= 1
Show child attributes
Template created