OpenAPI Türkçe gyrohosting.com ↗

Support tickets

Departments, open, reply, close, reopen, rate, attachments.

#GET/tickets/departments

List ticket departmentsScope: Tickets/GetTicketDepartmentscoreGetTicketDepartmentsOpenAPI for this operation

List ticket departments. Support ticket of the calling account.

Core WISECP client endpoint (Turkish reference: https://dev.wisecp.com/tr/destek-isteme).

Responses

200Success — data: array<object>
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
422ticket_system_disabled

Examples

curl -s 'https://www.gyrohosting.com/api/v1/client/tickets/departments' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro ticket department list
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/tickets/departments", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/tickets/departments", {
  method: "GET",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#GET/tickets/access-groups

List ticket access groupsScope: Tickets/GetTicketAccessGroupscoreGetTicketAccessGroupsOpenAPI for this operation

List ticket access groups. Support ticket of the calling account.

Core WISECP client endpoint (Turkish reference: https://dev.wisecp.com/tr/destek-isteme).

Responses

200Success — data: array<object>
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
422ticket_system_disabled

Examples

curl -s 'https://www.gyrohosting.com/api/v1/client/tickets/access-groups' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro ticket access-group list
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/tickets/access-groups", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/tickets/access-groups", {
  method: "GET",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#GET/tickets

List ticketsScope: Tickets/GetTicketscoreGetTicketsOpenAPI for this operation

List tickets. Support ticket of the calling account.

Core WISECP client endpoint (Turkish reference: https://dev.wisecp.com/tr/destek-isteme).

Parameters

FieldinTypeDescription
pagequeryintegerKaçıncı sayfa.
limitqueryintegerSayfa başına satır. En çok 100.
statusquerystringDurum süzgeci. Müşteriye gösterilen durum sözlüğünü kabul eder.
departmentqueryintegerDepartman süzgeci.
searchquerystringKonu, referans ve departman adında arar.

Responses

200Success — data: array<object>
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
422status_invalid, ticket_system_disabled

Examples

curl -s 'https://www.gyrohosting.com/api/v1/client/tickets' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro ticket list
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/tickets", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/tickets", {
  method: "GET",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#POST/tickets

Create ticketScope: Tickets/CreateTicketcoreCreateTicketOpenAPI for this operation

Create ticket. Support ticket of the calling account.

Core WISECP client endpoint (Turkish reference: https://dev.wisecp.com/tr/destek-isteme).

Limit increase: account limits (GET /cloud/account/limits) are raised through a ticket: department_id 3, subject Limit increase: <limit_key>, message with the requested number and what you are building. CLI: gyro ticket create --department-id 3 --subject ... --message ....

Request body

FieldTypeDescription
department_id requiredintegerDepartmanın numarası.
subject requiredstringKonu.
message requiredstringAçılış mesajı. En az beş karakter; düz metindir ve işaretleme ayıklanır.
priorityintegerÖncelik. Verilmezse orta alınır.
service_idintegerTalebi bir hizmete bağlar.
custom_fieldsobjectDepartman alanlarının yanıtları. Alan numarasını değere eşler; kutu tipli alanlar dizi alır.
credentialsstringErişim bilgileri. Her satır bir grup numarası ve alan haritası taşır; mesaja şifreli işlenir.
attachmentsarray<any>Ekler. Kodlanmış içerik olarak gönderilir; adres reddedilir.
encrypt_messagebooleanMesaj gövdesi şifreli saklansın mı.

Responses

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422access_group_invalid, attachment_invalid, credential_field_required, custom_field_required, department_invalid, message_too_short, subject_required, ticket_rejected, ticket_system_disabled

Examples

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/tickets' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"department_id": 1, "subject": "string", "message": "string", "priority": 1, "service_id": 1, "custom_fields": {}, "credentials": "string", "attachments": [null], "encrypt_message": true}'
gyro ticket create --help    # all flags
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.post("https://www.gyrohosting.com/api/v1/client/tickets", headers=h, json={"department_id": 1, "subject": "string", "message": "string", "priority": 1, "service_id": 1, "custom_fields": {}, "credentials": "string", "attachments": [None], "encrypt_message": True}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/tickets", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"department_id": 1, "subject": "string", "message": "string", "priority": 1, "service_id": 1, "custom_fields": {}, "credentials": "string", "attachments": [null], "encrypt_message": true}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#GET/tickets/{id}

Get ticket (path: {id})Scope: Tickets/GetTicketcoreGetTicketOpenAPI for this operation

Get ticket (path: {id}). Support ticket of the calling account.

Core WISECP client endpoint (Turkish reference: https://dev.wisecp.com/tr/destek-isteme).

Parameters

FieldinTypeDescription
id requiredpathinteger

Responses

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422ticket_system_disabled

Examples

curl -s 'https://www.gyrohosting.com/api/v1/client/tickets/12345' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro ticket get 12345
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/tickets/12345", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/tickets/12345", {
  method: "GET",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#POST/tickets/{id}/reply

Reply ticket (path: {id})Scope: Tickets/ReplyTicketcoreReplyTicketOpenAPI for this operation

Reply ticket (path: {id}). Support ticket of the calling account.

Core WISECP client endpoint (Turkish reference: https://dev.wisecp.com/tr/destek-isteme).

Parameters

FieldinTypeDescription
id requiredpathinteger

Request body

FieldTypeDescription
message requiredstringYanıt metni. En az beş karakter.
credentialsstringErişim bilgileri.
attachmentsarray<any>Ekler.
encrypt_messagebooleanGövde şifreli saklansın mı.

Responses

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422access_group_invalid, attachment_invalid, message_too_short, reply_rejected, ticket_not_open, ticket_system_disabled

Examples

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/tickets/12345/reply' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"message": "string", "credentials": "string", "attachments": [null], "encrypt_message": true}'
gyro ticket reply 12345 --help    # all flags
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.post("https://www.gyrohosting.com/api/v1/client/tickets/12345/reply", headers=h, json={"message": "string", "credentials": "string", "attachments": [None], "encrypt_message": True}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/tickets/12345/reply", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"message": "string", "credentials": "string", "attachments": [null], "encrypt_message": true}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#POST/tickets/{id}/close

Close ticket (path: {id})Scope: Tickets/CloseTicketcoreCloseTicketOpenAPI for this operation

Close ticket (path: {id}). Support ticket of the calling account.

Core WISECP client endpoint (Turkish reference: https://dev.wisecp.com/tr/destek-isteme).

Parameters

FieldinTypeDescription
id requiredpathinteger

Request body

FieldTypeDescription
ratingintegerKapatırken verilen puan. Yalnız talep henüz puansızken işlenir.

Responses

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422ticket_system_disabled

Examples

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/tickets/12345/close' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"rating": 1}'
gyro ticket close 12345 --help    # all flags
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.post("https://www.gyrohosting.com/api/v1/client/tickets/12345/close", headers=h, json={"rating": 1}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/tickets/12345/close", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"rating": 1}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#POST/tickets/{id}/reopen

Reopen ticket (path: {id})Scope: Tickets/ReopenTicketcoreReopenTicketOpenAPI for this operation

Reopen ticket (path: {id}). Support ticket of the calling account.

Core WISECP client endpoint (Turkish reference: https://dev.wisecp.com/tr/destek-isteme).

Parameters

FieldinTypeDescription
id requiredpathinteger

Responses

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422ticket_locked, ticket_system_disabled

Examples

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/tickets/12345/reopen' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro ticket reopen 12345
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.post("https://www.gyrohosting.com/api/v1/client/tickets/12345/reopen", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/tickets/12345/reopen", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#POST/tickets/{id}/rating

Rate ticket (path: {id})Scope: Tickets/RateTicketcoreRateTicketOpenAPI for this operation

Rate ticket (path: {id}). Support ticket of the calling account.

Core WISECP client endpoint (Turkish reference: https://dev.wisecp.com/tr/destek-isteme).

Parameters

FieldinTypeDescription
id requiredpathinteger

Request body

FieldTypeDescription
rating requiredintegerVerilen puan. Birden beşe.

Responses

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422already_rated, rating_invalid, ticket_system_disabled

Examples

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/tickets/12345/rating' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"rating": 1}'
gyro ticket rating 12345 --help    # all flags
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.post("https://www.gyrohosting.com/api/v1/client/tickets/12345/rating", headers=h, json={"rating": 1}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/tickets/12345/rating", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"rating": 1}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#POST/tickets/{id}/replies/{rid}/rating

Rate ticket reply (path: {id}, {rid})Scope: Tickets/RateTicketReplycoreRateTicketReplyOpenAPI for this operation

Rate ticket reply (path: {id}, {rid}). Support ticket of the calling account.

Core WISECP client endpoint (Turkish reference: https://dev.wisecp.com/tr/destek-isteme).

Parameters

FieldinTypeDescription
id requiredpathinteger
rid requiredpathinteger

Request body

FieldTypeDescription
rating requiredintegerVerilen puan. Birden beşe.

Responses

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422already_rated, rating_invalid, ticket_system_disabled

Examples

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/tickets/12345/replies/1/rating' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"rating": 1}'
gyro ticket reply rating 12345 --help    # all flags
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.post("https://www.gyrohosting.com/api/v1/client/tickets/12345/replies/1/rating", headers=h, json={"rating": 1}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/tickets/12345/replies/1/rating", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"rating": 1}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#GET/tickets/{id}/attachments/{aid}

Get ticket attachment (path: {id}, {aid})Scope: Tickets/GetTicketAttachmentcoreGetTicketAttachmentOpenAPI for this operation

Get ticket attachment (path: {id}, {aid}). Support ticket of the calling account.

Core WISECP client endpoint (Turkish reference: https://dev.wisecp.com/tr/destek-isteme).

Parameters

FieldinTypeDescription
id requiredpathinteger
aid requiredpathinteger

Responses

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422ticket_system_disabled

Examples

curl -s 'https://www.gyrohosting.com/api/v1/client/tickets/12345/attachments/1' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro ticket attachment get 12345
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/tickets/12345/attachments/1", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/tickets/12345/attachments/1", {
  method: "GET",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);