curl --request GET \
--url "${UNSTRUCTURED_API_URL}/api/v1/templates/" \
--header "unstructured-api-key: ${UNSTRUCTURED_API_KEY}"
import os
from unstructured_client import UnstructuredClient
from unstructured_client.models.operations import ListTemplatesRequest
client = UnstructuredClient(
api_key_auth=os.getenv("UNSTRUCTURED_API_KEY"),
server_url=os.getenv("UNSTRUCTURED_API_URL"),
)
response = client.templates.list_templates(
request=ListTemplatesRequest()
)
print(response)
import asyncio
import os
from unstructured_client import UnstructuredClient
from unstructured_client.models.operations import ListTemplatesRequest
async def list_templates():
client = UnstructuredClient(
api_key_auth=os.getenv("UNSTRUCTURED_API_KEY"),
server_url=os.getenv("UNSTRUCTURED_API_URL"),
)
response = await client.templates.list_templates_async(
request=ListTemplatesRequest()
)
print(response)
asyncio.run(list_templates())
[
{
"id": "t1a2b3c4-5d6e-7f8a-9b0c-1d2e3f4a5b6c",
"name": "Basic ETL",
"description": "A simple extract, transform, and load workflow template.",
"type": "etl",
"created_at": "2026-01-01T00:00:00Z",
"tags": ["etl", "basic"],
"is_custom": false
}
]
Template
List templates
Retrieve a list of available templates with their metadata.
GET
/
api
/
v1
/
templates
/
curl --request GET \
--url "${UNSTRUCTURED_API_URL}/api/v1/templates/" \
--header "unstructured-api-key: ${UNSTRUCTURED_API_KEY}"
import os
from unstructured_client import UnstructuredClient
from unstructured_client.models.operations import ListTemplatesRequest
client = UnstructuredClient(
api_key_auth=os.getenv("UNSTRUCTURED_API_KEY"),
server_url=os.getenv("UNSTRUCTURED_API_URL"),
)
response = client.templates.list_templates(
request=ListTemplatesRequest()
)
print(response)
import asyncio
import os
from unstructured_client import UnstructuredClient
from unstructured_client.models.operations import ListTemplatesRequest
async def list_templates():
client = UnstructuredClient(
api_key_auth=os.getenv("UNSTRUCTURED_API_KEY"),
server_url=os.getenv("UNSTRUCTURED_API_URL"),
)
response = await client.templates.list_templates_async(
request=ListTemplatesRequest()
)
print(response)
asyncio.run(list_templates())
[
{
"id": "t1a2b3c4-5d6e-7f8a-9b0c-1d2e3f4a5b6c",
"name": "Basic ETL",
"description": "A simple extract, transform, and load workflow template.",
"type": "etl",
"created_at": "2026-01-01T00:00:00Z",
"tags": ["etl", "basic"],
"is_custom": false
}
]
Response
string
required
Unique identifier for the template.
string
required
Template name.
string
required
Template type category.
string
required
ISO 8601 timestamp when the template was created.
boolean
required
Whether this is a user-created template (
true) or a platform-provided template (false).string
Template description.
array
Classification labels for discovery.
curl --request GET \
--url "${UNSTRUCTURED_API_URL}/api/v1/templates/" \
--header "unstructured-api-key: ${UNSTRUCTURED_API_KEY}"
import os
from unstructured_client import UnstructuredClient
from unstructured_client.models.operations import ListTemplatesRequest
client = UnstructuredClient(
api_key_auth=os.getenv("UNSTRUCTURED_API_KEY"),
server_url=os.getenv("UNSTRUCTURED_API_URL"),
)
response = client.templates.list_templates(
request=ListTemplatesRequest()
)
print(response)
import asyncio
import os
from unstructured_client import UnstructuredClient
from unstructured_client.models.operations import ListTemplatesRequest
async def list_templates():
client = UnstructuredClient(
api_key_auth=os.getenv("UNSTRUCTURED_API_KEY"),
server_url=os.getenv("UNSTRUCTURED_API_URL"),
)
response = await client.templates.list_templates_async(
request=ListTemplatesRequest()
)
print(response)
asyncio.run(list_templates())
[
{
"id": "t1a2b3c4-5d6e-7f8a-9b0c-1d2e3f4a5b6c",
"name": "Basic ETL",
"description": "A simple extract, transform, and load workflow template.",
"type": "etl",
"created_at": "2026-01-01T00:00:00Z",
"tags": ["etl", "basic"],
"is_custom": false
}
]
Was this page helpful?
⌘I

