Support Runs
Get a support run (private beta)
Private beta: returns 403 feature_not_available unless enabled for your account. Returns a run started by your team. Prefer the support.run.completed and support.run.failed webhooks; use this as the fallback, waiting pollAfterSeconds between polls. costUsd is the amount billed: the model cost plus 20%, never above maxCostUsd, and 0 for a failed run.
Authorization
bearerAuth AuthorizationBearer <token>
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
runId*string
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.supportruns.getSupportRun({ path: { runId: 'run_abc123', },});console.log(data);{ "runId": "string", "threadId": "string", "status": "queued", "stopReason": "answered", "answer": "string", "usage": { "inputTokens": 0, "outputTokens": 0, "cacheReadTokens": 0, "cacheWriteTokens": 0 }, "costUsd": 0, "maxCostUsd": 0, "createdAt": "2019-08-24T14:15:22Z", "startedAt": "2019-08-24T14:15:22Z", "finishedAt": "2019-08-24T14:15:22Z", "pollAfterSeconds": 0}Was this page helpful?