The API integration uses stable external IDs and upsert calls to keep the knowledge base in sync with your system. When an object is created or changed on your side, you send the updated entity to coreAI.
The production environment lives at `https://portal.coreai.no/api/v2`, and the staging environment lives at `https://stage.coreai.no/api/v2`. Calls use a Bearer token, `assistantId` points to the assistant that should answer, and `contentImporterId` points to the API source where the data is stored.
Upsert via `POST /assistants/{assistantId}/sources/{contentImporterId}` replaces the entire entity. `PATCH` can be used for smaller changes, `DELETE` removes entities that should no longer return answers, and `GET` lets the integration fetch one or more entities by external ID.