API call to svg file returns path

Hi,
I uploaded a svg to the assets folder and call it through the api with the image and parameters request. In comparison to jpeg files the svg request returns a path to the src (like http://localhost/..../uploads/...myfile.svg). Shouldn’t this output the svg file visibly?

Many thanx in advance

Did you use the endpoint /api/cockpit/image?

If so, all images (jpg and svg etc.) should be returned as string containing the path. If you send the output parameter "o": true, the image should be printed. See also:

The output option is missing in the official docs (scroll to bottom):
https://getcockpit.com/documentation/api/cockpit

But it is listed in the inofficial docs:
https://zeraton.gitlab.io/cockpit-docs/guide/api/resources.html#get-thumbnail