Contextual AI icon

Contextual AI

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

Datastore → Create Datastore

AI-generated

Summary

Create a new datastore via the Contextual AI API. Requires a datastore name; optionally accepts a JSON string for configuration. Returns the created datastore's ID, name, and parsed configuration.

Inputs

  • datastoreName (required) — Name of the datastore
  • configuration — Configuration of the datastore as stringified JSON. If not provided, default configuration is used.
  • authentication — Choose which authentication method to use. Defaults to API Key (contextualAiApi).

Output shape

object

Returns datastoreId, name, and configuration (parsed JSON object if provided, omitted otherwise).

Discussion