Skip to content
Connect an agent

HTTP API

API reference

Check, render, and describe diagrams written in a small line-oriented language (flow, sequence, schema, git, gantt, class, state, timeline, journey, mindmap, treemap, pie, quadrant, layers, c4, matrix, sankey, xychart, tree, swimlane, requirement, block, packet, kanban, radar, usecase, venn, fishbone, wardley). Built for AI agents: every error carries a line, column, and fix hint, and the language reference is served as data. The same operations are available as MCP tools.

TL;DR

QuestionAnswer
What format?JSON in, JSON out. Every body is described by a schema, and each endpoint page links the ones it uses.
Where is the live spec?GET /openapi.json returns OpenAPI 3.1; GET /docs serves an interactive page.
What does an error look like?One envelope for every failure; see "Error envelope". A diagram with mistakes is a normal result from the validate route and a 422 from the render and outline routes.
Where does it run?The hosted API is at https://api.plotwork.dev, and every path below is relative to that address. Calling the drawing and checking routes needs an API key and the Pro plan.
Which endpoints draw diagrams?The ones under /v1: each serves a tool of the tool reference, and its page names the tool.

Endpoints

395 endpoints, each with a page of its own. They are grouped by what they do.

Diagrams

MethodPathWhat it does
POST/v1/diagrams/drawCheck, describe, and draw a diagram.
POST/v1/diagrams/editChange diagram source with small typed operations.
POST/v1/diagrams/convert-mermaidConvert one Mermaid diagram.
POST/v1/diagrams/validateCheck diagram source.
POST/v1/diagrams/renderRender diagram source to SVG.
POST/v1/diagrams/outlineDescribe diagram source as text.
POST/v1/diagrams/readRead the source back out of a Plotwork SVG.
POST/v1/diagrams/compareSay what changed between two versions of a diagram.
POST/v1/diagrams/suggestChoose the kind of diagram for a request.
POST/v1/diagrams/embedWrite a snippet that shows a picture with the viewer.
POST/v1/importTurn a file of another format into a diagram.

Icons

MethodPathWhat it does
POST/v1/icons/mapChoose icons for many names at once.
GET/v1/iconsFind bundled icon names.

Markdown

MethodPathWhat it does
POST/v1/markdown/syncTurn a document's diagram fences into pictures.
POST/v1/markdown/planFind the sections of a document a picture would help.

Patterns

MethodPathWhat it does
POST/v1/patterns/findFind a ready-made architecture diagram.
POST/v1/patterns/getRead a pattern filled for a flavour.
POST/v1/patterns/drawFill a pattern and draw it.
POST/v1/patterns/checkCheck a pattern file.

Vocabulary

MethodPathWhat it does
GET/v1/vocabularyGet the diagram language reference.

Auth

MethodPathWhat it does
POST/auth/codeEmail a sign-in code.
POST/auth/verifySign in with a code.
POST/auth/two-factorFinish signing in with your authenticator code.
POST/auth/logoutSign out.
POST/auth/sso/discoverAsk whether an address signs in with single sign-on.
POST/auth/sso/startStart signing in through an organisation's identity provider.
GET/auth/sso/callbackFinish signing in through an identity provider.
GET/auth/sso/saml/{org}/metadataRead an organisation's SAML service provider metadata.
POST/auth/sso/saml/{org}/acsFinish signing in through a SAML identity provider.
GET/sso/oidc/{org}/.well-known/openid-configurationRead Plotwork's issuer document for an organisation.
GET/sso/oidc/{org}/jwks.jsonRead the public keys of Plotwork's issuer for an organisation.
GET/connectors/oidc/.well-known/openid-configurationRead Plotwork's issuer document for the Azure DevOps connector.
GET/connectors/oidc/jwks.jsonRead the public keys of Plotwork's issuer for the Azure DevOps connector.
POST/oidc/tokenExchange a CI job's ID token for a Plotwork token.
GET/storage/oidc/{org}/.well-known/openid-configurationRead Plotwork's issuer document for an organisation's buckets.
GET/storage/oidc/{org}/jwks.jsonRead the public keys of Plotwork's issuer for an organisation's buckets.

Keys

