Skip to content

Documentation

Check an upload

GET/v1/drops/uploads/{id}Drops

Where an upload stands: the parts stored so far, so a client that lost track can send only the rest.

Parameters

ParameterTypeRequiredDescription
idstring, in the pathrequiredThe upload's id.

Example request

curl -s "https://snip.link/v1/drops/uploads/id" \
  -H "Authorization: Bearer $SNIP_KEY"

Example response

{
  "size": "1.2 GB",
  "status": "open"
}

Response fields

FieldTypeDescription
idstring
namestring
typestring
bytesinteger
sizestring
part_bytesintegerEvery part's size but the last.
partsintegerHow many parts the file goes up in, numbered from 1.
receivedinteger[]Part numbers stored so far.
statusopen | finishing | done
expires_atstringWhen an unfinished upload is cancelled.
link_idstring, nullThe file's link, once finished.

Errors

StatusMeaning
401The API key is missing, malformed or revoked.
404No link by that id or ending in this account.
429Either the key exceeded its requests-per-second limit (honor Retry-After), or a daily or plan quota is used up (details.reason).

Back to getting started