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}
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer |
x-workspace-id | Yes* | Workspace UUID (*except global routes) |
Content-Type | For POST/PUT | application/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}
| Method | Endpoint | Description |
|---|---|---|
GET | /reference/api/queries/nodes | List all entities |
GET | /reference/api/queries/nodes/:id | Get an entity by ID |
GET | /reference/api/queries/edges | List all relationships |
GET | /reference/api/queries/edges/:id | Get a relationship by ID |
Commands (Write) {#commands}
| Method | Endpoint | Description |
|---|---|---|
POST | /reference/api/commands/execute | Execute a command |
Command types:
CREATE_NODE- Create an entityUPDATE_NODE- Update an entityDELETE_NODE- Delete an entityCREATE_EDGE- Create a relationshipDELETE_EDGE- Delete a relationshipUNDO- Undo the last actionREDO- Redo the last undone action
Live Data {#live-data}
| Method | Endpoint | Description |
|---|---|---|
GET | /reference/api/connecter/donnees/sources | List data sources |
POST | /reference/api/connecter/donnees/sources | Create a data source |
POST | /reference/api/connecter/donnees/ingest | Ingest data points |
GET | /reference/api/connecter/donnees/query | Query time series |
RAG {#rag}
| Method | Endpoint | Description |
|---|---|---|
POST | /reference/api/rag/search | Semantic search |
POST | /reference/api/rag/hybrid-search | Hybrid vector+graph search |
GET | /reference/api/rag/index/status | Index status |
Pagination {#pagination}
GET /reference/api/queries/nodes?limit=50&offset=100
| Parameter | Default | Max | Description |
|---|---|---|---|
limit | 50 | 100 | Items per page |
offset | 0 | - | 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}
| Plan | Requests/min | Requests/day |
|---|---|---|
| Starter | 60 | 10,000 |
| Pro | 300 | 100,000 |
| Enterprise | Custom | Custom |
Headers in the response:
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 45
X-RateLimit-Reset: 1700000000
HTTP status codes {#status-codes}
| Code | Meaning |
|---|---|
200 | Success |
201 | Created |
204 | No content (DELETE) |
400 | Bad request |
401 | Unauthenticated |
403 | Forbidden |
404 | Not found |
409 | Version conflict |
429 | Rate limit exceeded |
500 | Server 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.
