Skip to main content
POST
Get session detail

Restrictions

Usage

  • Personal sessions are readable only by their creator; team sessions can be read by same-account callers with the session_id.
  • Page older history with search_after_ctx from the previous response.
  • limit (or legacy num_recent_events) caps the event page; default 100, max 1000.
  • A malformed search_after_ctx returns 400 immediately, before any DB work.
  • current_turn_* fields are populated only while the session is_running; suggest_init is the same account-wide onboarding flag as session/list.

Authorizations

app_key
string
query
required

App key issued from the Flashduty console. Required on every public API call. Keep it secret — it grants the same access as the owning account.

Body

application/json

Fetch one session plus a backward-paged window of its most recent events.

session_id
string
required

Target session ID.

Minimum string length: 1
share_token
string

Share token for accessing a session through its share link. Omit it for normal account-authorized access.

Maximum string length: 512
num_recent_events
integer

Legacy page size: number of most-recent events to return. Superseded by limit when both are set; 0 uses the server default (100).

Required range: 0 <= x <= 1000
limit
integer

Page size for events; takes precedence over num_recent_events. 0 uses the server default (100).

Required range: 0 <= x <= 1000
search_after_ctx
string

Opaque keyset cursor from a previous response; pass it back to fetch the next older page.

Maximum string length: 4096

Response

Success

Standard response envelope used by every Flashduty public API. On success data contains the endpoint-specific payload and error is absent. On failure error is present and data is absent. request_id is always present and is also mirrored in the Flashcat-Request-Id response header.

request_id
string
required

Unique ID for this request. Mirrored in the Flashcat-Request-Id header. Include it when reporting issues.

Example:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

error
object

Error payload inside the response envelope. Present only on non-2xx responses.

data
object

A session plus a backward-paged window of its events.