Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

Clerk session token, Authorization: Bearer <token>. This documents the app's own internal auth as of S1-S6 — see S8-public-api-bonus.md for the fallback scope this doc covers, and the public API-key scheme's own page once the full scope ships.

Path Parameters

runId
string
required
Minimum string length: 1

Response

Run cancelled.

id
string
required
chatId
string
required
status
enum<string>
required
Available options:
queued,
running,
waiting,
completed,
failed,
cancelled
userMessageId
string
required
assistantMessageId
string | null
required
lastStreamIndex
integer
required
cancelRequestedAt
string | null
required
requestedModel
string
required
resolvedModel
string | null
required
errorCode
string | null
required
errorMessage
string | null
required
createdAt
string
required
updatedAt
string
required
startedAt
string | null
required
finishedAt
string | null
required
toolInvocations
object[]
required
totalCreditsUsed
number
required
Required range: x >= 0
pendingWaitpoint
object
required