box-node-sdk

AiSessionsManager

List AI sessions

Returns a marker-paginated list of the AI sessions that the authenticated user can read and that were created through the Box public API. Entries are ordered by sort and direction, defaulting to updated_at descending so the most recently active session appears first.

The access token must have both the ai.readwrite and root_readwrite scopes.

A page may contain fewer than limit entries while further pages remain. Treat a non-null next_marker as the only signal that more results exist.

This operation is performed by calling function getAiSessionsV2026R0.

See the endpoint docs at API Reference.

Currently we don’t have an example for calling getAiSessionsV2026R0 in integration tests

Arguments

Returns

This function returns a value of type AiSessionsV2026R0.

Returns a paginated list of AI sessions.

Delete AI session

Deletes an AI session created through the Box public API, together with its agent tasks. The session’s agent-generated files and uploaded files are moved to the trash. Files attached as sources from elsewhere in Box are not affected. Deleting a session does not stop a running task or notify the agent.

The access token must have both the ai.readwrite and root_readwrite scopes.

This operation is performed by calling function deleteAiSessionByIdV2026R0.

See the endpoint docs at API Reference.

Currently we don’t have an example for calling deleteAiSessionByIdV2026R0 in integration tests

Arguments

Returns

This function returns a value of type undefined.

Returns an empty response when the AI session was successfully deleted.