Skip to content
Connect an agent

Organisations

List an organisation's diagrams

The organisation's diagrams, most recently published first and at most 200, with where the organisation stands against its owner's plan.

GET/orgs/{org}/diagrams

TL;DR

QuestionAnswer
What does it do?List an organisation's diagrams.
What does it take?org in the path.
What does it return?Status 200 with a body of type OrganisationDiagramList.
What can go wrong?401 not signed in, or the key is not valid; 403 plan.confluence_not_included: a call from the Confluence app to an organisation whose plan has no Confluence app; 404 no such organisation, the caller is not a member of it, or the key belongs to another organisation; 429 too many requests, or the daily limit is used up; 503 organisations are not set up on this server. Every failure uses the one error envelope.

What it does

The organisation's diagrams, most recently published first and at most 200, with where the organisation stands against its owner's plan. A signed-in member, an organisation's key, or a member's own key may call it.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Responses

StatusMeaningBody
200The diagrams and the usage.OrganisationDiagramList
401Not signed in, or the key is not valid.ErrorResponse
403plan.confluence_not_included: a call from the Confluence app to an organisation whose plan has no Confluence app.ErrorResponse
404No such organisation, the caller is not a member of it, or the key belongs to another organisation.ErrorResponse
429Too many requests, or the daily limit is used up.ErrorResponse
503Organisations are not set up on this server.ErrorResponse

Response body

A 200 answer has the type OrganisationDiagramList.

