# Fluree API

**Canonical:** https://apis.io/apis/fluree/fluree-api/  
**Provider:** Fluree — https://apis.io/providers/fluree/  
**Documentation:** https://labs.flur.ee/docs/db/api

Fluree API is one of 2 APIs that [Fluree](https://apis.io/providers/fluree/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 6 JSON Schema definitions. The published artifact set on APIs.io includes an OpenAPI specification and 6 JSON Schemas.

Fluree API as documented publicly. Contract generated from the documentation by API Evangelist (2026-12-02); not the provider's own document.

## Operations (60 of 99)

| Method | Path | Summary |
|---|---|---|
| GET | `/.well-known/fluree.json` | CLI auth discovery endpoint. |
| GET | `/branch/{ledgerName}` | List all non‑retracted branches for a ledger. |
| GET | `/commits/{ledger}` | Export commit blobs from a ledger using stable cursors. |
| POST | `/create` | Create a new ledger explicitly |
| DELETE | `/data` | W3C Graph Store Protocol: remove one graph |
| POST | `/delta/catalog/browse` | Lists catalog metadata (catalogs, schemas, tables). |
| POST | `/delta/catalog/preview` | Shows column metadata for a Delta table. |
| POST | `/delta/catalog/verify` | Checks that a Delta catalog connection can read a table's storage. |
| POST | `/delta/r2rml/generate` | Generates an R2RML mapping (Turtle) for Delta tables. |
| POST | `/delta/r2rml/validate` | Validates an R2RML mapping for Delta tables. |
| POST | `/drop` | Drop a whole ledger (every branch under the supplied name) or, as a fallback, a graph source with the same name. |
| POST | `/drop-branch` | Drop a branch from a ledger. Admin-protected. |
| POST | `/drop-graph` | Drop a single named graph, and its history, from one branch of a ledger. |
| GET | `/events` | Server-Sent Events (SSE) stream of nameservice changes for ledgers and graph sources. |
| GET | `/exists/{ledgerId}` | Check if a ledger exists in the nameservice. |
| GET | `/explain` | Return a query plan without executing the query. Accepts the same body formats and authentication as `/query` (JSON‑LD, SPARQL via `application/sparql-query`... |
| POST | `/explain` | Return a query plan without executing the query. Accepts the same body formats and authentication as `/query` (JSON‑LD, SPARQL via `application/sparql-query`... |
| POST | `/export` | Export a ledger (not fully shown in excerpt). |
| GET | `/graphql-schema/{ledger...}` | The derived schema as GraphQL SDL, including mutations when the ledger's `graphql:Schema` enables them. |
| GET | `/graphql/{ledger...}` | Execute a GraphQL request against the schema derived from the ledger's own data. |
| POST | `/graphql/{ledger...}` | Execute a GraphQL request against the schema derived from the ledger's own data. |
| GET | `/health` | GET /health |
| POST | `/iceberg/catalog/verify` | Checks that a catalog connection's credentials can read a table's storage. |
| POST | `/import-upload` | Mint an import upload session for a `.flpack` (or source) archive. |
| GET | `/import-upload/{importId}` | Check status of an import upload session. |
| POST | `/import-upload/{importId}/complete` | Complete an import upload session, triggering asynchronous restore. |
| POST | `/import/*ledger` | Create a new ledger by restoring a `.flpack` archive. |
| GET | `/info/{ledger}-id` | Get specific ledger metadata |
| POST | `/insert` | Insert or upsert data (JSON-LD, Turtle and TriG) |
| GET | `/ledgers` | List all ledgers |
| GET | `/log/*ledger` | Return a paginated list of lightweight commit summaries (newest‑first by `t`). |
| POST | `/merge` | Merge a source branch into a target branch. |
| GET | `/merge-preview/{ledgerName}` | Read‑only preview of merging a source branch into a target branch. |
| POST | `/multi-query` | Bundle multiple queries against a shared snapshot (dedicated doc). |
| POST | `/nameservice/refs/{alias}/commit` | Compare‑and‑set push for a ledger's commit‑head ref. |
| POST | `/nameservice/refs/{alias}/index` | Compare‑and‑set push for a ledger's index‑head ref. |
| POST | `/nameservice/refs/{alias}/init` | Create a ledger entry in the nameservice if it does not already exist. |
| GET | `/nameservice/snapshot` | Return a full snapshot of all ledger and graph‑source records visible to the caller. |
| POST | `/pack/*ledger` | Stream all missing CAS objects for a ledger in a single binary response. |
| POST | `/push-merges/{ledger}` | Push commits whose history contains a merge. |
| POST | `/push/{ledger}` | Push precomputed commit v2 blobs to the server. |
| GET | `/query` | Execute a SPARQL query via the GET form (query parameter). |
| OPTIONS | `/query` | OPTIONS /query |
| POST | `/query` | Execute queries (JSON-LD, SPARQL, Cypher). |
| POST | `/query/{ledger}` | Execute a query scoped to a specific ledger. |
| POST | `/rebase` | Rebase a branch onto its source branch's current HEAD. |
| POST | `/reindex` | Trigger a full manual reindex for a ledger. |
| GET | `/show/{ledger}` | Fetch and decode a single commit's contents with resolved IRIs. |
| GET | `/stats` | Server status and statistics |
| POST | `/storage/block` | Fetch a storage block (index branch or leaf) by CID. |
| GET | `/storage/credentials` | Mint STS credentials scoped to a ledger's S3 prefix. |
| POST | `/sweep` | Reclaim index artifacts that no index chain references. |
| POST | `/sweep/plan` | Report what POST /sweep would reclaim, without deleting anything. |
| POST | `/sync` | Make one graph's contents exactly the payload, committing only the difference (JSON-LD, Turtle, N-Triples or TriG) |
| POST | `/sync/{ledgerId}` | Synchronize a named graph. |
| POST | `/update` | Submit update transactions (WHERE/DELETE/INSERT or SPARQL UPDATE). |
| POST | `/update/{ledgerId}` | Submit an update transaction to write data to a ledger. |
| POST | `/upsert` | Insert or upsert data (JSON-LD, Turtle and TriG) |
| POST | `/v1/fluree/branch` | POST /v1/fluree/branch |
| GET | `/v1/fluree/branch/mydb` | GET /v1/fluree/branch/mydb |

…and 39 more operations. They are listed in full on the page.

## Machine-readable artifacts (7)

- **OpenAPI** — https://artifacts.apis.io/fluree/openapi/_ae-authored/fluree-openapi-generated.yml
- **JSONSchema** — https://artifacts.apis.io/fluree/json-schema/fluree-post-iceberg-catalog-verify-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/fluree/json-schema/fluree-post-import-upload-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/fluree/json-schema/fluree-post-rebase-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/fluree/json-schema/fluree-get-merge-preview-ledgername-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/fluree/json-schema/fluree-post-pack-ledger-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/fluree/json-schema/fluree-post-delta-r2-rml-generate-request-schema.json

## Other Fluree APIs (1)

- [Fluree Memory API](https://apis.io/apis/fluree/fluree-memory-api/)

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/fluree` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/fluree/fluree-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/fluree/.
