Search the gallery
supports a query and pagination.Response
Fork a template
copies a gallery diagram into your account as a new editable diagram and returns the newid, which you can then edit and
export.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Search public templates and fork them into your account.
curl "https://api.diagrams.so/api/v2/gallery?q=serverless&limit=20" \
-H "Authorization: Bearer dgz_live_YOUR_API_KEY"
{
"items": [
{
"id": "g_abc123",
"title": "Serverless image pipeline",
"cloud_provider": "aws",
"diagram_type": "architecture",
"category": "serverless",
"thumbnail_url": "https://..."
}
],
"next_cursor": "...",
"has_more": true
}
id, which you can then edit and
export.
curl -X POST https://api.diagrams.so/api/v2/gallery/g_abc123/fork \
-H "Authorization: Bearer dgz_live_YOUR_API_KEY"