Hey community! 🔮
You can now access files that are on your board via our API, and also upload them. Here’s the documentation.
Moderator Note: Check out the following announcement for examples that upload a file from the client-side: Announcement: Uploading files to monday.com has just become easier :)
Reading Files using the API
The assets field represents a file that is uploaded to monday.com. You can query the title of the file, the URL, and also generate a public URL that can be used to download the file. Learn more here.
Uploading Files using the API
Our API also supports uploading files to a file column or update. To do this, you need to send your data as a multipart request (Content-Type: multipart/form-data) with the file in a variable. Here’s more info.
Do note that we have a separate endpoint for files (api.monday.com/v2/file). This endpoint has a higher size limit for requests (20MB, which will be increased to 500MB in the coming weeks).
An example query:
mutation ($file: File!) {
add_file_to_column (file: $file, item_id: 256180125, column_id: "files") {
id
}
}
Here’s what such a request would look like in Postman:
And here’s what that would look like in cURL:
curl \\
-F query='mutation ($file: File!) { add_file_to_column(file: $file, item_id: 118607269, column_id: "files") { id } }'\\
-F variables[file]=@/Users/diprobhowmik/screenshots/image.png\\
-H "Authorization: APIKEYHERE" \\
https://api.monday.com/v2/file

