Skip to content
Connect an agent

Organisations

List an organisation's own patterns

The patterns the owner and admins saved, without their source; find_pattern offers them first to the organisation's agents.

GET/orgs/{org}/patterns

TL;DR

QuestionAnswer
What does it do?List an organisation's own patterns.
What does it take?org in the path.
What does it return?Status 200 with a body of type OrganisationPatternList.
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 is another organisation's; 429 too many requests; 503 organisations are not set up on this server. Every failure uses the one error envelope.

What it does

The patterns the owner and admins saved, without their source; find_pattern offers them first to the organisation's agents. Every member and a key of the organisation.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Responses

StatusMeaningBody
200The patterns.OrganisationPatternList
401Not signed in, or the key is not valid.ErrorResponse
404No such organisation, the caller is not a member of it, or the key is another organisation's.ErrorResponse
429Too many requests.ErrorResponse
503Organisations are not set up on this server.ErrorResponse

Response body

A 200 answer has the type OrganisationPatternList.

FieldTypeRequiredDescription
itemsOrganisationPatternSummary[]yesBy title.
items[].idstringyesWhat the tools take: org:<name>.
items[].namestringyesThe name after org:.
items[].titlestringyes
items[].summarystringyes
items[].whenToUsestringyes
items[].kindstringyesThe kind of diagram, such as flow.
items[].tagsstring[]yes
items[].flavours("neutral" | "aws" | "azure" | "gcp")[]yes
items[].slotCountintegeryesminimum 0.
items[].createdAtintegeryes
items[].updatedAtintegeryes
items[].updatedBystring | nullyesThe account that last saved it, or null once that account is gone.
limitintegeryesThe most patterns the organisation keeps.
availablebooleanyesWhether the organisation's plan includes its own patterns (Enterprise). Without it they are kept and not offered to agents.
canEditbooleanyesWhether the caller may save, change and remove them: the owner and admins, signed in.

See also

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