---
title: "Process Template"
method: POST
path: "/voice/v1/sessions/{session_id}/process/template/{template_id}"
tags: ["sessions"]
---

# Process Template

`POST /voice/v1/sessions/{session_id}/process/template/{template_id}`

After a session ends, generate another document from it for the given template. Every template processed — via Create Session `templates` or this API — creates a document, listed in the session's documents. The call is asynchronous: it returns `202` with a new `document_id`; fetch it with Get Session `?document_id=...` or Get Document once its status is `success`.

## Path parameters

- `session_id` string, required
- `template_id` string, required

## Response `202`

Note generation started

- ProcessTemplateResponse
  - `session_id` string
  - `template_id` string
  - `document_id` string, nullable — ID of the document being generated. Poll Get Document until its status is `success`.
  - `status` string
  - `message` string

## Other responses

- `404` — Session not found

---

[API](https://skmtc.dev/eka/apis/eka-developer-apis.md) · [All operations](https://skmtc.dev/eka/apis/eka-developer-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/eka/eka-developer-apis/revisions/9ea23456f722/schema)
