BizKitHub
DokumentacjaEksplorator APISupport/api/v1/support/issue/{externalId}
getSupportPubliczne 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

Parametry

1 w ścieżce · 1 w query

Parametry ścieżki

· 1
externalIdstringWymagane

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

Długość: 16
Przykłada1B2c3D4e5F6g7H8

Parametry query

· 1
apiKeystringWymagane

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

PrzykładPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
object | object
Jedna z 2 opcji:
Wariant 1
success"true"Wymagane
issueobjectWymagane
externalIdstringWymagane
issueKeystringWymagane
subjectstringWymagane
descriptionstringWymagane
statusCategoryCode"new" | "progress" | "waiting" | "done"Wymagane
statusLabelstringWymagane
prioritynumber | nullWymagane
insertedDatestringWymagane
localestringWymagane
organisationNamestringWymagane
organisationLogostring | nullWymagane
reporterobjectWymagane
emailstring | nullWymagane
displayNamestringWymagane
commentsobject[]Wymagane
Każdy element tablicy:
idstringWymagane
authorKind"human" | "ai" | "system"Wymagane
authorDisplayNamestringWymagane
insertedDatestringWymagane
messagestringWymagane

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[]Wymagane

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

Każdy element tablicy:
tokenstringWymagane

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

filenamestringWymagane
sizenumberWymagane

File size in bytes.

contentTypestringWymagane
downloadUrlstringWymagane

Signed direct-download URL.

escalationsobject[]Wymagane

Accepted escalation requests, oldest first.

Każdy element tablicy:
insertedDatestringWymagane
reasonstringWymagane

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

previousPrioritynumberWymagane

Priority before the escalation (1..5).

newPrioritynumberWymagane

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

nextEscalationAllowedAtstring | nullWymagane

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

Wariant 2
success"false"Wymagane
error"NOT_FOUND" | "INVALID_EXTERNAL_ID"Wymagane

Przykład odpowiedzi

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
      }
    ]
  }
}

Przykład żądania

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"

Potrzebujesz klucza API?

Wszystkie publiczne endpointy BizKitHub API uwierzytelniają się kluczem API.

Uzyskaj klucz API