Media
Upload a file
Uploads a JPG, PNG, GIF or WebP photo (up to 15 MB) or an MP4, MOV or WebM video (up to 100 MB). Send multipart/form-data with the file in a field named file, or the raw file as the body with its own Content-Type.
POST
https://traceeai.com/api/v1/mediaAuthorizations
AuthorizationstringheaderrequiredBearer <key>: a personal key (tracee loginor Settings → Personal keys), a workspace key, or an MCP client's OAuth token. See Authentication.
Headers
Tracee-WorkspacestringFor a personal key or OAuth token that reaches several workspaces: the workspace id to act on. Workspace keys don't need it.
uuid
Body
multipart/form-data, or the raw file
filefilerequiredaltTextstringup to 1,000 characters
Response
- 201The stored file.Media
idstringrequireduuid
urlstringrequiredPublic link to the file, for attaching and previewing.
uri
kindstringrequiredAvailable options:
imagevideomimeTypestringrequiredbytesinteger | nullrequirednamestring | nullrequiredaltTextstring | nullrequiredcreatedAtstringrequireddate-time