메인 콘텐츠로 건너뛰기
POST
/
admin
/
uploads
업로드 URL 발급
curl --request POST \
  --url https://api.headlesscommerce.io/v1/admin/uploads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "filename": "<string>",
  "content_type": "<string>",
  "content_length": 123
}
'
{
  "upload_url": "<string>",
  "public_url": "<string>",
  "expires_in": 123
}

인증

Authorization
string
header
필수

API Key. Example: sk_live_xxxxx or pk_live_xxxxx

본문

application/json
filename
string
필수
content_type
string
필수
content_length
integer

응답

200 - application/json

성공

upload_url
string

S3 Presigned Upload URL

public_url
string

URL accessible after upload completion

expires_in
integer

URL expiration time (seconds)