-
Suggestion
-
Resolution: Unresolved
-
None
Right now it is not possible to fetch
page via API and access custom emoji image.
Lets say I want to render page and I call:
GET https://{instance-name}.atlassian.net/wiki/rest/api/content/{content-id}?expand=body.view,body.storage,body.editor2,body.editor,body.atlas_doc_format,body.dynamic,body.export_view,body.styled_view
Custom Emoji comes with such a data,
example from some storage formats:
<p><ac:emoticon ac:name="blue-star" ac:emoji-shortname=":Custom-Emoji:" ac:emoji-id="db293667-6684-4383-b378-7964a40f0429" ac:emoji-fallback=":Custom-Emoji:" /> </p><p />
{ "type": "emoji", "attrs": { "id": "db293667-6684-4383-b378-7964a40f0429", "text": ":Custom-Emoji:", "shortName": ":Custom-Emoji:" } },
There is no way to download image behind this emoji id.
Please consider to allow to fetch emoji, example:
GET https://api.media.atlassian.com/file/{emoji-id}/image?width=32&height=32
or include direct url to emoji in response.