BizKitHub
DokumentáciaPrieskumník APISupport/api/v1/support/issue/{externalId}
getSupportVerejné API v1

/api/v1/support/issue/{externalId}

Returns the public-safe subset of an issue: subject, description, status, priority, reporter (name/email), and the full comment thread. Used by the customer-facing ticket page on bizkithub.com.

supportgetApiV1SupportIssueByExternalId

Parametre

1 v ceste · 1 v query

Parametre v ceste

· 1
externalIdstringPovinné

The 16-char alphanumeric external identifier of the issue (from BKH-ISSUE token).

Dĺžka: 16
Príklada1B2c3D4e5F6g7H8

Parametre v query

· 1
apiKeystringPovinné

Your BizKitHub API key (passed as GET parameter).

Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more

PríkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE

Schéma odpovede

1 zdokumentovaný stavový kód

200Úspech
object | object
Jedna z 2 možností:
Variant 1
success"true"Povinné
issueobjectPovinné
externalIdstringPovinné
issueKeystringPovinné
subjectstringPovinné
descriptionstringPovinné
statusCategoryCode"new" | "progress" | "waiting" | "done"Povinné
statusLabelstringPovinné
prioritynumber | nullPovinné
insertedDatestringPovinné
localestringPovinné
organisationNamestringPovinné
organisationLogostring | nullPovinné
reporterobjectPovinné
emailstring | nullPovinné
displayNamestringPovinné
commentsobject[]Povinné
Každá položka poľa:
idstringPovinné
authorKind"human" | "ai" | "system"Povinné
authorDisplayNamestringPovinné
insertedDatestringPovinné
messagestringPovinné

Comment body rendered as sanitised HTML. Internal staff notes (channel = internal) and spam-flagged rows are stripped at the SELECT level, so this list never leaks either to the customer-facing portal.

attachmentsobject[]Povinné

Files uploaded together with the original issue. Empty when none.

Každá položka poľa:
tokenstringPovinné

Opaque blob token, safe to embed in the public URL.

filenamestringPovinné
sizenumberPovinné

File size in bytes.

contentTypestringPovinné
downloadUrlstringPovinné

Signed direct-download URL.

escalationsobject[]Povinné

Accepted escalation requests, oldest first.

Každá položka poľa:
insertedDatestringPovinné
reasonstringPovinné

Justification as submitted by the requester side (reporter, or a member of the originating organisation).

previousPrioritynumberPovinné

Priority before the escalation (1..5).

newPrioritynumberPovinné

Priority after the escalation (1..5). Equal to previousPriority when already at blocker.

nextEscalationAllowedAtstring | nullPovinné

ISO timestamp from which the ticket may be escalated again (one escalation per ticket per 24 h). null = escalation is available now.

Variant 2
success"false"Povinné
error"NOT_FOUND" | "INVALID_EXTERNAL_ID"Povinné

Ukážka odpovede

application/json
{
  "success": true,
  "issue": {
    "externalId": "example_externalId",
    "issueKey": "example_issueKey",
    "subject": "example_subject",
    "description": "example_description",
    "statusLabel": "example_statusLabel",
    "insertedDate": "example_insertedDate",
    "locale": "example_locale",
    "organisationName": "example_organisationName",
    "reporter": {
      "displayName": "example_displayName"
    },
    "comments": [
      {
        "id": "example_id",
        "authorDisplayName": "example_authorDisplayName",
        "insertedDate": "example_insertedDate",
        "message": "example_message"
      }
    ],
    "attachments": [
      {
        "token": "example_token",
        "filename": "example_filename",
        "size": 0,
        "contentType": "example_contentType",
        "downloadUrl": "example_downloadUrl"
      }
    ],
    "escalations": [
      {
        "insertedDate": "example_insertedDate",
        "reason": "example_reason",
        "previousPriority": 0,
        "newPriority": 0
      }
    ]
  }
}

Ukážka požiadavky

GET /api/v1/support/issue/{externalId}

get
curl -X GET "https://api.bizkithub.com/api/v1/support/issue/a1B2c3D4e5F6g7H8?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Potrebujete API kľúč?

Všetky verejné endpointy BizKitHub API sa overujú API kľúčom.

Získať API kľúč