API referenceMedia
Redirect to a signed media URL
Accepts either the browser session cookie or `x-api-key`. The `key` path parameter is the full media key path, for example `workspaceId/logId/0-file.pdf`.
get
https://www.tracira.com/api/media/{key}better-auth.session_token<token>
Browser session cookie used by logged-in Tracira users. Secure-prefixed variants may also be used by the browser.
In: cookie
Path Parameters
key*string
Query Parameters
download?"1"
Use 1 to request attachment disposition instead of inline preview.
Value in
- "1"
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/api/media/1f4a8c60-92d7-4b3e-8a51-c27e6d90f3b2/uploads/9d0b3c17-5e42-4a86-b1f7-8c25e0d94a63.png"Empty