Prepare one or more file uploads
Creates short-lived upload intents for direct-to-Blob transfer. Use each returned pathname, handleUploadUrl, and clientPayload with @vercel/blob/client. The clientPayload contains an intent-scoped secret for the Blob handshake, so the long-lived API credential is not sent to Blob. Poll statusUrl with the AnyFile bearer credential until the resulting file ID is available.
post/files
Request
- Base URL: https://www.useanyfile.com/api/v1
- URL: https://www.useanyfile.com/api/v1/files
- Auth: HTTP bearer
Request body
Response
Short-lived direct upload grants
Changes
No recorded changes to this operation across all 1 revision of this API.