File Uploads
Create a file upload
Use this API to initiate the process of uploading a file to your Notion workspace.
POST
TypeScript SDK
For a successful request, the response is a File Upload object with a
status of "pending".
If you pass application/octet-stream as the content_type along with a filename, the API treats the content type as unspecified and resolves it from the filename extension instead. The same applies to the Content-Type header returned by an external_url. The request fails if the extension isn’t a supported file type.
The maximum allowed length of filename string is 900 bytes, including any file extension included in the file name or inferred based on the content_type. However, we recommend using shorter names for performance and easier file management and lookup using the List file uploads API.Authorizations
Headers
The API version to use for this request. The latest version is 2026-03-11.
Available options:
2026-03-11 Body
application/json