Browse the extensions reference

libraryStructure

returns LibraryStructure

Get a single structure (extended link role) by id.

The singular of libraryStructures. Pair it with libraryElementTree(structureId:) to walk one statement layout's presentation hierarchy rather than a blend of every variant.

Arguments

NameTypeDescription
idID!The structure's id.

Returns LibraryStructure

A named structure (extended link role) within a library taxonomy.

FieldTypeDescription
idString!
nameString!
blockTypeString!balance_sheet | income_statement | cash_flow_statement | custom | …
taxonomyIdString!
roleUriStringOriginal XBRL role URI if any
isActiveBoolean!

Example

query
{ libraryStructure(id: "rec_...") { id name blockType taxonomyId } }
curl
curl -X POST "https://api.robosystems.ai/extensions/$GRAPH_ID/graphql" \
  -H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "{ libraryStructure(id: \"rec_...\") { id name blockType taxonomyId } }"}'