Stream a card file inline
GET
/boards/{board}/cards/{card}/files/{file}/content
const url = 'https://projects.work.optidata.cloud/api/boards/1/cards/1/files/example/content';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://projects.work.optidata.cloud/api/boards/1/cards/1/files/example/content \ --header 'Authorization: Bearer <token>'Streams the file content from Optiwork Drive for inline display (for
example, images rendered in the card editor), without a
Content-Disposition: attachment header. The Content-Type is the
file’s own type as stored in Optiwork Drive. Same authorization as the
download.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”board
required
integer
Board id.
card
required
integer
Card id (must belong to the board).
file
required
string
File identifier (opaque string, not the numeric id).
Responses
Section titled “ Responses ”The file content, displayed inline.
Media type*/*
string format: binary
Missing, invalid or expired bearer passport.
Media typeapplication/json
object
error
string
Example
{ "error": "JWT passport exception: Missing bearer token in request"}Resource not found, or a nested resource does not belong to its parent in the path.
Media typeapplication/json
object
message
string
Example
{ "message": "Not found."}