---
title: "Generate Customer Document URL"
method: PUT
path: "/customers/{id}/documents/url"
---

# Generate Customer Document URL

`PUT /customers/{id}/documents/url`

Generate a document upload URL for a specific customer KYC.

## Path parameters

- `id` string, required

## Request body

- object
  - `fileName` string, required — Name of file to be uploaded.
  - `fileType` string, required — File MIME type e.g `image/png`

## Response `200`

Pre-signed upload URL generated successfully.

- object
  - `statusCode` integer — Status code of the response. `200` indicates a successful request.
  - `message` string — Human-readable description of the result.
  - `data` object — Response payload.
    - `url` string — URL value.
    - `key` string — Storage object key for the uploaded file.

## Other responses

- `400` — Validation error — fileName/fileType missing or invalid.
- `401` — Authentication failed — missing or invalid API key.
- `404` — No customer exists with the supplied id.

---

[API](https://skmtc.net/sudo/apis/sudo-sandbox-api.md) · [All operations](https://skmtc.net/sudo/apis/sudo-sandbox-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sudo/sudo-sandbox-api/versions/52be624fcb53/schema)
