REST API
An overview of calling SynkVault from your own software.
The REST API lets your software read your knowledge base without using the web app.
Base path and sign-in
- All routes start with
/api/v1on your SynkVault address. - Send your API key in the
X-Api-Keyheader. - Every route except the health check needs your organisation ID as the
org_idquery parameter. You can copy it from Organisation settings. Your key only works for organisations it has access to.
Example request
curl "https://<your-synkvault-address>/api/v1/ontology?org_id=<your-organisation-id>" \
-H "X-Api-Key: <your-api-key>"
This returns the ontology nodes of your organisation.
Common responses
| Status | Meaning |
|---|---|
401 | The key is missing or invalid. |
400 | The org_id query parameter is missing. |
403 | The key has no access to that organisation. |
Ask your administrator for the address of your SynkVault deployment. Keep your key secret. If it may have been shared, create a new one and delete the old one.