Skip to main content
The same reference as plain Markdown, for coding agents: https://diagramkit.ai/docs/api.md.
Sequence diagram: your app posts a prompt to the diagramkit API, gets a job id, waits until the status is succeeded, then downloads the diagram as PNG, SVG, PDF, MP4 or GIF.

Send a prompt, wait for the agent to finish, then download the file.

Before you start

  • The base URL is https://app.diagramkit.ai/api/v1. Requests and responses are JSON, except downloads, which are the file itself.
  • Create a key at https://app.diagramkit.ai/settings/api and send it on every request, downloads included: Authorization: Bearer aid_…. A key is shown once; store it as a secret and revoke it there if it leaks.
  • Call the API from your server or a script. Browsers are not allowed to call it from other sites, and a key in a web page is a leaked key.
  • Diagrams made with the API appear in your diagrams in the app and use your brand kit and writing style.