Skip to main content

Fluree HTTP API

This reference documents all HTTP API endpoints provided by Fluree Server.

Endpoint Categories

CategoryEndpointsDescription
Ledger Operationscreate, drop, exists, ledger-info, statusCreate, delete, and inspect ledgers
Transactionstransact, insert, upsert, updateModify data in ledgers
Queriesquery, history, explainRead and analyze data
Real-Timenotify, subscribeWebSocket subscriptions and notifications
Remoteremote/*Distributed/federated scenarios

Base URL

All endpoints are relative to your Fluree server URL:


http://localhost:58090/v1/fluree/{endpoint}

For Fluree Cloud, use:


https://data.flur.ee/fluree/{endpoint}


Request Headers

All endpoints accept standard HTTP headers. Several custom headers are available for controlling request behavior.

Content Type Headers

HeaderValueDescription
Content-Typeapplication/jsonJSON-LD format (default)
Content-Typetext/turtleTurtle/TTL RDF format
Content-Typeapplication/sparql-querySPARQL SELECT/CONSTRUCT query
Content-Typeapplication/sparql-updateSPARQL UPDATE (DELETE/INSERT)
Content-Typeapplication/jwtSigned JWT credential

Fluree-Specific Headers

HeaderValueDescription
fluree-ledgerstringTarget ledger name (required for /insert, /upsert)
fluree-formatfql, sparql, turtleInput format hint when Content-Type is ambiguous
fluree-outputfql, sparqlOutput format for query results

Policy and Identity Headers

HeaderValueDescription
fluree-identitystringUser identity (DID or IRI) for policy evaluation
fluree-policyJSON stringInline policy document for this request
fluree-policy-identitystringIdentity to use for policy lookup
fluree-policy-classstringPolicy class to apply
fluree-policy-valuesJSON stringValues to bind in policy evaluation

Resource Control Headers

HeaderValueDescription
fluree-max-fuelintegerMaximum fuel (computational units) allowed for this request
fluree-track-fueltrue, falseInclude fuel consumption in response
fluree-track-metatrue, falseInclude metadata in response
fluree-track-policytrue, falseInclude policy evaluation details in response
fluree-ledger-optsJSON stringAdditional ledger options as JSON

Response Headers

Fluree may return these headers in responses:

HeaderValueDescription
x-fdb-timeintegerQuery execution time in milliseconds
x-fdb-fuelintegerFuel consumed by the request
x-fdb-policystringBase64-encoded policy evaluation details