Media
Media — Taskade REST API v1 reference: GET /medias/{mediaId}. Parameters, authentication, and response schema.
Summary of Endpoints
Get Media
Get media with id
Media
Media
Error description
GET /api/v1/medias/{mediaId} HTTP/1.1
Host: www.taskade.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"ok": true,
"item": {
"id": "abc123DEF456",
"space_id": "abc123DEF456",
"kind": "example"
}
}Delete Media
Delete a media
Successful Media deletion
Successful Media deletion
Error description
DELETE /api/v1/medias/{mediaId} HTTP/1.1
Host: www.taskade.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"ok": true
}Download Media
Download the binary content of a media file. Returns the file with the original Content-Type and Content-Disposition headers.
The SpaceMedia record ID.
Error description
Error description
GET /api/v1/medias/{mediaId}/download HTTP/1.1
Host: www.taskade.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Error description
{
"ok": false,
"message": "text",
"code": "text",
"statusMessage": "text"
}Upload Media to Space
Upload a media file to a space (root workspace or subspace / app). Send the file as the raw request body with the appropriate Content-Type header (e.g. image/png, application/pdf, application/octet-stream). Pass the original filename as the filename query parameter.
The space ID to upload media into (can be a root workspace or a subspace / app).
Original filename of the uploaded file (e.g. "photo.png").
Uploaded media file details
Uploaded media file details
Error description
POST /api/v1/medias/spaces/{spaceId}/upload?filename=text HTTP/1.1
Host: www.taskade.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"ok": true,
"item": {
"mediaId": "abc123DEF456",
"fileId": "abc123DEF456",
"kind": "example",
"downloadUrl": "https://example.com"
}
}Download Media from Space
Download all media files from a space as a ZIP archive. Each file is stored as {mediaId}/metadata.json (id, kind, name, mimetype, size) and {mediaId}/original (binary content).
The space (subspace / app) ID to download all media from.
Error description
Error description
GET /api/v1/medias/spaces/{spaceId}/download HTTP/1.1
Host: www.taskade.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Error description
{
"ok": false,
"message": "text",
"code": "text",
"statusMessage": "text"
}Last updated
Was this helpful?