Templates API
Create, list, update, and delete templates via the Crove REST API.
Templates API
Manage your document templates programmatically.
List templates
Retrieve all templates in your workspace.
GET /api/external/v1/templatesResponse
{
"data": [
{
"id": "tmpl_abc123",
"name": "Sales Contract",
"isPubliclyFillable": true,
"createdAt": "2026-01-15T10:30:00Z",
"updatedAt": "2026-02-01T14:20:00Z"
},
{
"id": "tmpl_def456",
"name": "NDA Template",
"isPubliclyFillable": false,
"createdAt": "2026-01-20T08:00:00Z",
"updatedAt": "2026-01-20T08:00:00Z"
}
]
}Example
curl -X GET https://crove.app/api/external/v1/templates \
-H "Authorization: Bearer YOUR_API_KEY"Get template
Retrieve details of a specific template.
GET /api/external/v1/templates/{id}Path parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Template ID |
Response
{
"data": {
"id": "tmpl_abc123",
"name": "Sales Contract",
"content": { },
"symbolTable": { },
"expressionTable": { },
"formSchema": { },
"isPubliclyFillable": true,
"createdAt": "2026-01-15T10:30:00Z",
"updatedAt": "2026-02-01T14:20:00Z"
}
}Example
curl -X GET https://crove.app/api/external/v1/templates/tmpl_abc123 \
-H "Authorization: Bearer YOUR_API_KEY"Create template
Create a new template in your workspace.
POST /api/external/v1/templatesRequest body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Template name |
Response
{
"data": {
"id": "tmpl_new789",
"name": "Invoice Template",
"createdAt": "2026-02-18T10:00:00Z",
"updatedAt": "2026-02-18T10:00:00Z"
}
}Example
curl -X POST https://crove.app/api/external/v1/templates \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "Invoice Template"}'Update template
Update a template's properties.
PATCH /api/external/v1/templates/{id}Path parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Template ID |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | New template name |
Example
curl -X PATCH https://crove.app/api/external/v1/templates/tmpl_abc123 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "Updated Sales Contract"}'Delete template
Permanently delete a template. This action cannot be undone.
DELETE /api/external/v1/templates/{id}Path parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Template ID |
Example
curl -X DELETE https://crove.app/api/external/v1/templates/tmpl_abc123 \
-H "Authorization: Bearer YOUR_API_KEY"Response
{
"data": {
"success": true,
"message": "Template deleted"
}
}Deleting a template does not delete documents that were already created from it. Existing documents remain intact.