MethodPathWhat it does
GET/user/meRead the signed-in account.
GET/user/api-keysList your API keys.
POST/user/api-keysCreate an API key.
POST/user/api-keys/{id}/revealReveal an API key.
DELETE/user/api-keys/{id}Revoke an API key.
GET/user/usageRead the account's usage.
PATCH/user/profileChange the name your account is shown by.
POST/user/email/changeAsk to move your account to another email address.
POST/user/email/verifyMove your account to the new email address.
POST/user/sessions/end-othersSign out of every other device.
POST/user/deleteDelete your account.
GET/user/securityRead your account's sign-in security.
POST/user/two-factor/setupStart setting up an authenticator app.
POST/user/two-factor/enableTurn on two-step sign-in.
POST/user/two-factor/disableTurn off two-step sign-in.
POST/user/two-factor/recovery-codesMake new recovery codes.
GET/user/agentsList the agents on your account.
POST/user/agents/{id}/checkCheck that one of your agents can work.
GET/v1/meRead who a key or an app's token acts as.

Connections

MethodPathWhat it does
POST/user/mcp/approveApprove a request to connect an agent.
POST/user/mcp/denyDeny a request to connect an agent.
GET/user/mcp/requestCheck whether a sign-in link can still be answered.
GET/user/mcp/accountsList the accounts you can connect an agent as.
GET/user/mcp/connectionsList the agents you have connected.
DELETE/user/mcp/connections/{keyId}Disconnect an agent.
GET/user/apps/requestCheck whether an app's sign-in link can still be answered.
GET/user/apps/accountsList the accounts you can connect an app as.
POST/user/apps/approveApprove an app that signs in with Plotwork.
POST/user/apps/denyDeny an app that signs in with Plotwork.
GET/user/apps/registeredList the apps you registered.
POST/user/apps/registeredRegister an app.
PATCH/user/apps/registered/{id}Change an app you registered.
DELETE/user/apps/registered/{id}Delete an app you registered.
POST/user/apps/registered/{id}/secretMake a new client secret for an app you registered.
GET/user/apps/connectionsList the apps you connected.
DELETE/user/apps/connections/{id}Disconnect an app.
GET/.well-known/oauth-authorization-serverRead the authorization server metadata.
GET/oauth/authorizeStart Sign in with Plotwork.
POST/oauth/tokenTrade a code or a refresh token for tokens.
POST/oauth/revokeRevoke a token.

Hosting

MethodPathWhat it does
POST/v1/diagrams/publishPublish a diagram and get a link.
GET/user/diagramsList your hosted diagrams.
POST/user/diagramsCreate a diagram in the editor.
GET/user/diagrams/series/{seriesId}List the diagrams of one of your series.
POST/user/diagrams/series/{seriesId}/combineCombine one of your series into one diagram.
PATCH/user/diagrams/{id}File a hosted diagram in a folder.
DELETE/user/diagrams/{id}Delete a hosted diagram.
PUT/user/diagrams/{id}/lockLock a hosted diagram.
DELETE/user/diagrams/{id}/lockUnlock a hosted diagram.
PUT/user/diagrams/{id}/sourceSave edited source over a hosted diagram.
GET/user/diagrams/{id}/versionsList a hosted diagram's previous versions.
POST/user/diagrams/{id}/versions/{versionId}/restoreRestore a previous version of a hosted diagram.
POST/user/stable-linksPoint a stable link at one of your diagrams.
DELETE/user/stable-links/{id}Delete a stable link.
GET/oembedDescribe a diagram link for an embedder (oEmbed).
GET/v1/libraryList the diagrams a key or an app's token can see.
GET/v1/library/{id}.svgRead one picture of the library.
GET/v1/library/{id}.pngRead one picture of the library as a PNG.

Organisations

