Authentication & Scope
Requires thetemplates-write ability.
Request
Path Parameters
Body Parameters
Response
201 Created – The newly created template copy.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create a copy of an existing extraction template.
templates-write ability.
POST /extractions/templates/550e8400-e29b-41d4-a716-446655440000/duplicate HTTP/1.1
Host: api.raydocs.com
Authorization: Bearer <token>
Content-Type: application/json
{
"name": "Invoice Extraction (Copy)"
}
| Parameter | Type | Required | Description |
|---|---|---|---|
templateId | uuid | Yes | The template ID to duplicate |
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | No | Name for the new template. Defaults to original name with ” (Copy)” suffix |
201 Created – The newly created template copy.
{
"id": "660e8400-e29b-41d4-a716-446655440001",
"name": "Invoice Extraction (Copy)",
"description": "Extract key fields from invoices",
"schema_json": { ... },
"settings": { ... },
"workspace_id": 1,
"created_at": "2024-01-16T10:30:00Z",
"updated_at": "2024-01-16T10:30:00Z"
}
