---
title: "Finalise a chunked PPTX upload"
method: POST
path: "/api/v1/template-converter/finalprocess"
tags: ["Template Converter"]
---

# Finalise a chunked PPTX upload

`POST /api/v1/template-converter/finalprocess`

Concludes a chunked upload. `fileIdentifier` must match the
`requestIdentifier` used when uploading the chunks via
`POST /api/v1/template-converter/preprocess`.

The finalised file must be a `.pptx`, no larger than 200 MB, and no
more than 100 pages. Runs before the conversion's `callback_id`
exists — the `fileId` it returns is what you pass to
`POST /api/v1/template-converter/start`.

## Request body

- TemplateConverterFinalprocessRequest — Request body for `POST /api/v1/template-converter/finalprocess`.
  - `fileIdentifier` string, required — Identifier shared across all chunks of this upload. Must match the `requestIdentifier` sent with each chunk.
  - `fileName` string, required — Final filename. Must end in `.pptx`.

## Response `200`

File assembled.

- TemplateConverterFinalprocessResponse — Response body for `POST /api/v1/template-converter/finalprocess`. The payload is nested under `data`, but the envelope uses `status` and `log` rather than `success`, and the `data` fields are **camelCase**.
  - `status` 'success' — Upload status.
  - `log` string — Human-readable confirmation, for example "File uploaded successfully".
  - `data` object, required
    - `fileId` string, required — Identifier of the assembled file. Pass this as `fileId` to `POST /api/v1/template-converter/start`.
    - `s3Prefix` string — S3 key prefix of the assembled file.
    - `s3Bucket` string — S3 bucket of the assembled file.
    - `type` string — Detected file type.
    - `sizeKb` integer — File size in kilobytes.
    - `numOfPages` integer — Number of pages/slides.

## Other responses

- `400` — Generic client error. `error.code` is one of `BAD_REQUEST`, `INVALID_JSON`, `MISSING_REQUIRED_FIELD`, `MISSING_QUERY_PARAM`, `MISSING_CALLBACK_ID`, `MISSING_SLIDES_ARRAY`, `MISSING_PROMPT`, `MISSING_TEMPLATE_ID`, `MISSING_FILE_CONTENT`, `MISSING_SHARE_DETAILS`, `INVALID_TYPE`, `INVALID_DATA`, `INVALID_DATA_TYPE`, `INVALID_PAYLOAD`, `INVALID_REQUEST`, `API_REQUEST_FAILED`, or `FILE_UPLOAD_FAILED`.
- `401` — Caller did not present a valid Bearer token, or the token has expired. `error.code` is one of `UNAUTHORIZED`, `INVALID_API_KEY`, `EXPIRED_API_KEY`.
- `403` — Caller is authenticated but not allowed to perform this operation. `error.code` is `FORBIDDEN`.
- `404` — Requested endpoint or resource does not exist. `error.code` is one of `ENDPOINT_NOT_FOUND`, `RESOURCE_NOT_FOUND`, `NOT_FOUND`.
- `415` — Uploaded file's extension or MIME type is not accepted. `error.code` is `UNSUPPORTED_FILE_TYPE`.
- `422` — Request was well-formed but failed semantic validation. `error.code` is one of `INVALID_INPUT`, `UNPROCESSABLE_ENTITY`.
- `429` — Rate limit, usage limit, or gateway-level throttle exceeded. `error.code` is `TOO_MANY_REQUESTS` (gateway throttle), `RATE_LIMIT_EXCEEDED` (per-category), or `USAGE_LIMIT_EXCEEDED` (annual quota). Default limits (all configurable per company/key): - Gateway throttle (per API key) → `TOO_MANY_REQUESTS`: 10 requests/second sustained, 5 burst, 1,000 requests/day. - Per-company, per-category sliding 60-second window → `RATE_LIMIT_EXCEEDED`. The applicable category is given by each operation's `x-rate-limit-category`. - Annual usage quota → `USAGE_LIMIT_EXCEEDED`: 50,000 slide generations/year and 1,000,000 presentation downloads/year. `X-RateLimit-Limit`/`X-RateLimit-Remaining`/`X-RateLimit-Reset` are returned on successful (2xx) responses from rate-limited endpoints and, with `Retry-After`, on the per-category `RATE_LIMIT_EXCEEDED` 429 (the headers declared below). The gateway `TOO_MANY_REQUESTS` and annual `USAGE_LIMIT_EXCEEDED` responses do not carry them. Read `X-RateLimit-Remaining` to self-throttle and honour `Retry-After` on a 429.
- `500` — Unexpected server error. `error.code` is `INTERNAL_SERVER_ERROR`.
- `503` — Service is temporarily unavailable (downstream dependency unhealthy). `error.code` is `SERVICE_UNAVAILABLE` or `EXTERNAL_SERVICE_ERROR`.
- `504` — A downstream call timed out. `error.code` is `GATEWAY_TIMEOUT`.

---

[API](https://skmtc.net/prezent/apis/prezent-platform-api.md) · [All operations](https://skmtc.net/prezent/apis/prezent-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/prezent/prezent-platform-api/revisions/a01cb764a085/schema)
