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

/api/v1/support/my-issue-list

Tickets of the caller's branches plus tickets assigned to the caller. Sorted: waiting for a reply first, then by last activity (newest first). A caller without branch and assignment gets 200 with items: [].

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-list

Parametre

8 v query

Parametre v query

· 8
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
statusCategoryCodestring | string[]Voliteľné

Status category filter: new, progress, waiting, done. Repeat the parameter or pass a comma-separated list. Default: all.

Príkladnew,progress
closedSinceDaysstring | integerVoliteľné

Tickets in category done are listed only when their last activity is at most this many days old. 0 = no closed tickets.

Rozsah: 0–90Predvolené: 14
Príklad14
pagestring | integerVoliteľné
Rozsah: 1–∞Predvolené: 1
Príklad1
limitstring | integerVoliteľné
Rozsah: 1–100Predvolené: 50
Príklad50
localestringVoliteľné

Language of statusLabel. Default: the ticket language, then the organisation language.

Dĺžka: 0–5
Príkladcs
branchSlugstringVoliteľné

Only tickets of this branch. A branch the caller does not operate simply yields an empty list.

Dĺžka: 0–255
Príkladplzen-skvrnany

Schéma odpovede

1 zdokumentovaný stavový kód

200Úspech
success"true"Povinné
itemCountnumberPovinné

Total number of matching tickets (all pages).

itemsobject[]Povinné
Každá položka poľa:
externalIdstringPovinné
PríkladQr0MZ0vYnp8xMYgs
issueKeystringPovinné
PríkladGYMRO-844
subjectstringPovinné
previewstringPovinné

First ~220 characters of the description as plain text (no HTML, no markdown).

statusCategoryCode"new" | "progress" | "waiting" | "done"Povinné
statusLabelstringPovinné
PríkladNový
branchSlugstring | nullPovinné
Príkladplzen-skvrnany
reporterDisplayNamestringPovinné
PríkladJana Nováková
assignedToMebooleanPovinné

Accessible through rule A (assigned to the caller).

waitsForReplybooleanPovinné

Not done and the last customer-visible message (description, inbound mail, portal reply) is from the customer.

lastCommentIdstring | nullPovinné

Id of the last customer-visible comment (ISSUEKEY_c<n>), null when there is none. Pass it to /my-issue-reply.

PríkladGYMRO-844_c1267
insertedDatestringPovinné

ISO timestamp.

lastActivityDatestringPovinné

ISO timestamp of the last update or customer-visible message.

Ukážka odpovede

application/json
{
  "success": true,
  "itemCount": 0,
  "items": [
    {
      "externalId": "Qr0MZ0vYnp8xMYgs",
      "issueKey": "GYMRO-844",
      "subject": "example_subject",
      "preview": "example_preview",
      "statusLabel": "Nový",
      "branchSlug": "plzen-skvrnany",
      "reporterDisplayName": "Jana Nováková",
      "assignedToMe": false,
      "waitsForReply": false,
      "lastCommentId": "GYMRO-844_c1267",
      "insertedDate": "example_insertedDate",
      "lastActivityDate": "example_lastActivityDate"
    }
  ]
}

Ukážka požiadavky

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

get
curl -X GET "https://api.bizkithub.com/api/v1/support/my-issue-list?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&identityId=Z9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg&statusCategoryCode=new%2Cprogress&closedSinceDays=14&page=1&limit=50&locale=cs&branchSlug=plzen-skvrnany" \
  -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ľúč