---
title: "POST /api/v1/onboarding.supplier.attachments.prepare"
method: POST
path: "/api/v1/onboarding.supplier.attachments.prepare"
tags: ["Supplier Onboarding"]
---

# POST /api/v1/onboarding.supplier.attachments.prepare

`POST /api/v1/onboarding.supplier.attachments.prepare`

## Request

- Base URL: `https://api.partly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.partly.com/api/v1/onboarding.supplier.attachments.prepare`
- Auth: none declared

Public endpoint: presigned PUT URLs for documents attached to a draft of the supplier form. At most 10 files per draft, 25 MB each, allowlisted file extensions; URLs expire after 300 seconds. Rate-limited per client IP.

## Request body

- OnboardingSupplierAttachmentsPrepareRequest
  - `draft_id` string, uuid, required: UUID value type
  - `files` OnboardingSupplierAttachmentPrepareFile[], required: Expandable array type
    - `filename` string, required: UTF-8 encoded string
    - `kind` union, required
      - 'customer_proof'
      - 'discount_table'
      - 'dms_form_keyloop_repgen'
      - 'dms_form_keyloop_integration'
      - 'dms_form_mgs'
      - 'account_form'
      - 'other'
    - `size_bytes` integer, required: 64-bit signed integer

## Response `200`

200 OK

- OnboardingSupplierAttachmentsPrepareResponse
  - `uploads` OnboardingSupplierPreparedUpload[], required: Expandable array type
    - `expires_at` string, date-time, required: DateTime at a given timezone (RFC3339 format)
    - `storage_key` string, required: UTF-8 encoded string
    - `upload_url` string, required: UTF-8 encoded string

## Other responses

- `default`: Error cases

## Changes

- **2026-10-14** `dcced4ac6ce2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/partly/apis/core-server/changes/api/v1/onboarding.supplier.attachments.prepare/post.md)

---

[API](https://skmtc.dev/partly/apis/core-server.md) · [All operations](https://skmtc.dev/partly/apis/core-server/llms.txt) · [OpenAPI document](https://skmtc.dev/partly/apis/core-server/revisions/19dd5c84162b?raw)
