Download OpenAPI specification:Download
Returns the identifiers of all the documents ingested into the AI Assistant database.
If the identifier is listed in the response, the database contains contextual information such document metadata, and document contents, as well as AI synthesized information such as classifications, and summaries.
{- "documents": [
- {
- "documentId": "123456789abc",
- "layerName": "myLayer"
}
]
}
Deletes the data associated with each layer of the given document, as well as the document default layer (no layer name) itself.
All data including contextual data such as document metadata, and document contents, as well as AI synthesized information such as classifications, and summaries will be deleted.
documentId required | string Example: 123456789abc The ID of the document to delete. This ID is given when creating the document on the Document Engine. |
{ }
Deletes the data associated with the given document layer.
All data including contextual data such as document metadata, and document contents, as well as AI synthesized information such as classifications, and summaries will be deleted.
documentId required | string Example: 123456789abc The ID of the document to delete the layer from. This ID is given when creating the document on the Document Engine. |
layerName required | string Example: 123456789abc The name of the layer to delete. This layer name is given when creating a layer on the Document Engine. |
{ }
Checks if a document with the given ID and file hash has already been ingested into the AI Assistant database.
documentId required | string The permanent ID of the document to check if it is ingested. This ID uniquely identifies a document and won't change if the document is modified. |
fileHash required | string The hash of the file in its current state. |
{- "permanentId": "string",
- "changingId": "string",
- "token": "string"
}
Returns all the session information held in the AI Assistant database.
This includes the session ID, the user ID (if present), and the timestamp of the last message sent.
{- "sessions": [
- {
- "sessionId": "123456789abc",
- "timestamp": 1620000000000,
- "userId": "123456789abc"
}
]
}
Deletes all session data for the given Session ID.
This includes all messages and metadata associated with the session. Meaning the chat history will no longer be available.
sessionId required | string Example: 123456789abc The unique identifier for the session. This value is given as part of the AI Assistant configuration when initializing the Nutrient Web SDK. |
{ }
Returns all the session information for all sessions tagged with a given user ID.
Sessions are tagged with a user ID when the AI Assistant configuration in the Nutrient Web SDK is initialized with a user ID.
userId required | string Example: 123456789abc The unique identifier for the user. This value is optionally given in the AI Assistant configuration when initializing the Nutrient Web SDK. |
{- "sessions": [
- {
- "sessionId": "123456789abc",
- "timestamp": 1620000000000,
- "userId": "123456789abc"
}
]
}