This is an array of objects with a type and value used to identify or create sessions and manage user session mappings. The three supported identifier types are: The objects can be of three types:
userReference (highest priority)
sessionReference
sessionIdentity(lowest priority)
Refer to [this](overview.md) for a detailed description.
Returns details of the newly created session, which are required for managing and continuing conversations. The response also includes document upload configuration and allowed file types, enabling clients to validate uploads in advance and prevent unnecessary failures. The fields in the response include:
session – Metadata about the created session.
sessionId - A unique identifier for the session.
Status - Indicates the current state of the session. Possible values: idle, busy, error.
sessionReference - A unique reference string associated with the session for easier cross-request tracking.
userReference - Unique reference string for the user associated with the session.
userId - Internal system-generated identifier for the user.
createdAt - Timestamp indicating when the session was created.
allowedMimeTypes – List of supported file formats for uploads.
fileUploadConfig – File Upload rules configured for the app. These rules apply to both types of documents - uploaded for context extraction and for Metadata generation. The following fields are available in this field.
maxFileCount - Max number of files that can be uploaded.
maxFileSize - Max size of each file that can be uploaded. The value is in MBs.
maxTokens - Specifies the maximum allowed combined size of all uploaded files, measured in tokens. If the total token size exceeds this limit, only files that comply with the threshold are uploaded; files exceeding it will be rejected.
Note: When a new session is initiated, and the application requires permissions for OAuth authorization from the user, the API response includes a special event of type IDP_Redirect.
This event provides a URL that the user must visit to complete the authorization process. If the required authorization is not completed, the associated tools will return an error upon invocation.
Details related to pagination include the total number of matching sessions, the Index of the last item returned in this response, and whether more sessions are available beyond the current result.