---
title: "Normalize Duration"
method: POST
path: "/normalize/duration"
tags: ["Normalization"]
---

# Normalize Duration

`POST /normalize/duration`

## Request

- Base URL: `https://us.app.zuva.ai/api/v2`
- URL: `https://us.app.zuva.ai/api/v2/normalize/duration`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/zuva/apis/zuva-docai/docs/normalize/duration/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a new duration normalize request for a string, returning a request ID and the normalized duration.
Normalize durations found within a string, returning an array of duration values and their units.

## Request body

- NormalizeDurationRequestBody
  - `text` string, required

## Response `200`

See response body for status of request.

- NormalizeDurationResponseBody
  - `request_id` string, required
  - `text` string, required
  - `sha-256` string, required
  - `duration` DurationValues[], required
    - `unit` string, required
    - `value` integer, required

## Other responses

- `400`: Malformed request, missing/invalid body.

## Changes

- **2022-12-13** `7cace20deba7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/zuva/apis/zuva-docai/changes/normalize/duration/post.md)

---

[API](https://skmtc.dev/zuva/apis/zuva-docai.md) - [All operations](https://skmtc.dev/zuva/apis/zuva-docai/llms.txt) - [OpenAPI document](https://skmtc.dev/zuva/apis/zuva-docai/revisions/7397ad071d55?raw)
