BizKitHub
DokumentáciaPrieskumník APISupport/api/v1/support/my-issue-detail
getSupportVerejné API v1

/api/v1/support/my-issue-detail

Same shape as GET /support/issue/{externalId} (customer-visible thread without spam) plus branchSlug, assignedToMe, lastCommentId, securedTicket and channel on every comment. Internal notes (channel = internal) are included only for a ticket assigned to the caller, and only those written by people (never AI / system entries). The reporter's IP address is never included.

Access rule ISSUE_ACCESS (evaluated on every call): the caller is the contact behind identityId in the organisation of apiKey. A ticket is accessible when it belongs to that organisation, is classified as not spam, and

  • A (assignment): it is assigned to the caller's contact (also confidential tickets), or
  • B (branch): its branch is an active branch the caller operates (shop__branch_person role technician, manager or owner), the ticket is not confidential (securedTicket / hidden from the branch) and it was not handed back to the head office.

There is no owner (root) shortcut and contact groups (fransiza, trainer, …) never grant access. An inaccessible and a non-existent externalId answer the same 403 ISSUE_FORBIDDEN. A missing or invalid identityId answers 401.

supportgetApiV1SupportMy-issue-detail

Parametre

3 v query

Parametre v query

· 3
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
identityIdstringVoliteľné

Logged user identity (from your frontend cookies). Learn more

PríkladZ9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg
externalIdstringPovinné

Opaque 16-char ticket id (externalId from /support/my-issue-list).

Dĺžka: 1–32
PríkladQr0MZ0vYnp8xMYgs

Schéma odpovede

2 zdokumentované stavové kódy

200Úspech
success"true"Povinné
issueobjectPovinné
externalIdstringPovinné
issueKeystringPovinné
subjectstringPovinné
descriptionstringPovinné

Sanitised HTML.

statusCategoryCode"new" | "progress" | "waiting" | "done"Povinné
statusLabelstringPovinné
prioritynumber | nullPovinné
insertedDatestringPovinné
localestringPovinné
organisationNamestringPovinné
organisationLogostring | nullPovinné
reporterobjectPovinné
emailstring | nullPovinné
displayNamestringPovinné
commentsobject[]Povinné

Newest first, at most 100.

Každá položka poľa:
idstringPovinné
PríkladGYMRO-844_c1267
authorKind"human" | "ai" | "system"Povinné
authorDisplayNamestringPovinné
channel"internal" | "email_out" | "email_in"Povinné

email_out = reply sent to the customer, email_in = message from the customer, internal = staff note.

insertedDatestringPovinné
messagestringPovinné

Sanitised HTML.

attachmentsobject[]Povinné
Každá položka poľa:
tokenstringPovinné
filenamestringPovinné
sizenumberPovinné
contentTypestringPovinné
downloadUrlstringPovinné

Signed direct-download URL. Fetch fresh, do not cache.

branchSlugstring | nullPovinné
assignedToMebooleanPovinné
lastCommentIdstring | nullPovinné

Last customer-visible comment; send it back with /my-issue-reply.

securedTicketbooleanPovinné

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": "GYMRO-844_c1267",
        "authorDisplayName": "example_authorDisplayName",
        "insertedDate": "example_insertedDate",
        "message": "example_message"
      }
    ],
    "attachments": [
      {
        "token": "example_token",
        "filename": "example_filename",
        "size": 0,
        "contentType": "example_contentType",
        "downloadUrl": "example_downloadUrl"
      }
    ],
    "assignedToMe": false,
    "securedTicket": false
  }
}

Všetky zdokumentované stavové kódy

· 2

Ukážka požiadavky

GET /api/v1/support/my-issue-detail

get
curl -X GET "https://api.bizkithub.com/api/v1/support/my-issue-detail?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&identityId=Z9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg&externalId=Qr0MZ0vYnp8xMYgs" \
  -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ľúč