MethodPathWhat it does
GET/v1/boardsList the live whiteboards an agent or key may open.
GET/v1/boards/{board}Open a live whiteboard as an agent.
GET/v1/boards/{board}/tabs/{tab}Read one tab of a live whiteboard.
POST/v1/boards/{board}/tabs/{tab}/editsChange one tab of a live whiteboard.
POST/v1/boards/{board}/importsImport a diagram into a live whiteboard.
POST/v1/boards/{board}/tabs/{tab}/saveSave a whiteboard tab to the organisation's library.
POST/v1/boards/{board}/tabsAdd a tab to a live whiteboard.
GET/v1/boards/{board}/tabs/{tab}/revisionsList a tab's revisions as an agent.
POST/v1/boards/{board}/tabs/{tab}/revisionsMake a revision of a tab as an agent.
GET/v1/boards/{board}/tabs/{tab}/revisions/{revision}/compareCompare a revision with main as an agent.
POST/v1/boards/{board}/tabs/{tab}/revisions/{revision}/merge-requestAsk for a revision to be merged, as an agent.
POST/v1/boards/{board}/listenersOpen a push stream of your person's messages on a board.
GET/v1/boards/{board}/messages/waitWait for a message from your person on a board.
POST/v1/boards/{board}/messages/{message}/repliesAnswer your person's message on a board.
GET/orgs/{org}/githubThe organisation's GitHub App card.
POST/github/authorizeProve which GitHub App installations you can reach.
POST/orgs/{org}/github/installationsLink a GitHub App installation.
DELETE/orgs/{org}/github/installations/{id}Unlink a GitHub App installation.
POST/orgs/{org}/github/installations/{id}/syncRead a page of an installation's repositories.
GET/orgs/{org}/github/repositoriesFind the organisation's repositories by name.
GET/orgs/{org}/github/repositories/{id}/workflowsA repository's workflow files and deployment environments.
POST/orgs/{org}/github/repositories/{id}/detectScan a repository for formats Plotwork draws from.
POST/orgs/{org}/github/repositories/{id}/enableTurn on diagrams in a repository with one pull request.
POST/orgs/{org}/github/repositories/{id}/trustRegister CI for a repository without changing it.
POST/github/webhookReceive a GitHub App event. Called by GitHub, not by clients.
POST/integrations/hcp-terraform/run-task/{org}Receive a run of the HCP Terraform run task. Called by HCP Terraform, not by clients.
GET/orgsList your organisations.
POST/orgsCreate an organisation.
GET/orgs/{org}Read an organisation.
PATCH/orgs/{org}Rename an organisation.
DELETE/orgs/{org}Delete an organisation.
GET/orgs/{org}/membersList an organisation's members.
PATCH/orgs/{org}/members/{userId}Change a member's role.
DELETE/orgs/{org}/members/{userId}Remove a member, or leave.
GET/orgs/{org}/invitesList an organisation's pending invitations.
POST/orgs/{org}/invitesInvite an address to an organisation.
DELETE/orgs/{org}/invites/{id}Revoke an invitation.
POST/orgs/invites/acceptAccept an invitation.
GET/orgs/{org}/diagrams/series/{seriesId}List the diagrams of one series.
GET/orgs/{org}/diagramsList an organisation's diagrams.
POST/orgs/{org}/diagramsPublish a diagram to an organisation.
GET/orgs/{org}/diagrams/{id}/svgDownload an organisation diagram's SVG.
PATCH/orgs/{org}/diagrams/{id}File or rename an organisation diagram.
DELETE/orgs/{org}/diagrams/{id}Delete an organisation diagram.
POST/orgs/{org}/diagrams/{id}/copyCopy an organisation diagram.
PUT/orgs/{org}/diagrams/{id}/lockLock an organisation diagram.
DELETE/orgs/{org}/diagrams/{id}/lockUnlock an organisation diagram.
POST/orgs/{org}/diagrams/series/{seriesId}/combineCombine a series into one diagram.
PUT/orgs/{org}/diagrams/{id}/sourceSave edited source over an organisation diagram.
GET/orgs/{org}/diagrams/{id}/versionsList an organisation diagram's previous versions.
POST/orgs/{org}/diagrams/{id}/versions/{versionId}/restoreRestore a previous version of an organisation diagram.
PUT/orgs/{org}/editableKeep an organisation's diagrams editable.
GET/orgs/{org}/secret-scanningRead an organisation's secret scanning.
PUT/orgs/{org}/secret-scanningSet an organisation's secret scanning.
GET/orgs/{org}/call-capsRead an organisation's daily limits inside its allowance.
PUT/orgs/{org}/call-capsSet an organisation's daily limits inside its allowance.
GET/orgs/{org}/call-caps/todayRead today's calls against the daily limits.
PUT/orgs/{org}/publishingChoose where an organisation's members publish.
GET/orgs/{org}/publishing/public-diagramsList members' public diagrams for review.
POST/orgs/{org}/publishing/public-diagrams/{id}/moveMove a member's public diagram into the library.
DELETE/orgs/{org}/publishing/public-diagrams/{id}Unpublish a member's public diagram.
GET/user/publishingRead where your publishes go.
PUT/user/publishingChoose your default organisation for publishing.
GET/orgs/{org}/legendRead the legend of an organisation's diagrams.
PUT/orgs/{org}/legendChoose the legend of an organisation's diagrams.
GET/user/legendRead the legend of your diagrams.
PUT/user/legendTurn the legend of your diagrams on or off.
GET/orgs/{org}/styleRead the style of an organisation's diagrams.
PUT/orgs/{org}/styleChoose the style of an organisation's diagrams.
GET/user/styleRead the style of your diagrams.
PUT/user/styleChoose the style of your diagrams.
GET/orgs/{org}/importsRead what an organisation's big imports draw.
PUT/orgs/{org}/importsChoose what an organisation's big imports draw.
GET/user/importsRead what your big imports draw.
PUT/user/importsChoose what your big imports draw.
PUT/orgs/{org}/diagrams/{id}/shareShare an organisation diagram at a public link.
DELETE/orgs/{org}/diagrams/{id}/shareStop sharing an organisation diagram.
PUT/orgs/{org}/sharing/publicAllow or stop public sharing of single diagrams.
PUT/orgs/{org}/sharing/auto-publishKeep every diagram the organisation's agents draw.
GET/orgs/{org}/diagrams/{id}/embed-links/viewsHow often a diagram's embed links were shown, by website.
GET/orgs/{org}/embed-links/viewsHow often every embed link of the organisation was shown, by website.
GET/orgs/{org}/diagrams/{id}/embed-linksList a diagram's embed links for chosen websites.
POST/orgs/{org}/diagrams/{id}/embed-linksShow a private diagram on chosen websites.
PATCH/orgs/{org}/diagrams/{id}/embed-links/{link}Change an embed link's websites, end or name.
DELETE/orgs/{org}/diagrams/{id}/embed-links/{link}Delete an embed link.
POST/orgs/{org}/diagrams/{id}/embed-links/{link}/rotateGive an embed link a new address.
PUT/orgs/{org}/sharing/embed-linksAllow or stop diagrams on chosen websites.
GET/orgs/{org}/classificationRead an organisation's classification settings.
PUT/orgs/{org}/classificationSet an organisation's classification settings.
PATCH/orgs/{org}/diagrams/{id}/classificationChange an organisation diagram's classification label.
GET/orgs/{org}/approvalRead an organisation's approval settings.
PUT/orgs/{org}/approvalSet an organisation's approval settings.
GET/orgs/{org}/approvalsList the requests waiting for approval.
GET/orgs/{org}/approvals/{id}Read one request for approval, with what changed.
GET/orgs/{org}/approvals/{id}/svgRead the picture a request is about.
POST/orgs/{org}/approvals/{id}/approveApprove a request.
POST/orgs/{org}/approvals/{id}/rejectReject a request.
PUT/orgs/{org}/retentionChoose how long an organisation keeps its library and its audit log.
PUT/orgs/{org}/legal-holdPut an organisation on legal hold, or take it off.
PUT/orgs/{org}/governance/patterns-onlyAsk the organisation's agents to start from its approved patterns.
PUT/orgs/{org}/governance/style-rules-strictTreat the organisation's style rules as errors.
PUT/orgs/{org}/diagrams/{id}/keptKeep a diagram from the library retention.
GET/orgs/{org}/patternsList an organisation's own patterns.
POST/orgs/{org}/patternsSave a diagram as one of the organisation's patterns.
GET/orgs/{org}/patterns/{name}Read one of an organisation's patterns.
PUT/orgs/{org}/patterns/{name}Change one of an organisation's patterns.
DELETE/orgs/{org}/patterns/{name}Remove one of an organisation's patterns.
GET/orgs/{org}/patterns/{name}/pictureAn organisation pattern's picture.
GET/orgs/{org}/folder-rulesList an organisation's folder rules.
PUT/orgs/{org}/folder-rulesRestrict a folder.
DELETE/orgs/{org}/folder-rulesRemove a folder's rule.
GET/orgs/{org}/foldersList the folders made in the portal.
POST/orgs/{org}/foldersMake a folder.
DELETE/orgs/{org}/foldersRemove a folder.
POST/orgs/{org}/folders/moveRename or move a folder.
GET/orgs/{org}/keysList an organisation's API keys.
POST/orgs/{org}/keysCreate an organisation API key.
POST/orgs/{org}/keys/{id}/revealReveal an organisation API key.
DELETE/orgs/{org}/keys/{id}Revoke an organisation API key.
GET/orgs/{org}/trusted-publishersList a page of an organisation's trusted publishers.
POST/orgs/{org}/trusted-publishersAdd a trusted publisher.
GET/orgs/{org}/trusted-publishers/groupsList the groups of an organisation's trusted publishers.
PUT/orgs/{org}/trusted-publishers/{id}Change a trusted publisher.
DELETE/orgs/{org}/trusted-publishers/{id}Remove a trusted publisher.
GET/orgs/{org}/connectors/azure-devopsRead the Azure DevOps connector.
DELETE/orgs/{org}/connectors/azure-devopsDisconnect Azure DevOps.
POST/orgs/{org}/connectors/azure-devops/connectStart connecting Azure DevOps.
GET/connectors/azure-devops/callbackWhere Microsoft sends the browser back.
GET/orgs/{org}/connectors/azure-devops/organizationsList the Azure DevOps organisations.
GET/orgs/{org}/connectors/azure-devops/projectsList one Azure DevOps organisation's projects.
GET/orgs/{org}/connectors/azure-devops/pipelinesList one Azure DevOps project's pipelines.
GET/orgs/{org}/connectors/azure-devops/pipelineRead one Azure DevOps pipeline.
GET/orgs/{org}/hcp-terraform/run-taskRead the organisation's HCP Terraform run task.
POST/orgs/{org}/hcp-terraform/run-taskTurn the HCP Terraform run task on.
PATCH/orgs/{org}/hcp-terraform/run-taskChange what the HCP Terraform run task reports.
DELETE/orgs/{org}/hcp-terraform/run-taskTurn the HCP Terraform run task off.
POST/orgs/{org}/hcp-terraform/run-task/rotateMake a new HMAC key for the HCP Terraform run task.
POST/orgs/{org}/hcp-terraform/run-task/revealShow the HCP Terraform run task's HMAC key again.
GET/badges/evidence/{file}Read a repository's compliance evidence badge.
GET/orgs/{org}/evidenceRead an organisation's compliance evidence.
PUT/orgs/{org}/evidence/settingsChoose the frameworks and the window of compliance evidence.
PUT/orgs/{org}/evidence/controlsMap a diagram to a control, or take a suggested one off.
GET/orgs/{org}/evidence/diagramRead one diagram's evidence.
GET/orgs/{org}/evidence/pictureRead the committed picture of one diagram.
GET/orgs/{org}/evidence/exportDownload a compliance evidence pack.
POST/orgs/{org}/evidence/badgesTurn a repository's badge on, or give it a new address.
DELETE/orgs/{org}/evidence/badgesTurn a repository's badge off.
POST/orgs/{org}/evidence/repositories/{repositoryId}/scanScan a repository for hand-drawn Mermaid.
POST/orgs/{org}/evidence/findings/{id}/verifyMake a hand-drawn diagram verifiable.
GET/orgs/{org}/evidence/sharesList an organisation's auditor share links.
POST/orgs/{org}/evidence/sharesMake an auditor's share link for an evidence report.
DELETE/orgs/{org}/evidence/shares/{id}Revoke an auditor share link.
GET/evidence/share/{token}Open an evidence report from an auditor's share link.
POST/evidence/share/{token}Send a share link's password.
GET/orgs/{org}/connectionsList the agents connected to an organisation.
DELETE/orgs/{org}/connections/{id}Disconnect an agent from an organisation.
GET/orgs/{org}/appsList an organisation's apps.
POST/orgs/{org}/appsRegister an app for an organisation.
PATCH/orgs/{org}/apps/{id}Change an organisation's app.
DELETE/orgs/{org}/apps/{id}Delete an organisation's app.
POST/orgs/{org}/apps/{id}/secretMake a new client secret for an organisation's app.
GET/orgs/{org}/app-connectionsList the apps connected to an organisation.
DELETE/orgs/{org}/app-connections/{id}Disconnect an app from an organisation.
GET/orgs/{org}/policies/agentsRead which agents may connect to an organisation.
PUT/orgs/{org}/policies/agentsChoose which agents may connect to an organisation.
GET/orgs/{org}/policies/appsRead which apps may connect to an organisation.
PUT/orgs/{org}/policies/appsChoose which apps may connect to an organisation.
GET/orgs/{org}/policies/keysRead an organisation's key policy.
PUT/orgs/{org}/policies/keysSet an organisation's key policy.
GET/orgs/{org}/brandRead an organisation's brand theme.
PUT/orgs/{org}/brandSave an organisation's brand theme.
DELETE/orgs/{org}/brandRemove an organisation's brand theme.
POST/orgs/{org}/brand/previewPreview brand colors.
GET/user/brandRead the brand of your own calls.
PUT/user/brandChoose the brand of your own calls.
GET/orgs/{org}/style-rulesRead an organisation's style rules.
PUT/orgs/{org}/style-rulesSave an organisation's style rules.
DELETE/orgs/{org}/style-rulesRemove an organisation's style rules.
GET/orgs/{org}/iconsList an organisation's custom icons.
PUT/orgs/{org}/icons/{name}Upload or replace a custom icon.
DELETE/orgs/{org}/icons/{name}Delete a custom icon.
GET/orgs/{org}/icons/{name}/previewPreview a custom icon in a diagram.
GET/orgs/{org}/avatarRead an organisation's avatar.
PUT/orgs/{org}/avatarUpload or replace an organisation's avatar.
DELETE/orgs/{org}/avatarRemove an organisation's avatar.
POST/orgs/{org}/drift/runsReport a drift run from CI.
GET/orgs/{org}/driftRead an organisation's drift dashboard.
GET/orgs/{org}/auditRead an organisation's audit log.
GET/orgs/{org}/audit/exportExport an organisation's audit log.
GET/orgs/{org}/usageRead an organisation's usage.
GET/orgs/{org}/callsRead an organisation's call history.
GET/orgs/{org}/calls/exportExport an organisation's call history.
GET/orgs/{org}/log-accessRead who may read the audit log and the call history.
PUT/orgs/{org}/log-accessChoose who may read the audit log and the call history.
GET/orgs/{org}/ssoRead an organisation's single sign-on settings.
PUT/orgs/{org}/sso/connectionSet up an OpenID Connect identity provider.
PATCH/orgs/{org}/sso/connectionTurn single sign-on on or off, and set Require SSO and who joins on first sign-in.
DELETE/orgs/{org}/sso/connectionRemove the identity provider.
POST/orgs/{org}/sso/connection/rotate-keyRotate the signing key of a federated credential or a private key JWT.
PUT/orgs/{org}/sso/agentsChoose whether agents connect to the organisation.
PUT/orgs/{org}/sso/samlSet up a SAML identity provider.
POST/orgs/{org}/sso/domainsAdd an email domain.
POST/orgs/{org}/sso/domains/{domain}/verifyCheck a domain's DNS record.
DELETE/orgs/{org}/sso/domains/{domain}Remove an email domain.
GET/orgs/{org}/scimRead an organisation's SCIM settings.
POST/orgs/{org}/scim/tokenMake or rotate the SCIM token.
DELETE/orgs/{org}/scim/tokenRevoke the SCIM token.
PATCH/orgs/{org}/scim/groups/{group}Choose the role a SCIM group gives.
GET/orgs/{org}/supportRead what priority support is for an organisation.
POST/orgs/{org}/support/requestsAsk the organisation's named contact for help.
GET/orgs/{org}/boardsList an organisation's live whiteboards.
POST/orgs/{org}/boardsMake a live whiteboard.
GET/orgs/{org}/boards/{board}Open a live whiteboard.
PATCH/orgs/{org}/boards/{board}Rename, label or keep a board.
DELETE/orgs/{org}/boards/{board}Delete a board.
GET/orgs/{org}/boards/{board}/tabs/{tab}Read one tab of a board.
PATCH/orgs/{org}/boards/{board}/tabs/{tab}Rename or move a tab.
DELETE/orgs/{org}/boards/{board}/tabs/{tab}Delete a tab.
POST/orgs/{org}/boards/{board}/tabsAdd a tab to a board.
POST/orgs/{org}/boards/{board}/tabs/{tab}/editsEdit a tab with typed operations.
PUT/orgs/{org}/boards/{board}/tabs/{tab}/sourceReplace a tab's whole source.
GET/orgs/{org}/boards/{board}/tabs/{tab}/historyRead a tab's history.
GET/orgs/{org}/boards/{board}/tabs/{tab}/versions/{version}Read one earlier version of a tab.
POST/orgs/{org}/boards/{board}/tabs/{tab}/restoreRestore an earlier version of a tab.
GET/orgs/{org}/boards/{board}/accessRead who may open a board.
PUT/orgs/{org}/boards/{board}/accessSet a board's general access.
PUT/orgs/{org}/boards/{board}/grantsGive a member or a group a role on a board.
DELETE/orgs/{org}/boards/{board}/grants/{kind}/{id}Take away someone's access to a board.
POST/orgs/{org}/boards/{board}/join-linksMake an invite link for a board.
DELETE/orgs/{org}/boards/{board}/join-links/{id}Revoke an invite link.
GET/orgs/{org}/board-requestsList the open requests for access to boards.
POST/orgs/{org}/board-requests/{id}Approve or decline a request for access.
POST/orgs/{org}/boards/{board}/importsAdd a tab from the library, your own diagrams, or pasted source.
POST/orgs/{org}/boards/{board}/tabs/{tab}/saveSave a tab to the organisation library.
POST/orgs/{org}/boards/{board}/exportsRecord an export of a board.
GET/orgs/{org}/diagrams/{id}/boardsList the boards a library diagram is on.
GET/user/boards/{board}/whereFind the organisation of a board.
POST/user/boards/{board}/joinJoin a board with an invite link.
POST/user/boards/{board}/access-requestsAsk for access to a board.
GET/orgs/{org}/boards/{board}/tabs/{tab}/revisionsList a tab's revisions.
POST/orgs/{org}/boards/{board}/tabs/{tab}/revisionsMake a revision of a tab.
GET/orgs/{org}/boards/{board}/tabs/{tab}/revisions/{revision}Read a revision.
PATCH/orgs/{org}/boards/{board}/tabs/{tab}/revisions/{revision}Rename or share a revision.
DELETE/orgs/{org}/boards/{board}/tabs/{tab}/revisions/{revision}Discard a revision.
POST/orgs/{org}/boards/{board}/tabs/{tab}/revisions/{revision}/editsEdit a revision with typed operations.
PUT/orgs/{org}/boards/{board}/tabs/{tab}/revisions/{revision}/sourceReplace a revision's whole source.
GET/orgs/{org}/boards/{board}/tabs/{tab}/revisions/{revision}/historyRead a revision's history.
GET/orgs/{org}/boards/{board}/tabs/{tab}/revisions/{revision}/versions/{version}Read one earlier version of a revision.
POST/orgs/{org}/boards/{board}/tabs/{tab}/revisions/{revision}/restoreRestore an earlier version of a revision.
GET/orgs/{org}/boards/{board}/tabs/{tab}/revisions/{revision}/compareCompare a revision with main.
POST/orgs/{org}/boards/{board}/tabs/{tab}/revisions/{revision}/updateBring main's changes into a revision.
POST/orgs/{org}/boards/{board}/tabs/{tab}/revisions/{revision}/mergeMerge a revision into main.
POST/orgs/{org}/boards/{board}/tabs/{tab}/revisions/{revision}/merge-requestAsk for a revision to be merged.
POST/orgs/{org}/boards/{board}/tabs/{tab}/revisions/{revision}/declineDecline a merge request.
POST/orgs/{org}/boards/{board}/tabs/{tab}/switch-requestsAsk everyone on a tab to switch.
PUT/orgs/{org}/boards/{board}/protectionRequire approval to merge into main.
GET/orgs/{org}/sharing/board-guestsWhether the organisation allows guests on its boards.
PUT/orgs/{org}/sharing/board-guestsAllow or stop guests on the organisation's boards.
GET/orgs/{org}/securityRead the organisation's sign-in security.
PUT/orgs/{org}/securityRequire two-step sign-in for every member, or stop.
POST/orgs/{org}/security/remindersRemind members to turn on two-step sign-in.
GET/orgs/{org}/connectorsRead the organisation's connectors.
PUT/orgs/{org}/connectors/email/{provider}Set up or change one email connector.
DELETE/orgs/{org}/connectors/email/{provider}Remove one email connector.
POST/orgs/{org}/connectors/email/{provider}/defaultMake one email connector the default.
POST/orgs/{org}/connectors/email/{provider}/testSend a test email through one connector.
POST/orgs/{org}/connectors/rotate-keyReplace the organisation's data key.
GET/orgs/{org}/agents/mineList your agents in an organisation.
POST/orgs/{org}/boards/{board}/agents/{connection}/messagesSend your connected agent a message on a board.
GET/orgs/{org}/board-agent-messagesRead who may message members' agents on boards.
PUT/orgs/{org}/board-agent-messagesChoose who may message members' agents on boards.
POST/orgs/{org}/storage/google/startStart connecting Google Drive.
GET/storage/google/callbackWhere Google sends the browser back.
GET/storage/google/pickerThe Google folder picker, in a popup.
GET/orgs/{org}/storageRead where the organisation's library is sent.
POST/orgs/{org}/storageAdd a bucket.
PUT/orgs/{org}/storage/{id}Change a destination, turn it on, or pause it.
DELETE/orgs/{org}/storage/{id}Disconnect a destination.
POST/orgs/{org}/storage/{id}/testWrite a test file.
POST/orgs/{org}/storage/{id}/retryTry a failing destination again now.
POST/orgs/{org}/storage/{id}/syncSend the whole library again.
GET/raster/{file}A library picture as a PNG, for Google Slides and Docs.
GET/orgs/{org}/documentsList the diagrams placed in the organisation's decks and Docs.
POST/orgs/{org}/documentsPlace a library diagram in a Google Slides deck or a Google Doc.
GET/orgs/{org}/documents/slidesRead the slides of a Google Slides deck.
POST/orgs/{org}/documents/{id}/sendSend the current version of a placed diagram now.
DELETE/orgs/{org}/documents/{id}Stop keeping a placed diagram current.

