Skip to main content
POST
TypeScript SDK

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Notion-Version
enum<string>
required

The API version to use for this request. The latest version is 2026-03-11.

Available options:
2026-03-11

Path Parameters

session_id
string
required

The ID of the session to cancel.

Body

application/json
event_id
string

A session event identifying the turn to cancel. If omitted, cancels the current nonterminal turn.

Response

object
string
required

Always session

Allowed value: "session"
id
string
required
agent_id
string
required
title
string
required
status
enum<string>
required

One of: queued, in_progress, requires_action, completed, failed, canceled, terminated

Available options:
queued,
in_progress,
requires_action,
completed,
failed,
canceled,
terminated
created_at
string<date-time>
required
updated_at
string<date-time>
required
required_actions
object[]
Maximum array length: 100
error
object