FieldTypeRequiredDescription
itemsOrganisationDiagram[]yesAt most 200, newest published first.
items[].idstringyesThe handle for the diagram in the routes below.
items[].namestring | nullyesThe label given at publish, or null.
items[].folderstring | nullyesThe folder it is filed in, such as Payments/Checkout, or null for the top level.
items[].scheme"light" | "dark" | "auto"yesThe color scheme it was drawn in: light, dark, or auto.
items[].bytesintegeryesSize of the stored SVG in bytes.
items[].createdBystring | nullyesThe person it belongs to: the member who published it, or the person who connected the agent that did. Null when that account has left or an organisation key published it.
items[].publishedVia"person" | "connection" | "key" | nullyesHow it was published: person (signed in, or with a key the person made), connection (an agent connected to the organisation, whose person is createdBy), or key (an organisation key from Keys and CI). Null for a diagram published before this was recorded.
items[].publishedKeyobject | nullyesThe key behind a connection or an organisation key. Null for a person, and once the key no longer exists.
items[].publishedKey.idstringyesThe key's id, as Keys and CI lists it. Never the key itself.
items[].publishedKey.namestring | nullyesThe key's name, or null once the key is revoked.
items[].publishedClientstring | nullyesThe client name the agent gave when it connected, such as Claude Code, for a connection only. at most 100 characters.
items[].createdAtintegeryesWhen it was first published, in milliseconds since the epoch.
items[].publishedAtintegeryesWhen it was last published, in milliseconds since the epoch. Publishing the same diagram again moves it.
items[].expiresAtinteger | nullyesWhen it will be deleted, in milliseconds since the epoch, or null when the owner's plan keeps diagrams until they are deleted.
items[].viewUrlstringyesA page in the portal that shows the diagram to a signed-in member. It is not a link anyone can open: an organisation's diagrams have no public address.
items[].lockedbooleanyesTrue while the owner has the diagram locked: nobody can delete, rename or move it, its publisher and the owner included, until the owner unlocks it. A lock does not stop it expiring on a plan that expires diagrams.
items[].lockedAtinteger | nullyesWhen the owner locked it, in milliseconds since the epoch, or null when it is not locked.
items[].restrictedtruenoPresent, and true, when the owner has restricted this diagram's folder and the caller is allowed in it, so the portal can show it as locked. Absent otherwise. A diagram in a folder the caller may not use is not listed at all.
items[].keepInsidetruenoPresent, and true, when the folder rule over this diagram keeps its diagrams inside: the svg route refuses ?download=1 and the copy route refuses a copy (403 orgs.folder_restricted). Absent otherwise.
items[].shareOrganisationDiagramShareyesIts public link while the organisation shares it, or null. Only a diagram someone chose to share has one.
items[].share.urlstringyesThe public address, {CDN_URL}/l/<token>.svg. Anyone with it can see the picture, without its source. It keeps showing the latest version when the diagram is edited, and never changes.
items[].share.sharedAtintegeryesWhen the diagram was first shared, in milliseconds since the epoch.
items[].keptbooleanyes"Keep": true when an owner or admin keeps it from the library retention. The plan's own retention still applies.
items[].deletesAtinteger | nullyesWhen the retention deletes it, in milliseconds since the epoch: the nearer of the plan's expiry and "Delete library diagrams not updated for". Null when nothing will, and always null under a legal hold.
items[].classificationClassificationyesA diagram's classification label: public, internal (the default, and what a diagram published before labels reads as) or confidential. Confidential is never shared publicly; under "Share only diagrams labelled Public" only public is.
items[].pendingbooleanyesTrue while it is held for approval ("Publishing needs approval"): only its publisher and the approvers see it.
items[].changePendingbooleanyesTrue while a new version of it waits for approval. The library shows this version until then.
items[].seriesDiagramSeriesyesIts place in a series (the parts of one split import), or null when it is in none.
items[].series.idstringyesThe series id the parts were published with.
items[].series.indexintegeryesIts place in the series, from 1; 0 is the whole import combined into one diagram.
items[].series.totalinteger | nullyesHow many parts the publisher said the series has, or null.
usageOrganisationHostingUsageyes
usage.plan"free" | "pro" | "enterprise"yes
usage.countintegeryesDiagrams the organisation holds. This is the total, even when the list is shorter. minimum 0.
usage.bytesintegeryesminimum 0.
usage.limitsOrganisationLimitsyes
usage.limits.dailyCallsintegeryes
usage.limits.hostedDiagramsintegeryesDiagrams the organisation may hold.
usage.limits.hostedBytesintegeryesTotal bytes of diagrams the organisation may hold.
usage.limits.retentionDaysinteger | nullyesDays a diagram is kept after it was last published, or null to keep it until it is deleted.
usage.limits.maxDiagramBytesintegeryes
usage.limits.stableLinksintegeryesStable links the owner may keep for their own diagrams. An organisation's diagrams have none.
usage.limits.organisationsintegeryesOrganisations an account on this plan may own.
usage.limits.orgMembersintegeryesPeople one organisation may have, the owner included and pending invitations counted.
usage.limits.orgIconsintegeryesCustom icons one organisation may keep; zero on a plan without custom icons. minimum 0.
usage.limits.driftHistoryDaysintegeryesDays the drift dashboard keeps a run and a status after it was reported; zero on a plan without the dashboard. minimum 0.
usage.limits.auditRetentionDaysintegeryesDays the organisation's audit log keeps an event; zero on a plan that records none. minimum 0.
usage.limits.boardsintegeryesLive whiteboards the organisation may keep; zero on a plan without them. minimum 0.
usage.limits.boardTabsintegeryesTabs one whiteboard may have. minimum 0.
usage.limits.boardParticipantsintegeryesPeople on one whiteboard at once. minimum 0.
usage.limits.boardHistoryDaysintegeryesDays a whiteboard keeps the history of its changes. minimum 0.
usage.limits.boardSessionMinutesintegeryesMinutes one live connection to a whiteboard lasts before it asks whether the person is still there. minimum 0.
usage.limits.boardIdleMinutesintegeryesMinutes with no input before a whiteboard pauses its live connection. minimum 0.
usage.limits.boardDailyAwakeMinutesintegeryesMinutes the organisation's whiteboards may be live in one UTC day. minimum 0.
usage.limits.boardRevisionsintegeryesOpen revisions one tab of a whiteboard may have. minimum 0.

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools