public-api

Public Upload Init

建立新專案並取得檔案上傳用的 GCS signed URL。

支援 PDF、PPTX、PPT 格式。回傳 upload_url(PUT 方式上傳檔案)和 blob_path。 signed URL 有效期限 60 分鐘。上傳完成後必須呼叫 POST /upload/complete 觸發解析。

必填欄位:title(專案標題)、filename(檔案名稱,含副檔名)。 選填:description(專案描述)。

錯誤:

  • 400:不支援的檔案格式。
  • 403:使用者已達專案數上限。
post/api/v1/public/upload/init

Request

  • Base URL: https://api.slidemaster.tw (the document declares no server; this is the origin it was published from)
  • URL: https://api.slidemaster.tw/api/v1/public/upload/init
  • Auth: none declared

Headers

Authorizationstring nullable
X-API-Keystring nullable

Request body

titlestring required
filenamestring required
descriptionstring nullable

Response

Successful Response

project_idstring required
upload_urlstring required
blob_pathstring required
expires_in_minutesinteger
summarystring
next_suggestionstring

Changes

No recorded changes to this operation across all 1 revision of this API.