Skip to main content
Back to API List Endpoints for managing conversational sessions with your Agentic App.

Create a Session

Establishes a new conversation session for a specific user with the Agentic App. Note: This is the starting point for any new interaction.

Path Parameters

Request Parameters

Sample Request

Response

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.

Sample Response

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 isn’t completed, the associated tools will return an error upon invocation.

List Sessions

Lists sessions for the selected app and environment. Supports optional filters such as session ID, user reference, and date range.

Path Parameters

Query Parameters

Request Parameters

All fields are optional. Send {} to use defaults.

Sample Request

Response Parameters

Sample Response

Get Session details

Path Parameters

Query Parameters

Sample Request

Sample Response

Terminate Session

Terminates a given session.

Path Parameters

Request Parameters

Sample Request

Sample Response