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#
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | required | The attachment's id (att_…). · e.g. att_01K7DQ6C8E0G2J4L6N8Q0S2U4W |
exp | query | string | required | When the link expires (Unix seconds). · e.g. 1791824400 |
sig | query | string | required | The 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.