BizKitHub
DokumentacjaEksplorator APISupport/api/v1/support/my-issue-detail
getSupportPubliczne 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

Parametry

3 w query

Parametry query

· 3
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
identityIdstringOpcjonalne

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

PrzykładZ9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg
externalIdstringWymagane

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

Długość: 1–32
PrzykładQr0MZ0vYnp8xMYgs

Schemat odpowiedzi

2 udokumentowane kody statusu

200Sukces
success"true"Wymagane
issueobjectWymagane
externalIdstringWymagane
issueKeystringWymagane
subjectstringWymagane
descriptionstringWymagane

Sanitised HTML.

statusCategoryCode"new" | "progress" | "waiting" | "done"Wymagane
statusLabelstringWymagane
prioritynumber | nullWymagane
insertedDatestringWymagane
localestringWymagane
organisationNamestringWymagane
organisationLogostring | nullWymagane
reporterobjectWymagane
emailstring | nullWymagane
displayNamestringWymagane
commentsobject[]Wymagane

Newest first, at most 100.

Każdy element tablicy:
idstringWymagane
PrzykładGYMRO-844_c1267
authorKind"human" | "ai" | "system"Wymagane
authorDisplayNamestringWymagane
channel"internal" | "email_out" | "email_in"Wymagane

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

insertedDatestringWymagane
messagestringWymagane

Sanitised HTML.

attachmentsobject[]Wymagane
Każdy element tablicy:
tokenstringWymagane
filenamestringWymagane
sizenumberWymagane
contentTypestringWymagane
downloadUrlstringWymagane

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

branchSlugstring | nullWymagane
assignedToMebooleanWymagane
lastCommentIdstring | nullWymagane

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

securedTicketbooleanWymagane

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": "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
  }
}

Wszystkie udokumentowane kody statusu

· 2

Przykład żądania

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"

Potrzebujesz klucza API?

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

Uzyskaj klucz API