Skip to content

Fetch a published library asset

GET
/m/{id}
curl --request GET \
--url https://api.pixonaut.app/m/example

Operation ID: assets.published.get

The preview of a library asset its tenant made public, such as a product photo a template shows. No key is needed, and shared caches may keep it, for up to 24 hours after the asset is made private or deleted.

id
required
string

The file’s bytes

string
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

x-pixonaut-original-height
integer

The uploaded file’s height in pixels, when it is known. The bytes served may be a smaller preview.

x-pixonaut-original-width
integer

The uploaded file’s width in pixels, when it is known. The bytes served may be a smaller preview.

Not modified: the If-None-Match etag still holds

X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

No such public library asset (plain text)

X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: rate_limited

Media typeapplication/json
object
error
required
string

Examples

Examplerate_limited

rate_limited

{
"error": "rate_limited"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

The request failed unexpectedly.

Media typetext/plain
string
Allowed value: Internal Server Error
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Questions? Write to [email protected].

Status · Terms of service · Privacy policy · Subprocessors