Tracira
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
/api/media/{key}

Authorization

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/string"
Empty
{  "error": "string",  "code": "string",  "fields": {    "property1": "string",    "property2": "string"  }}
{  "error": "string",  "code": "string",  "fields": {    "property1": "string",    "property2": "string"  }}
{  "error": "string",  "code": "string",  "fields": {    "property1": "string",    "property2": "string"  }}