LoguDocs
Open Logu

Attachments · signedAttachment

Image by signed link

GET /a/{id}

An attachment's image without credentials, for <img> tags, notifications and Telegram: the url of each attachment in an ask or event. The signature covers the id and the expiry; the link works for at least an hour, then answers 403 (read the ask or event again for a fresh one).

Who may call it
Anyone (no credentials)
Server
https://api.logu.dev

Parameters#

NameInTypeRequiredDescription
idpathstringrequiredThe attachment's id (att_…). · e.g. att_01K7DQ6C8E0G2J4L6N8Q0S2U4W
expquerystringrequiredWhen the link expires (Unix seconds). · e.g. 1791824400
sigquerystringrequiredThe link's signature. · e.g. q8Hk2mP0vX3nR5tY7wZ9bD1fG3jL5nQ7sU9wY1aC3eE

Example#

curl -s "https://api.logu.dev/a/att_01K7DQ6C8E0G2J4L6N8Q0S2U4W?exp=1791824400&sig=q8Hk2mP0vX3nR5tY7wZ9bD1fG3jL5nQ7sU9wY1aC3eE"

Responses#

200

The image (inline, never sniffed, cached privately until the link expires).

Content type image/png.

Content type image/jpeg.

Content type image/webp.

Content type image/gif.

Errors#

Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.

StatusCodeMeaning
403forbiddenThe caller is authenticated but may not do this (wrong role, or an API key on a human-only endpoint).
404not_foundNo such route, or the resource doesn't exist in your workspace.