Skip to main content
GET
/
v1
/
edits
/
templates
/
{template_id}
from retab import Retab

client = Retab()
template = client.edits.templates.get("edittplt_abc123")
print(template.name, template.field_count)
{
  "id": "edittplt_abc123",
  "name": "W-9 Form",
  "file": {
    "id": "file_6dd6eb00688ad8d1",
    "filename": "w9_empty.pdf",
    "mime_type": "application/pdf"
  },
  "form_fields": [
    {"key": "full_name", "description": "Full legal name", "type": "text", "bbox": {"left": 0.15, "top": 0.20, "width": 0.35, "height": 0.03, "page": 1}}
  ],
  "field_count": 1,
  "organization_id": "org_abc123",
  "created_at": "2024-03-15T10:30:00Z",
  "updated_at": "2024-03-15T10:30:00Z"
}
from retab import Retab

client = Retab()
template = client.edits.templates.get("edittplt_abc123")
print(template.name, template.field_count)
{
  "id": "edittplt_abc123",
  "name": "W-9 Form",
  "file": {
    "id": "file_6dd6eb00688ad8d1",
    "filename": "w9_empty.pdf",
    "mime_type": "application/pdf"
  },
  "form_fields": [
    {"key": "full_name", "description": "Full legal name", "type": "text", "bbox": {"left": 0.15, "top": 0.20, "width": 0.35, "height": 0.03, "page": 1}}
  ],
  "field_count": 1,
  "organization_id": "org_abc123",
  "created_at": "2024-03-15T10:30:00Z",
  "updated_at": "2024-03-15T10:30:00Z"
}

Path Parameters

template_id
string
required
The unique identifier of the template to retrieve.

Authorizations

Api-Key
string
header
required

Path Parameters

template_id
string
required

Query Parameters

access_token
string | null

Response

Successful Response

id
string
required

Unique identifier of the template.

name
string
required

Name of the template.

file
FileRef · object
required

File information for the empty PDF template.

created_at
string<date-time>
required

Timestamp of creation.

updated_at
string<date-time>
required

Timestamp of last update.

form_fields
FormField · object[]

Form fields attached to the template.

field_count
integer
default:0

Number of form fields in the template.

organization_id
string | null

Organization that owns this template.