Graniite Docs

REST API overview

REST endpoints for CRUD, organization, and ingest. Companion to the MCP server.

Beta

The REST API is in beta. Endpoints, request and response shapes, and error codes may change as we learn from real usage. Breaking changes will be communicated in advance via the email on your account, but we don't yet commit to long deprecation windows or formal versioning. The MCP server is the more stable surface today. Build production-critical integrations against MCP where you can; reach for REST when MCP can't reach the workflow (n8n, Zapier, cron jobs, binary uploads).

The REST API at https://graniite.co/api/v1 is the management surface. It provides full CRUD over folders, items, and memberships, plus ingest and uploads. Use it from scripts, automations (n8n, Zapier), and any client that prefers HTTP over JSON-RPC.

For agent-time read and add operations from inside a conversation, see the MCP server. For guidance on which to use, see MCP vs REST.

Auth

Every endpoint requires a bearer token:

Authorization: Bearer lev_…

Tokens are minted at /settings/integrations. See Authentication for the capability and scope model and how to pick a token shape for your use case.

OpenAPI spec

The full spec is hosted at:

https://graniite.co/api/v1/openapi.json

Drop it into any OpenAPI-aware tool to get interactive endpoint exploration:

  • Postman: Import, then Link
  • Insomnia: Import, then From URL
  • LangChain: OpenAPIToolkit.from_url(...)
  • LlamaIndex: OpenAPIToolSpec(spec_url=...)
  • Mintlify or Scalar if you are building docs of your own

Endpoint reference

Each endpoint below has a dedicated page with parameter schemas, request and response examples, and code samples in curl, JavaScript, Python, and Go, auto-generated from the OpenAPI spec.

Knowledge

Folders

Items

Uploads (three-step binary flow)

The reference pages document each step in isolation. For the full end-to-end walkthrough (including the client-side PUT in step 2), see the binary upload quickstart.

Error reference

See Errors.

Rate limits

Per-token, per-endpoint family. Read endpoints get 1000/hr. Ingest and membership writes get 60/hr. Folder and item delete gets 30/hr. Full table on the errors page.

On this page