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; 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
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[].theme"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 account that published it, or null when that account has left or an organisation key published it.
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.
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.

See also

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