session

List active sessions

Retrieve foreground Session drains currently owned by this OpenCode process. Sessions absent from the result are inactive.

get/api/session/active

Request

  • Base URL: https://opencode.ai (the document declares no server; this is the origin it was published from)
  • URL: https://opencode.ai/api/session/active
  • Auth: none required

Response

Success

dataobject required

Changes

No recorded changes to this operation across all 1 revision of this API.