Skip to main content

List the saved graph views and questions.

GET/api/v1/graph-viewsgraph:read

The caller's private views and every shared view, by name. include_inactive adds deactivated ones. A view is a saved Atlas query with parameters; a question is a view the Atlas offers as a question (is_question). Needs View Graph Views.

Scopegraph:read
AsynchronousNo
MCP toollist_graph_views
Portal permissionsview_graph_views
Pagingsnapshot
Default ordername, graph_view_id
Sort fieldsname, graph_view_id

Parameters​

NameInTypeRequiredDescription
include_inactivequeryboolean or nullOptionalAdd deactivated views.
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json object
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 body​

FieldTypeRequiredDescription
itemsarray of GraphViewRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

GraphView​

FieldTypeRequiredDescription
definitionobject or nullRequiredThe saved query (format graph_view_definition): the Portal's own document.
descriptionstring or nullRequired
graph_view_idstringRequired
is_activebooleanRequired
is_ownerbooleanRequiredThe caller owns the view.
is_questionbooleanRequiredThe Atlas offers the view as a question.
last_opened_atstring or nullRequiredThe caller's last visit, as the Portal records it; null when never opened or in a list.
namestringRequired
owner_user_idstring or nullRequired
parametersobject or nullRequiredThe declared parameters (format graph_view_parameters).
slugstringRequired
visibilitystringRequiredprivate (its owner's) or shared.