Media
Add media from a link
Copies an image from a public https link into the library, converted to a format every network takes. Videos stay links.
POST
https://traceeai.com/api/v1/media/from-urlCLI:tracee media from-url·MCP:mediaaction add
Authorizations
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
application/json
urlstringrequiredA public https link to an image or video.
uriup to 2,000 characters
altTextstringup to 1,000 characters
namestringup to 200 characters
Response
- 201The stored media.Media
idstringrequireduuid
urlstringrequiredPublic link to the file, for attaching and previewing.
uri
kindstringrequiredAvailable options:
imagevideomimeTypestringrequiredbytesinteger | nullrequirednamestring | nullrequiredaltTextstring | nullrequiredcreatedAtstringrequireddate-time