Skip to main content
POST
Generate a presigned upload URL

Yetkilendirmeler

Authorization
string
header
gerekli

The access token received from the authorization server in the OAuth 2.0 flow.

Başlıklar

X-Tenant
number
gerekli

Tenant identifier. Send the Tenant ID in the X-Tenant header to scope API requests to a specific tenant.

Gövde

application/json
filename
string
gerekli

The original file name (used to derive the storage extension).

Maximum string length: 255
content_type
enum<string>
gerekli

The content type the client will upload with (must match the PUT request).

Mevcut seçenekler:
image/jpeg,
image/png,
image/webp,
image/heic,
image/heif,
image/gif,
application/pdf,
application/msword,
application/vnd.openxmlformats-officedocument.wordprocessingml.document,
application/vnd.ms-excel,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
audio/mpeg,
audio/mp4,
audio/aac,
audio/ogg,
audio/wav,
audio/webm,
video/mp4,
video/quicktime,
video/webm,
video/3gpp,
video/x-matroska,
video/mpeg
Maximum string length: 255
size
integer
gerekli

The declared file size in bytes.

Gerekli aralık: 1 <= x <= 52428800
type
enum<string>
gerekli

The file type.

Mevcut seçenekler:
form_image,
audio,
catalog,
certificate,
image,
video,
other,
before_after
fileable_type
enum<string>
gerekli

The fileable type (customer, lead, user, tenant, chat_log, ai_report, treatment, or treatment_group).

Mevcut seçenekler:
customer,
lead,
user,
tenant,
chat_log,
ai_report,
treatment,
treatment_group
fileable_id
integer
gerekli

The fileable id.

Gerekli aralık: x >= 1
description
string | null

The file description.

Maximum string length: 1000
group_id
string<uuid> | null

Optional group id shared by files uploaded together. Omit it to presign a standalone file; reuse the same uuid across a batch to group those files.

Yanıt

success
string
gerekli
data
object
gerekli