PUT/u/{token}

Upload one part to a short upload link

Sends the bytes of one upload part to its short link (https://api.markdrop.in/u/<token>), which the MCP upload tools and short_links: true hand out instead of a long presigned URL. No sign-in: the link is the permission. It takes exactly the part's size, once, within 60 minutes; send it with its length (curl -T FILE <link>), never a piped body. For a one-part upload the SHA-256 is checked here too, and a mismatch stores nothing. Returns the part's number and ETag.

No token needed600 per minute per IP
Code samples and Try it

Path parameters

#
  • tokenstringRequired

Responses

#
  • 200Stored. Returns {ok, upload_id, part_number, part_count, size, etag}.
  • 400Fewer bytes than the part's size arrived.
  • 404No such link.
  • 409The link is in use by another request.
  • 410The link expired, was already used, or its upload ended.
  • 411No Content-Length: send the file with curl -T.
  • 413More bytes than the part's size.
  • 422A one-part upload whose bytes don't match its SHA-256.
  • 429Too many requests from your IP address. Wait the seconds in Retry-After.
Did this page help?