Skip to main content
POST
/
files
/
uploads
/
{upload_id}
/
abort
curl -X POST https://api.u1.archetypeai.app/v0.5/files/uploads/upl_1mehceg8cn80qsekh46143whrx/abort \
  -H "Authorization: Bearer $ATAI_API_KEY"
(empty body)

Overview

Abort an in-progress direct-to-cloud upload. The server invalidates the upload, releases any reserved storage, and discards any checkpointed part_tokens. Aborting an already-completed upload returns 409. Use this endpoint when you can’t or don’t want to finish an upload — for example, when the source file is no longer available or the client crashed mid-upload.

Path Parameters

upload_id
string
required
Upload identifier returned by Initiate Upload

Response

The response body is empty when the abort succeeds.
curl -X POST https://api.u1.archetypeai.app/v0.5/files/uploads/upl_1mehceg8cn80qsekh46143whrx/abort \
  -H "Authorization: Bearer $ATAI_API_KEY"
(empty body)