Skip to main content
The Session API provides endpoints for creating, managing, and querying conversation sessions in Goose.

List Sessions

Get all available sessions.

Response

Example

Get Session

Retrieve a specific session with full conversation history.

Response

Example

Search Sessions

Search sessions by keywords in conversation history.

Query Parameters

  • query (required): Search keywords
  • limit (optional): Max results (default: 10, max: 50)
  • after_date (optional): ISO 8601 date filter
  • before_date (optional): ISO 8601 date filter

Response

Example

Update Session Name

Rename a session.

Request Body

Example

Delete Session

Permanently delete a session.

Example

Export Session

Export session data as JSON for backup or transfer.

Response

Returns a JSON string containing the complete session data.

Example

Import Session

Import a previously exported session.

Request Body

Response

Returns the imported Session object.

Example

Fork Session

Create a copy of a session or truncate conversation history.

Request Body

Parameters:
  • copy: If true, creates a new session copy
  • truncate: If true, removes messages after timestamp
  • timestamp: Unix timestamp in milliseconds (required if truncate is true)

Response

Examples

Copy a session:
Truncate conversation at a point in time:

Get Session Extensions

Retrieve the extensions enabled for a specific session.

Response

Example

Update Recipe Values

Update user-provided recipe parameter values for a session.

Request Body

Response

Example

Get Session Insights

Get aggregate statistics across all sessions.

Response

Example

Error Responses

Error Format

Session Object Schema

A complete Session object has the following structure: