Skip to content
Connect an agent

Plotwork

List Plotwork diagrams

The diagrams the connected Plotwork account can see, newest first, private ones included.

GET/v1/plotwork/diagrams

TL;DR

QuestionAnswer
What does it do?List Plotwork diagrams.
What does it need?An API key or an OAuth access token.
What does it take?limit, cursor, folder, q in the query string.
What does it return?Status 200 with a body of type PlotworkDiagramList.
In the SDK?flung.plotwork.listDiagrams()
As an MCP tool?list_plotwork_diagrams
What can go wrong?401 Missing, unknown, revoked or expired API key; 409 Plotwork is not connected (plotwork_not_connected), or must be connected again (plotwork_reconnect), in the portal; 422 The request failed validation; 429 Too many requests for this credential; wait for retry-after seconds; 502 Plotwork could not be reached or refused for a moment (plotwork_unavailable); 503 Plotwork is not set up on this server (not_configured). Every failure has the same error shape.

What it does

The diagrams the connected Plotwork account can see, newest first, private ones included. q keeps to names and folders that hold the words, ignoring case.

Example

curl
curl -X GET 'https://api.flung.dev/v1/plotwork/diagrams?q=checkout' \  --header "Authorization: Bearer $FLUNG_API_KEY"

A successful answer looks like this:

json
{  "data": [    {      "id": "string",      "name": "string",      "folder": "string",      "scheme": "string",      "updatedAt": "2026-11-01T09:00:00.000Z"    }  ],  "nextCursor": "string"}

Query parameters

FieldTypeRequiredDescription
limitintegerno
cursorstringnoThe nextCursor of the page before.
folderstringnoOnly this Plotwork folder and the folders inside it, such as Payments/Checkout.
qstringnoWords the name or folder holds, ignoring case. Plotwork searches its whole library.

Responses

StatusMeaningBody
200A page of diagrams.PlotworkDiagramList
401Missing, unknown, revoked or expired API key.Error
409Plotwork is not connected (plotwork_not_connected), or must be connected again (plotwork_reconnect), in the portal.Error
422The request failed validation.Error
429Too many requests for this credential; wait for retry-after seconds.Error
502Plotwork could not be reached or refused for a moment (plotwork_unavailable).Error
503Plotwork is not set up on this server (not_configured).Error

Response body

A 200 answer has the type PlotworkDiagramList.

FieldTypeRequiredDescription
dataPlotworkDiagram[]yes
data[].idstringyes
data[].namestring | nullyes
data[].folderstring | nullyes
data[].schemestringyesThe color scheme it was drawn in, such as light, dark or auto.
data[].updatedAtstringyesWhen it was last published in Plotwork.
nextCursorstring | nullyesPass it as cursor for the next page; null on the last.

See also

DocWhy
API referenceEvery endpoint
SchemasEvery request and response type
ErrorsEvery error code and what to do about it
list_plotwork_diagramsThe same operation as an MCP tool