# Mermaid diagram in postman doc

**URL:** <https://community.postman.com/t/mermaid-diagram-in-postman-doc/13502>\
**Category:** Help Hub\
**Tags:** api-documentation, markdown\
**Created:** [June 18, 2020, 2:16pm UTC](https://community.postman.com/t/mermaid-diagram-in-postman-doc/13502 "2020-06-18T14:16:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![olga](https://avatars.discourse-cdn.com/v4/letter/o/57b2e6/32.png) [@olga](https://community.postman.com/u/olga)\
**Post date:** [June 18, 2020, 2:16pm UTC](https://community.postman.com/t/mermaid-diagram-in-postman-doc/13502/1 "2020-06-18T14:16:30Z")

</div>

Hi,

I was wondering if it was possible to use mermaid, markdown-like script language, to generate diagram and charts in an API documentation ?  
Or if not with mermaid , is there any other way to import charts into the documentation : sequence or state diagrams for instance.  
Thank you for your help,

---

<div class="post-metadata">

**Author:** ![kaygeee](https://avatars.discourse-cdn.com/v4/letter/k/9e8a1a/32.png) [@kaygeee](https://community.postman.com/u/kaygeee)\
**Post date:** [July 14, 2020, 7:07pm UTC](https://community.postman.com/t/mermaid-diagram-in-postman-doc/13502/2 "2020-07-14T19:07:32Z")

</div>

This would indeed be very interesting!

---

<div class="post-metadata">

**Author:** ![nykolyszyn](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/nykolyszyn/32/5373_2.png) [@nykolyszyn](https://community.postman.com/u/nykolyszyn)\
**Post date:** [August 25, 2020, 11:54pm UTC](https://community.postman.com/t/mermaid-diagram-in-postman-doc/13502/3 "2020-08-25T23:54:13Z")

</div>

I was looking for the same thing. +1

---

<div class="post-metadata">

**Author:** ![allenheltondev](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/allenheltondev/32/31738_2.png) [@allenheltondev](https://community.postman.com/u/allenheltondev)\
**Post date:** [August 26, 2020, 11:43am UTC](https://community.postman.com/t/mermaid-diagram-in-postman-doc/13502/4 "2020-08-26T11:43:05Z")

</div>

One option is to export your diagrams to an image, host it in something like an s3 bucket, and use the markdown syntax to render an image

```auto
![Alt Text](link to image)
```

---

<div class="post-metadata">

**Author:** ![swapnilogale](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@swapnilogale](https://community.postman.com/u/swapnilogale)\
**Post date:** [September 2, 2020, 11:22am UTC](https://community.postman.com/t/mermaid-diagram-in-postman-doc/13502/5 "2020-09-02T11:22:58Z")

</div>

Hi @olga,

If you are familiar with Markdown, Postman supports GitHub flavoured Markdown, so you can create images using mermaid, host it online and then link to the image from Postman docs.

For more information, see these links:

[Using images in docs](https://learning.postman.com/docs/publishing-your-api/authoring-your-documentation/#using-images-in-docs)  
[Include details in your doc](https://learning.postman.com/docs/publishing-your-api/documenting-your-api/#including-detail-in-your-docs)

Also, check out Mermaid docs for hosting mermaid images online.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 12, 2024, 12:57pm UTC](https://community.postman.com/t/mermaid-diagram-in-postman-doc/13502/6 "2024-12-12T12:57:18Z")

</div>

Closed on December 12, 2024, 12:57pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
