DrawSQL now has a public API
Use your DrawSQL schemas in CI jobs, scripts, and your own tools with the new REST API. It gives you read-only access to diagrams you can view in your team.
Create a personal access token in Account → API tokens, then send it as a bearer token. Each token belongs to one team. Available on paid plans.
List your diagrams: browse by most recent activity, with cursor pagination
Read a diagram: get its details and links
Read its schema: get tables, columns, indexes, and relationships as JSON, with ETags to skip downloading unchanged schemas
Read the full diagram document: get JSON you can re-import, including canvas layout, groups, and sticky notes
Full reference and an OpenAPI 3.1 spec are in the API docs, part of the developer hub at drawsql.app/developers.