Skip to content
Neattrim

Finish the upload and verify size and type

View as Markdown · Open in Claude Desktop

Endpoint
POST /v1/uploads/{id}/complete
Who can call it
An API key, or an OAuth token for an app.

Parameters

Parameters
NameInTypeRequiredDescription
idpathstringyes

Examples

Set NEATTRIM_API_KEY to your key, then copy an example. A tool that draws from your allowance reads an uploaded file: upload a sample file as in the quickstart and set VIDEO_FILE_ID (or AUDIO_FILE_ID, IMAGE_FILE_ID, SUBTITLES_FILE_ID) to its file_id. Any other id in an example, such as JOB_ID, is read from a variable of the same name.

curl -X POST "https://api.neattrim.com/v1/uploads/$UPLOAD_ID/complete" \
  -H "Authorization: Bearer $NEATTRIM_API_KEY"

Response

200
File
Response 200
NameTypeRequiredDescription
file_idstringyes
namestringyes
mime_typestringyes
size_bytesintegeryes
duration_secondsnumber or nullno
download_urlstringno
in_librarybooleanno
expires_atstringyes

Errors

401
UNAUTHENTICATED or INACTIVE
404
NOT_FOUND (also for other accounts' ids)
415
UNSUPPORTED_MEDIA
422
SOURCE_REFUSED, PART_CORRUPT, CONTENT_REFUSED, NOT_HEARD, TOO_SHORT or CHECKOUT_UNAVAILABLE
429
RATE_LIMITED

Every error code and its fix