---
title: "Request a presigned url"
method: POST
path: "/calls/presign_recording_url"
---

# Request a presigned url

`POST /calls/presign_recording_url`

## Request

- Base URL: `https://public-api.leexi.ai/v1`
- URL: `https://public-api.leexi.ai/v1/calls/presign_recording_url`
- Auth: API key in header `Authorization`

Request a presigned URL to upload a call recording, before creating the call. To upload the file you must send a PUT request to the returned url, with the headers provided by the endpoint (single-part upload). This uploaded file automatically expires after 3 days unless used to create a call.

## Request body

- object
  - `extension` string, required: VIDEO: .mp4 .mkv .avi .webm .mov .wmv .mpg .mpeg .m4v AUDIO: .mp3 .wav .aac .flac .ogg .m4a .wma .opus .aiff .alac .amr .ape .dts .ac3 .mid .mp2 .mpc .ra .tta .vox

## Response `200`

200

- object
  - `data` object
    - `headers` object
      - `x-amz-tagging` string
    - `recording_s3_key` string
    - `url` string
  - `message` string
  - `success` boolean

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/leexi/apis/leexi-public-api.md) · [All operations](https://skmtc.dev/leexi/apis/leexi-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/leexi/apis/leexi-public-api/revisions/3d10e45c30f5?raw)