Billing

MethodPathWhat it does
GET/user/billingRead the account's plan.
POST/user/billing/checkoutStart a checkout for a paid plan.
POST/user/billing/verify-checkoutRead a finished checkout back.
POST/user/billing/cancelCancel the plan at the end of the period.
POST/user/billing/resumeTake back a cancellation.
POST/user/billing/portalOpen the Stripe billing portal.
GET/user/billing/documentsList your invoices and receipts.
GET/user/billing/documents/{id}Read one invoice or receipt.
GET/user/billing/documents/{id}/pdfDownload an invoice or receipt as a PDF.
POST/billing/webhookReceive a Stripe event. Called by Stripe, not by clients.

Enterprise

MethodPathWhat it does
POST/enterprise/enquiriesSend an Enterprise enquiry.

Telemetry

MethodPathWhat it does
POST/telemetry/usageReceive the opt-in daily totals of the local npm package.

Health

MethodPathWhat it does
GET/healthCheck the service is up.
GET/meta/terraform-provider/versionsList the versions of the Terraform and OpenTofu provider.

Error envelope

Every failure uses the same shape, so a client needs one error handler.

FieldTypeRequiredDescription
errortrueyesAlways true, so clients can branch without reading the status.
errorCodestringyesStable snake_case key such as validation.failed or diagram.invalid.
messagestringyesSafe, human-readable summary.
detailsanynoValidation issues or diagnostics, JSON-safe.
requestIdstringnoTrace id for correlating with logs.

See also

DocWhy
SchemasEvery request and response type
Tool referenceThe same operations as callable tools
Language referenceWhat the diagram source may contain
Writing diagramsThe language by example