{"openapi":"3.1.0","info":{"title":"TaskTraQ API","version":"1.0.0","description":"TaskTraQ's public API, version 1. Changes within v1 are additive: new endpoints, new optional fields, new events. A breaking change becomes v2, and v1 keeps working alongside it for an overlap period.\n\nEvery response uses the envelope `{\"success\": true, \"data\": …}` or `{\"success\": false, \"error\": \"CODE\"}`. Timestamps are ISO 8601 in UTC."},"servers":[{"url":"https://my.tasktraq.app/api/v1"}],"security":[{"apiToken":[]}],"tags":[{"name":"Connect API","description":"For apps your customers use: their users file and follow requests without a TaskTraQ account. A connection key is pinned to one customer."},{"name":"REST API","description":"Staff-level access to a whole workspace with a `ttq_` token. For your own systems only."},{"name":"Reference","description":"This document."},{"name":"Webhooks","description":"Signed POSTs to your URL. Configure under Admin > API & Webhooks."}],"paths":{"/openapi.json":{"get":{"operationId":"getOpenApi","tags":["Reference"],"summary":"This document","security":[],"responses":{"200":{"description":"The OpenAPI 3.1 description of API v1","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/meta":{"get":{"operationId":"getMeta","tags":["REST API"],"summary":"Issue types, statuses and custom fields","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/Meta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/projects":{"get":{"operationId":"listProjects","tags":["REST API"],"summary":"Projects","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/organizations":{"get":{"operationId":"listOrganizations","tags":["REST API"],"summary":"Customer organizations","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"array","items":{"$ref":"#/components/schemas/Organization"}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/issues":{"get":{"operationId":"listIssues","tags":["REST API"],"summary":"List issues","parameters":[{"name":"class","in":"query","schema":{"type":"string","enum":["TICKET","TASK","EPIC","ALL"],"default":"TICKET"}},{"name":"statusCategory","in":"query","schema":{"$ref":"#/components/schemas/StatusCategory"}},{"name":"statusId","in":"query","schema":{"type":"string"}},{"name":"typeId","in":"query","schema":{"type":"string"}},{"name":"assigneeId","in":"query","schema":{"type":"string"}},{"name":"organizationId","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"appId","in":"query","description":"Requests from one connected app.","schema":{"type":"string"}},{"name":"connectionId","in":"query","description":"Requests from one connection (site).","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/IssuePage"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"operationId":"createIssue","tags":["REST API"],"summary":"Create an issue","description":"Needs a token with the write scope.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueCreate"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/Issue"}}}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"READ_ONLY_TOKEN","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"ISSUE_TYPE_NOT_FOUND, ORGANIZATION_NOT_FOUND or PROJECT_NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/issues/{number}":{"get":{"operationId":"getIssue","tags":["REST API"],"summary":"One issue with comments and activity","parameters":[{"name":"number","in":"path","required":true,"description":"The issue number (the digits of KORTEX-412).","schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/Issue"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"description":"ISSUE_NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}},"patch":{"operationId":"updateIssue","tags":["REST API"],"summary":"Change status, assignee or priority","description":"Needs a token with the write scope. Runs the same pipeline as the web: SLA clocks, notifications and webhooks, and for requests from a connected app the app's events feed (`request.status_changed`, `request.resolved`).","parameters":[{"name":"number","in":"path","required":true,"description":"The issue number (the digits of KORTEX-412).","schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueUpdate"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/Issue"}}}}}},"400":{"description":"VALIDATION_ERROR, STATUS_INVALID, ASSIGNEE_INVALID, PRIORITY_INVALID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"READ_ONLY_TOKEN","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"ISSUE_NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"APPROVAL_PENDING","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/issues/{number}/comments":{"post":{"operationId":"createIssueComment","tags":["REST API"],"summary":"Comment on an issue","description":"Needs a token with the write scope.","parameters":[{"name":"number","in":"path","required":true,"description":"The issue number (the digits of KORTEX-412).","schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"string","maxLength":20000},"isInternal":{"type":"boolean","default":false,"description":"true makes it an internal note that customers and apps never see."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/Comment"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"READ_ONLY_TOKEN","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"ISSUE_NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/connect/meta":{"get":{"operationId":"connectGetMeta","tags":["Connect API"],"summary":"What this connection offers","description":"App, connection, request types with their portal-visible custom fields, priorities, areas and limits. Build your request form from this and refresh it now and then; the supplier may change the mapping.","security":[{"connectionKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/ConnectMeta"}}}}}},"401":{"$ref":"#/components/responses/ConnectUnauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/connect/requests":{"get":{"operationId":"connectListRequests","tags":["Connect API"],"summary":"List requests","description":"Newest activity first. With the connection's visibility `OWN`, `contact` is required. With `ORGANIZATION` it may be left out to list every request of this app in the organization.","security":[{"connectionKey":[]}],"parameters":[{"name":"contact","in":"query","description":"A contact's `externalId`. Narrows the result to that person's requests.","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/StatusCategory"}},{"name":"updatedAfter","in":"query","description":"ISO 8601 instant.","schema":{"type":"string","format":"date-time"}},{"name":"organizationRef","in":"query","description":"Multi-organization connections only: your reference for the customer.","schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/RequestPage"}}}}}},"400":{"description":"FIELD_REQUIRED (contact) or VALIDATION_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/ConnectUnauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}}},"post":{"operationId":"connectCreateRequest","tags":["Connect API"],"summary":"File a request","description":"Creates a ticket in the supplier's service desk exactly as their customer portal would: SLA, routing, notifications and required fields apply. On a pinned connection the organization is the connection's; whatever the body says is ignored.","security":[{"connectionKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Any unique string up to 200 characters (A–Z a–z 0–9 . _ : -). Repeating a call with the same key and body returns the first answer and changes nothing, for 48 hours. Send one with every write you might retry.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestCreate"}}}},"responses":{"200":{"description":"An earlier request of this connection with the same externalRef. Nothing was created; the answer has the same shape as 201.","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/RequestDetail"}}}}}},"201":{"description":"Created. The same shape as GET /connect/requests/{key}.","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/RequestDetail"}}}}}},"400":{"description":"VALIDATION_ERROR, FIELD_REQUIRED, TYPE_UNKNOWN, AREA_UNKNOWN, FIELD_VALUE_INVALID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/ConnectUnauthorized"},"402":{"description":"PLAN_LIMIT (organization auto-create over the plan)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"ORGANIZATION_UNKNOWN","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"IDEMPOTENCY_CONFLICT or EXTERNAL_REF_CONFLICT","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"CONTEXT_TOO_LARGE","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/connect/requests/{key}":{"get":{"operationId":"connectGetRequest","tags":["Connect API"],"summary":"One request with its conversation","description":"Public comments and attachments only; internal notes never appear.","security":[{"connectionKey":[]}],"parameters":[{"name":"key","in":"path","required":true,"description":"The request's key as returned on create (`KORTEX-412`); the number alone also works.","schema":{"type":"string"}},{"name":"contact","in":"query","description":"A contact's `externalId`. Optional, also with visibility `OWN`: when given, a request of another person answers REQUEST_NOT_FOUND.","schema":{"type":"string"}},{"name":"organizationRef","in":"query","description":"Multi-organization connections only: your reference for the customer.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/RequestDetail"}}}}}},"401":{"$ref":"#/components/responses/ConnectUnauthorized"},"404":{"description":"REQUEST_NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/connect/requests/{key}/comments":{"post":{"operationId":"connectAddComment","tags":["Connect API"],"summary":"Reply as the end user","security":[{"connectionKey":[]}],"parameters":[{"name":"key","in":"path","required":true,"description":"The request's key as returned on create (`KORTEX-412`); the number alone also works.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Any unique string up to 200 characters (A–Z a–z 0–9 . _ : -). Repeating a call with the same key and body returns the first answer and changes nothing, for 48 hours. Send one with every write you might retry.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body","contact"],"properties":{"body":{"type":"string","maxLength":20000,"description":"Markdown."},"contact":{"$ref":"#/components/schemas/Contact"},"organizationRef":{"type":"string","description":"Multi-organization connections only: your reference for the customer. Ignored on a pinned connection."}}}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/RequestComment"}}}}}},"401":{"$ref":"#/components/responses/ConnectUnauthorized"},"404":{"description":"REQUEST_NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"IDEMPOTENCY_CONFLICT","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/connect/requests/{key}/attachments":{"post":{"operationId":"connectAddAttachment","tags":["Connect API"],"summary":"Attach a file","description":"multipart/form-data. The size limit and allowed extensions are in GET /connect/meta; the supplier's storage plan applies.","security":[{"connectionKey":[]}],"parameters":[{"name":"key","in":"path","required":true,"description":"The request's key as returned on create (`KORTEX-412`); the number alone also works.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Any unique string up to 200 characters (A–Z a–z 0–9 . _ : -). Repeating a call with the same key and body returns the first answer and changes nothing, for 48 hours. Send one with every write you might retry.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file","contact"],"properties":{"file":{"type":"string","format":"binary"},"contact":{"type":"string","description":"The contact as a JSON string, e.g. {\"externalId\":\"u-17\",\"name\":\"Ayşe\"}."},"organizationRef":{"type":"string","description":"Multi-organization connections only: your reference for the customer. Ignored on a pinned connection."}}}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/RequestAttachment"}}}}}},"400":{"description":"FIELD_REQUIRED, FILE_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/ConnectUnauthorized"},"402":{"description":"PLAN_LIMIT (the supplier's storage is full)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"REQUEST_NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"FILE_TOO_LARGE","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"FILE_TYPE_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/connect/requests/{key}/attachments/{attachmentId}":{"get":{"operationId":"connectGetAttachment","tags":["Connect API"],"summary":"Download an attachment","description":"Streams the file with the key's authorization. There are no public or pre-signed links.","security":[{"connectionKey":[]}],"parameters":[{"name":"key","in":"path","required":true,"description":"The request's key as returned on create (`KORTEX-412`); the number alone also works.","schema":{"type":"string"}},{"name":"attachmentId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The file","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"401":{"$ref":"#/components/responses/ConnectUnauthorized"},"404":{"description":"REQUEST_NOT_FOUND or ATTACHMENT_NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/connect/requests/{key}/rating":{"post":{"operationId":"connectRateRequest","tags":["Connect API"],"summary":"Rate a resolved request","description":"Once, by the person who filed it, after the request is resolved or closed.","security":[{"connectionKey":[]}],"parameters":[{"name":"key","in":"path","required":true,"description":"The request's key as returned on create (`KORTEX-412`); the number alone also works.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Any unique string up to 200 characters (A–Z a–z 0–9 . _ : -). Repeating a call with the same key and body returns the first answer and changes nothing, for 48 hours. Send one with every write you might retry.","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["rating","contact"],"properties":{"rating":{"type":"integer","minimum":1,"maximum":5},"comment":{"type":"string","maxLength":2000},"contact":{"$ref":"#/components/schemas/Contact"},"organizationRef":{"type":"string","description":"Multi-organization connections only: your reference for the customer. Ignored on a pinned connection."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"rating":{"type":"integer"},"comment":{"type":["string","null"]}}}}}}}},"400":{"description":"VALIDATION_ERROR (rating outside 1–5) or FIELD_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/ConnectUnauthorized"},"403":{"description":"NOT_REQUESTER","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"REQUEST_NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"NOT_RESOLVED_YET, ALREADY_RATED, IDEMPOTENCY_CONFLICT","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/connect/events":{"get":{"operationId":"connectListEvents","tags":["Connect API"],"summary":"The events feed","description":"For apps that cannot receive webhooks (on-premises installs). Poll every few minutes with the last `next` you processed; events are kept 90 days. An event is written just after the change that caused it, so it can appear a second or two after the call that triggered it returned. The objects are the same as the webhook payloads.","security":[{"connectionKey":[]}],"parameters":[{"name":"after","in":"query","description":"Return events with a larger `seq`. 0 for the beginning.","schema":{"type":"integer","minimum":0,"default":0}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":500,"default":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"object","properties":{"events":{"type":"array","items":{"$ref":"#/components/schemas/RequestEvent"}},"next":{"type":"integer","description":"Pass as `after` next time. Equal to `after` when the page is empty."},"hasMore":{"type":"boolean","description":"More events are waiting: call again at once with `next`."}}}}}}}},"401":{"$ref":"#/components/responses/ConnectUnauthorized"},"429":{"$ref":"#/components/responses/RateLimited"}}}}},"components":{"securitySchemes":{"apiToken":{"type":"http","scheme":"bearer","description":"A workspace API token (`ttq_…`), created under Admin > API & Webhooks."},"connectionKey":{"type":"http","scheme":"bearer","description":"A connection key (`ttqc_…`) for one running copy of your app, created by the supplier under Admin > Connected apps. Keep it on your server; never ship it in a browser or a mobile app."}},"responses":{"Unauthorized":{"description":"UNAUTHORIZED: the key is missing, unknown or revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"RATE_LIMITED: too many requests for this key. Wait for the number of seconds in `Retry-After`.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"ConnectUnauthorized":{"description":"UNAUTHORIZED (missing or unknown key) or CONNECTION_REVOKED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","required":["success","error"],"properties":{"success":{"const":false},"error":{"type":"string","description":"A stable error code from the catalogue."},"details":{"description":"Extra information for some codes, e.g. the field that is missing."}}},"StatusCategory":{"type":"string","enum":["OPEN","IN_PROGRESS","WAITING_CUSTOMER","RESOLVED","CLOSED"]},"Priority":{"type":"string","enum":["LOW","MEDIUM","HIGH","URGENT"]},"Organization":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}}},"Meta":{"type":"object","properties":{"types":{"type":"array","items":{"type":"object"}},"statuses":{"type":"array","items":{"type":"object"}},"fields":{"type":"array","items":{"type":"object"}}}},"Comment":{"type":"object","properties":{"id":{"type":"string"},"body":{"type":"string"},"isInternal":{"type":"boolean"},"author":{"type":["object","null"]},"createdAt":{"type":"string","format":"date-time"},"editedAt":{"type":["string","null"],"format":"date-time"}},"description":"A comment as the REST API returns it (staff view)."},"Issue":{"type":"object","description":"An issue as staff see it. Further fields may be added at any time.","additionalProperties":true,"properties":{"id":{"type":"string"},"number":{"type":"integer"},"class":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"priority":{"$ref":"#/components/schemas/Priority"},"type":{"type":["object","null"]},"status":{"type":["object","null"]},"organization":{"type":["object","null"]},"assignee":{"type":["object","null"]},"reporter":{"type":["object","null"]},"customFields":{"type":"object"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"comments":{"type":"array","items":{"$ref":"#/components/schemas/Comment"}},"source":{"type":["object","null"],"description":"Set on requests filed through a connected app.","properties":{"app":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string"},"name":{"type":"string"}}},"connection":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"}}}}},"contact":{"type":["object","null"],"properties":{"externalId":{"type":"string"},"name":{"type":"string"},"email":{"type":["string","null"]}}},"context":{"type":["object","null"],"description":"The app's diagnostic context as it sent it."},"externalRef":{"type":["string","null"]},"area":{"type":["string","null"]},"requestType":{"type":["string","null"],"enum":["bug","change","feature","question",null],"description":"Set on requests filed through a connected app."}}},"IssuePage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}},"total":{"type":"integer"},"page":{"type":"integer"},"pageSize":{"type":"integer"}}},"IssueCreate":{"type":"object","required":["issueTypeId","title"],"properties":{"class":{"type":"string","enum":["TICKET","TASK","EPIC"],"default":"TICKET"},"issueTypeId":{"type":"string"},"organizationId":{"type":"string","description":"Required for a TICKET."},"projectId":{"type":"string","description":"Required for a TASK or EPIC."},"parentId":{"type":"string"},"title":{"type":"string","minLength":3,"maxLength":200},"description":{"type":"string","maxLength":20000,"description":"Markdown."},"priority":{"$ref":"#/components/schemas/Priority"},"customFields":{"type":"object"},"startDate":{"type":"string","format":"date"},"dueDate":{"type":"string","format":"date"}}},"Contact":{"type":"object","required":["externalId","name"],"properties":{"externalId":{"type":"string","maxLength":120,"description":"Your own, stable id for the person (e.g. the user id in your app). Unique per connection; on a multi-organization connection, per organization."},"name":{"type":"string","maxLength":120},"email":{"type":["string","null"],"format":"email","description":"Optional. If it matches a customer member of the same organization, the request also shows in that member's portal."},"language":{"type":["string","null"],"description":"en, tr, de, …"}}},"Author":{"type":["object","null"],"properties":{"type":{"type":"string","enum":["staff","contact","customer"]},"name":{"type":"string"},"externalId":{"type":"string","description":"For type contact."}}},"RequestType":{"type":"string","enum":["bug","change","feature","question"]},"RequestSummary":{"type":"object","properties":{"key":{"type":"string","example":"KORTEX-412"},"number":{"type":"integer"},"type":{"oneOf":[{"$ref":"#/components/schemas/RequestType"},{"type":"null"}]},"typeName":{"type":["string","null"]},"title":{"type":"string"},"priority":{"$ref":"#/components/schemas/Priority"},"area":{"type":["string","null"]},"status":{"type":"object","properties":{"name":{"type":"string","description":"In the supplier's language."},"category":{"$ref":"#/components/schemas/StatusCategory"}}},"contact":{"oneOf":[{"$ref":"#/components/schemas/Contact"},{"type":"null"}]},"site":{"type":["object","null"],"properties":{"name":{"type":"string"},"externalRef":{"type":["string","null"]}}},"organization":{"type":["object","null"],"properties":{"name":{"type":"string"}}},"externalRef":{"type":["string","null"]},"customFields":{"type":"object"},"releasedIn":{"type":["string","null"],"description":"Name of the release that shipped it, once released."},"rating":{"type":["object","null"],"properties":{"rating":{"type":"integer"},"comment":{"type":["string","null"]},"at":{"type":"string","format":"date-time"}}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"resolvedAt":{"type":["string","null"],"format":"date-time"},"closedAt":{"type":["string","null"],"format":"date-time"}}},"RequestDetail":{"allOf":[{"$ref":"#/components/schemas/RequestSummary"},{"type":"object","properties":{"description":{"type":["string","null"],"description":"Markdown."},"comments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"body":{"type":"string"},"author":{"$ref":"#/components/schemas/Author"},"createdAt":{"type":"string","format":"date-time"}}}},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/RequestAttachment"}}}}]},"RequestAttachment":{"type":"object","properties":{"id":{"type":"string"},"fileName":{"type":"string"},"mimeType":{"type":"string"},"sizeBytes":{"type":"integer"},"uploadedBy":{"$ref":"#/components/schemas/Author"},"createdAt":{"type":"string","format":"date-time"}}},"RequestPage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/RequestSummary"}},"total":{"type":"integer"},"page":{"type":"integer"},"pageSize":{"type":"integer"}}},"ConnectMeta":{"type":"object","properties":{"app":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"}}},"connection":{"type":"object","properties":{"name":{"type":"string"},"externalRef":{"type":["string","null"]},"multiOrganization":{"type":"boolean"},"organization":{"type":["object","null"]},"visibility":{"type":"string","enum":["OWN","ORGANIZATION"]}}},"workspace":{"type":"object","properties":{"name":{"type":"string"},"language":{"type":"string"}}},"requestTypes":{"type":"array","items":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/RequestType"},"name":{"type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["TEXT","NUMBER","DATE","SELECT","CHECKBOX"]},"options":{"type":"array","items":{"type":"string"}},"required":{"type":"boolean"}}}}}}},"priorities":{"type":"array","items":{"$ref":"#/components/schemas/Priority"}},"areas":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"}}}},"limits":{"type":"object","properties":{"requestsPerMinute":{"type":"integer"},"maxAttachmentBytes":{"type":"integer"},"allowedExtensions":{"type":"array","items":{"type":"string"}},"maxContextBytes":{"type":"integer"},"maxTitleLength":{"type":"integer"},"maxDescriptionLength":{"type":"integer"},"eventRetentionDays":{"type":"integer"}}},"serverTime":{"type":"string","format":"date-time"}}},"RequestCreate":{"type":"object","required":["type","title","contact"],"properties":{"type":{"$ref":"#/components/schemas/RequestType"},"title":{"type":"string","minLength":3,"maxLength":200},"description":{"type":"string","maxLength":20000,"description":"Markdown."},"priority":{"$ref":"#/components/schemas/Priority"},"area":{"type":"string","description":"One of the area keys in GET /connect/meta."},"customFields":{"type":"object","description":"Values keyed by field key, for the fields GET /connect/meta lists for this type."},"contact":{"$ref":"#/components/schemas/Contact"},"context":{"type":"object","description":"Free JSON, at most 16 KB: app version, screen, locale, anything that helps the supplier reproduce it. Only the supplier's staff see it.","example":{"appVersion":"4.18.2","surface":"web","page":"/reports/shift","locale":"tr"}},"externalRef":{"type":"string","maxLength":120,"description":"Your own id for the request, unique per connection. A create with an externalRef this connection already used answers 200 with that request instead of creating another, so a retry is safe even after its Idempotency-Key expired."},"organizationRef":{"type":"string","description":"Multi-organization connections only: your reference for the customer. Ignored on a pinned connection."},"organizationName":{"type":"string","description":"Multi-organization connections with auto-create: the name for a new organization."}}},"RequestEvent":{"type":"object","required":["id","type","occurredAt","request","data"],"properties":{"seq":{"type":"integer","description":"Feed only: increasing per connection."},"id":{"type":"string","description":"Unique per event; dedupe on it."},"type":{"type":"string","enum":["request.created","request.status_changed","request.commented","request.resolved","request.released"]},"occurredAt":{"type":"string","format":"date-time"},"request":{"type":"object","properties":{"key":{"type":"string"},"number":{"type":"integer"},"type":{"oneOf":[{"$ref":"#/components/schemas/RequestType"},{"type":"null"}]},"title":{"type":"string"},"externalRef":{"type":["string","null"]},"status":{"type":"object","properties":{"name":{"type":"string"},"category":{"$ref":"#/components/schemas/StatusCategory"}}},"contact":{"oneOf":[{"$ref":"#/components/schemas/Contact"},{"type":"null"}]},"site":{"type":["object","null"]}}},"data":{"type":"object","description":"status_changed: {from, to}, each {name, category}; resolved: {status: {name, category}}; commented: {comment: {id, body, author, createdAt}} (public comments only, the contact's own included); released: {releasedIn}; created: {}."}}},"WebhookEnvelope":{"type":"object","properties":{"event":{"type":"string"},"sentAt":{"type":"string","format":"date-time"},"deliveryId":{"type":"string","description":"Same on every retry of one delivery."},"data":{"type":"object","description":"For request.* events a RequestEvent (without seq); for issue.* events {key, number, title, …}."}}},"RequestComment":{"type":"object","properties":{"id":{"type":"string"},"body":{"type":"string"},"author":{"$ref":"#/components/schemas/Author"},"createdAt":{"type":"string","format":"date-time"}},"description":"A comment as the Connect API returns it."},"IssueUpdate":{"type":"object","minProperties":1,"description":"At least one field. Send statusId or statusCategory, not both.","properties":{"statusId":{"type":"string","description":"A status id from GET /meta."},"statusCategory":{"oneOf":[{"$ref":"#/components/schemas/StatusCategory"}],"description":"Moves the issue to the workspace's first status of this category."},"assigneeId":{"type":["string","null"],"description":"A staff member's user id; null unassigns."},"priority":{"$ref":"#/components/schemas/Priority"}}}}},"webhooks":{"request.created":{"post":{"operationId":"webhook_request_created","summary":"request.created","description":"A request was filed through a connected app.","tags":["Webhooks"],"parameters":[{"name":"X-TaskTraQ-Signature-256","in":"header","required":true,"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\"> with the hook's signing secret.","schema":{"type":"string"}},{"name":"X-TaskTraQ-Event","in":"header","schema":{"type":"string"}},{"name":"X-TaskTraQ-Delivery","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Any 2xx acknowledges. Anything else is retried after 1 min, 5 min, 30 min, 2 h and 6 h; 410 stops at once."}}}},"request.status_changed":{"post":{"operationId":"webhook_request_status_changed","summary":"request.status_changed","description":"A request's status changed.","tags":["Webhooks"],"parameters":[{"name":"X-TaskTraQ-Signature-256","in":"header","required":true,"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\"> with the hook's signing secret.","schema":{"type":"string"}},{"name":"X-TaskTraQ-Event","in":"header","schema":{"type":"string"}},{"name":"X-TaskTraQ-Delivery","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Any 2xx acknowledges. Anything else is retried after 1 min, 5 min, 30 min, 2 h and 6 h; 410 stops at once."}}}},"request.commented":{"post":{"operationId":"webhook_request_commented","summary":"request.commented","description":"A public comment was added (by staff, a portal user or the app's contact). Internal notes never fire.","tags":["Webhooks"],"parameters":[{"name":"X-TaskTraQ-Signature-256","in":"header","required":true,"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\"> with the hook's signing secret.","schema":{"type":"string"}},{"name":"X-TaskTraQ-Event","in":"header","schema":{"type":"string"}},{"name":"X-TaskTraQ-Delivery","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Any 2xx acknowledges. Anything else is retried after 1 min, 5 min, 30 min, 2 h and 6 h; 410 stops at once."}}}},"request.resolved":{"post":{"operationId":"webhook_request_resolved","summary":"request.resolved","description":"A request was resolved or closed (the first time it is done).","tags":["Webhooks"],"parameters":[{"name":"X-TaskTraQ-Signature-256","in":"header","required":true,"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\"> with the hook's signing secret.","schema":{"type":"string"}},{"name":"X-TaskTraQ-Event","in":"header","schema":{"type":"string"}},{"name":"X-TaskTraQ-Delivery","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Any 2xx acknowledges. Anything else is retried after 1 min, 5 min, 30 min, 2 h and 6 h; 410 stops at once."}}}},"request.released":{"post":{"operationId":"webhook_request_released","summary":"request.released","description":"A request was shipped in a release.","tags":["Webhooks"],"parameters":[{"name":"X-TaskTraQ-Signature-256","in":"header","required":true,"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\"> with the hook's signing secret.","schema":{"type":"string"}},{"name":"X-TaskTraQ-Event","in":"header","schema":{"type":"string"}},{"name":"X-TaskTraQ-Delivery","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Any 2xx acknowledges. Anything else is retried after 1 min, 5 min, 30 min, 2 h and 6 h; 410 stops at once."}}}},"issue.created":{"post":{"operationId":"webhook_issue_created","summary":"issue.created","description":"Any ticket or task was created.","tags":["Webhooks"],"parameters":[{"name":"X-TaskTraQ-Signature-256","in":"header","required":true,"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\"> with the hook's signing secret.","schema":{"type":"string"}},{"name":"X-TaskTraQ-Event","in":"header","schema":{"type":"string"}},{"name":"X-TaskTraQ-Delivery","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Any 2xx acknowledges. Anything else is retried after 1 min, 5 min, 30 min, 2 h and 6 h; 410 stops at once."}}}},"issue.updated":{"post":{"operationId":"webhook_issue_updated","summary":"issue.updated","description":"Any ticket or task was changed.","tags":["Webhooks"],"parameters":[{"name":"X-TaskTraQ-Signature-256","in":"header","required":true,"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\"> with the hook's signing secret.","schema":{"type":"string"}},{"name":"X-TaskTraQ-Event","in":"header","schema":{"type":"string"}},{"name":"X-TaskTraQ-Delivery","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Any 2xx acknowledges. Anything else is retried after 1 min, 5 min, 30 min, 2 h and 6 h; 410 stops at once."}}}},"issue.commented":{"post":{"operationId":"webhook_issue_commented","summary":"issue.commented","description":"A public comment was added to any ticket.","tags":["Webhooks"],"parameters":[{"name":"X-TaskTraQ-Signature-256","in":"header","required":true,"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\"> with the hook's signing secret.","schema":{"type":"string"}},{"name":"X-TaskTraQ-Event","in":"header","schema":{"type":"string"}},{"name":"X-TaskTraQ-Delivery","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"responses":{"200":{"description":"Any 2xx acknowledges. Anything else is retried after 1 min, 5 min, 30 min, 2 h and 6 h; 410 stops at once."}}}}},"x-error-codes":[{"code":"UNAUTHORIZED","status":401,"description":"No key, an unknown key, or a key of the wrong kind."},{"code":"CONNECTION_REVOKED","status":401,"description":"The supplier revoked this connection. Stop calling; ask them for a new key."},{"code":"APP_DISABLED","status":403,"description":"The supplier switched this app off."},{"code":"READ_ONLY_TOKEN","status":403,"description":"REST API: a read-only token tried to write."},{"code":"RATE_LIMITED","status":429,"description":"Too many requests for this key; wait Retry-After seconds."},{"code":"VALIDATION_ERROR","status":400,"description":"The body or query is malformed; details is an array of {field, message}."},{"code":"FIELD_REQUIRED","status":400,"description":"A required field is missing; details is {field} with its dot path."},{"code":"FIELD_VALUE_INVALID","status":400,"description":"A custom field's value does not fit its type or options."},{"code":"TYPE_UNKNOWN","status":400,"description":"The app does not offer this request type (see GET /connect/meta)."},{"code":"AREA_UNKNOWN","status":400,"description":"Not one of the app's areas."},{"code":"CONTEXT_TOO_LARGE","status":413,"description":"context is over 16 KB."},{"code":"ORGANIZATION_UNKNOWN","status":404,"description":"Multi-organization: no organization for this organizationRef, and auto-create is off."},{"code":"REQUEST_NOT_FOUND","status":404,"description":"No such request, or not one this key may read."},{"code":"ORGANIZATION_NOT_FOUND","status":404,"description":"The supplier deactivated the organization this connection belongs to."},{"code":"ATTACHMENT_NOT_FOUND","status":404,"description":"No such attachment on this request."},{"code":"NOT_REQUESTER","status":403,"description":"Only the person who filed the request may rate it."},{"code":"NOT_RESOLVED_YET","status":409,"description":"Rating before the request is resolved."},{"code":"ALREADY_RATED","status":409,"description":"The request has a rating already."},{"code":"IDEMPOTENCY_CONFLICT","status":409,"description":"This Idempotency-Key was used with a different body, or the first call is still running."},{"code":"EXTERNAL_REF_CONFLICT","status":409,"description":"Multi-organization: this externalRef already belongs to another customer's request."},{"code":"FILE_REQUIRED","status":400,"description":"No file in the upload."},{"code":"FILE_TOO_LARGE","status":413,"description":"Over the size limit in GET /connect/meta."},{"code":"FILE_TYPE_NOT_ALLOWED","status":415,"description":"The extension is not on the allowed list."},{"code":"PLAN_LIMIT","status":402,"description":"The supplier's plan does not allow this (storage full, organization limit)."},{"code":"ISSUE_NOT_FOUND","status":404,"description":"REST API: no issue with this number."},{"code":"INTERNAL_ERROR","status":500,"description":"Our fault. Retry with the same Idempotency-Key."}]}