Workspace · Support Assistant

Get a support answer

Fetches a support answer.

GEThttps://api.pozy.ai/v1/support/runs/{runId}
getSupportAnswer

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys can call it. Authentication

Path parameters

NameTypeNotes
runIdrequiredstring

Example

curl -X GET "https://api.pozy.ai/v1/support/runs/6e3431a916a6bb08fe30481d" \
  -H "Authorization: Bearer $POZY_API_KEY"

Response

200 on success

  • runIdstringrequired
  • threadIdstringrequired
  • statusstringrequired

    One of queued, running, completed, needs_human, failed.

  • stopReasonstringrequired

    One of answered, human_review, cost_cap, deadline, max_iterations, error, expired. Can be null.

  • questionstringrequired

    Can be null.

  • answerstringrequired

    Can be null.

  • diagnosisobjectrequired

    One of:

    Support Run Diagnosis (5 fields)
    • categorystringrequired

      One of account_connection, content_rejected, rate_limited, platform_issue, pozy_issue, billing, configuration, how_to, other.

    • causestringrequired

      Can be null.

    • fixStepsarray of stringrequired
    • docsLinksarray of stringrequired
    • whoMustActstringrequired

      One of integrator, end_user, pozy, platform, none.

  • usageobjectrequired
    • inputTokensintegerrequired
    • outputTokensintegerrequired
    • cacheReadTokensintegerrequired
    • cacheWriteTokensintegerrequired
  • costUsdnumberrequired
  • maxCostUsdnumberrequired
  • createdAtstring (date-time)required
  • startedAtstring (date-time)required

    Can be null.

  • finishedAtstring (date-time)required

    Can be null.

  • supportTicketobjectrequired

    Can be null.

    • openedAtstring (date-time)required
  • pollAfterSecondsinteger
200 response
{
  "runId": "6e3431a916a6bb08fe30481d",
  "threadId": "60186572e25ff711298bf12e",
  "status": "queued",
  "stopReason": "answered",
  "question": "string",
  "answer": "string",
  "diagnosis": {
    "category": "account_connection",
    "cause": "string",
    "fixSteps": [
      "string"
    ],
    "docsLinks": [
      "string"
    ],
    "whoMustAct": "integrator"
  },
  "usage": {
    "inputTokens": 1,
    "outputTokens": 1,
    "cacheReadTokens": 1,
    "cacheWriteTokens": 1
  },
  "costUsd": 12.5,
  "maxCostUsd": 12.5,
  "createdAt": "2026-10-02T09:00:00.000Z",
  "startedAt": "2026-10-02T09:00:00.000Z",
  "finishedAt": "2026-10-02T09:00:00.000Z",
  "supportTicket": {
    "openedAt": "2026-10-02T09:00:00.000Z"
  },
  "pollAfterSeconds": 1
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is scoped to other profiles or has this resource group disabled.
404not_foundNothing with that id exists in your workspace.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Support Assistant