Skip to content

Reference

API Reference

Ontologie REST API reference documentation

2 min

At a glance

Complete documentation for the Ontologie REST API. Authenticate your requests, browse available endpoints, and integrate Ontologie with your tools.

Technical prerequisites

  • An active API key (see the API Keys Guide).
  • The UUID identifier of your workspace.
  • An HTTP client (curl, Postman, Insomnia, or equivalent).

Explore your endpoints in Ontologie: the API Manager module lets you test and simulate all the endpoints generated by your ontology, directly from the application.

Base URL {#base-url}

https://api.ontologie-growthsystemes.com

Authentication {#authentication}

All endpoints require authentication:

curl "https://api.ontologie-growthsystemes.com/api/queries/nodes" \
  -H "Authorization: Bearer df_xxxxxxxxxxxxxxxxxxxx" \
  -H "x-workspace-id: 550e8400-e29b-41d4-a716-446655440000"

Required headers {#required-headers}

HeaderRequiredDescription
AuthorizationYesBearer
x-workspace-idYes*Workspace UUID (*except global routes)
Content-TypeFor POST/PUTapplication/json

See the API Keys Guide for key management.

Response format {#response-format}

Success response {#success}

{
  "success": true,
  "data": { ... },
  "meta": {
    "total": 100,
    "limit": 50,
    "offset": 0
  },
  "requestId": "req_xxxxxxxxxxxx"
}

Error response {#error}

{
  "success": false,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid entity type",
    "details": { ... }
  },
  "requestId": "req_xxxxxxxxxxxx"
}

Main endpoints {#main-endpoints}

Queries (Read) {#queries}

MethodEndpointDescription
GET/reference/api/queries/nodesList all entities
GET/reference/api/queries/nodes/:idGet an entity by ID
GET/reference/api/queries/edgesList all relationships
GET/reference/api/queries/edges/:idGet a relationship by ID

Commands (Write) {#commands}

MethodEndpointDescription
POST/reference/api/commands/executeExecute a command

Command types:

  • CREATE_NODE - Create an entity
  • UPDATE_NODE - Update an entity
  • DELETE_NODE - Delete an entity
  • CREATE_EDGE - Create a relationship
  • DELETE_EDGE - Delete a relationship
  • UNDO - Undo the last action
  • REDO - Redo the last undone action

Live Data {#live-data}

MethodEndpointDescription
GET/reference/api/connecter/donnees/sourcesList data sources
POST/reference/api/connecter/donnees/sourcesCreate a data source
POST/reference/api/connecter/donnees/ingestIngest data points
GET/reference/api/connecter/donnees/queryQuery time series

RAG {#rag}

MethodEndpointDescription
POST/reference/api/rag/searchSemantic search
POST/reference/api/rag/hybrid-searchHybrid vector+graph search
GET/reference/api/rag/index/statusIndex status

Pagination {#pagination}

GET /reference/api/queries/nodes?limit=50&offset=100
ParameterDefaultMaxDescription
limit50100Items per page
offset0-Items to skip

Filtering {#filtering}

GET /reference/api/queries/nodes?entityType=concept&name=Client

Sorting {#sorting}

GET /reference/api/queries/nodes?sort=-createdAt,name
  • Prefix - for descending order
  • Multiple fields separated by comma

Rate limits {#rate-limits}

PlanRequests/minRequests/day
Starter6010,000
Pro300100,000
EnterpriseCustomCustom

Headers in the response:

X-RateLimit-Limit: 60
X-RateLimit-Remaining: 45
X-RateLimit-Reset: 1700000000

HTTP status codes {#status-codes}

CodeMeaning
200Success
201Created
204No content (DELETE)
400Bad request
401Unauthenticated
403Forbidden
404Not found
409Version conflict
429Rate limit exceeded
500Server error

cURL examples {#curl}

export API_KEY="df_xxx"
export WORKSPACE_ID="550e8400-..."
export API_URL="https://api.ontologie-growthsystemes.com"

curl "$API_URL/reference/api/queries/nodes" \
  -H "Authorization: Bearer $API_KEY" \
  -H "x-workspace-id: $WORKSPACE_ID"

OpenAPI specification {#openapi}

The OpenAPI specification is available in the repository at docs/reference/api/openapi.yaml.

Import it into Postman, Insomnia, or generate client SDKs.

Expected outcome

Need help?

Write to us: Support and contact.