Contextual AI icon

Contextual AI

Access Contextual AI tools for agents, parsing, querying, and reranking.

Datastore → List Datastores

AI-generated

Summary

Retrieve a paginated list of datastores, optionally filtered by agent ID.

Inputs

  • limit (required) — Maximum number of results to return (1-1000). Defaults to 50.
  • cursor — Cursor from the previous call to list datastores, used to retrieve the next set of results.
  • agentId — ID of the agent used to filter datastores. If provided, only datastores linked to this agent will be returned. Must be a valid UUID.

Output shape

object

Parsed JSON response from the Contextual AI API containing the list of datastores.

Discussion