KontoCloud
PHP SDK / Operation reference

Support and usage

11 operations

Example values illustrate the structure. Replace them with your identifiers and data; business validation still applies to these examples.

GET

/api/me/support

#

get_me_support

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Request body

No request body.

Successful response

200 · application/json

SupportOverview

Call example

PHP SDK

$result = $client->json("get_me_support",
    [], []
);

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/support.rs · support::account_overview

POST

/api/me/support/session

#

post_me_support_session

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Request body

No request body.

Successful response

200 · application/json

ChatSession

Call example

PHP SDK

$result = $client->json("post_me_support_session",
    [], []
);

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/support.rs · support::account_chat_session

GET

/api/t/{tid}/support

#

get_t_tid_support

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/json

SupportOverview

Call example

PHP SDK

$result = $client->json("get_t_tid_support",
    ["tid" => "00000000-0000-4000-8000-000000000001"], []
);

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/support.rs · support::overview

POST

/api/t/{tid}/support/session

#

post_t_tid_support_session

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/json

ChatSession

Call example

PHP SDK

$result = $client->json("post_t_tid_support_session",
    ["tid" => "00000000-0000-4000-8000-000000000001"], []
);

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/support.rs · support::chat_session

POST

/api/t/{tid}/support/suggest

#

post_t_tid_support_suggest

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

FieldTypeRequired
questionstringRequired
langstringServer default: "mk"Optional
aibooleanServer default: falseOptional
request.json
{
  "question": "example"
}

Successful response

200 · application/json

SupportSuggestion

Call example

PHP SDK

$body = json_decode("{\n  \"question\": \"example\"\n}", true, 512, JSON_THROW_ON_ERROR);
$result = $client->json("post_t_tid_support_suggest",
    ["tid" => "00000000-0000-4000-8000-000000000001"], [], $body
);

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/support.rs · support::suggest

POST

/api/t/{tid}/support/tickets

#

post_t_tid_support_tickets

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

FieldTypeRequired
subjectstringRequired
bodystringRequired
langstringServer default: "mk"Optional
request.json
{
  "subject": "example",
  "body": "example"
}

Successful response

200 · application/json

SupportThread

Call example

PHP SDK

$body = json_decode("{\n  \"subject\": \"example\",\n  \"body\": \"example\"\n}", true, 512, JSON_THROW_ON_ERROR);
$result = $client->json("post_t_tid_support_tickets",
    ["tid" => "00000000-0000-4000-8000-000000000001"], [], $body
);

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/support.rs · support::create_ticket

GET

/api/t/{tid}/support/tickets/{id}

#

get_t_tid_support_tickets_id

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

No request body.

Successful response

200 · application/json

SupportThread

Call example

PHP SDK

$result = $client->json("get_t_tid_support_tickets_id",
    ["tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"], []
);

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/support.rs · support::show_ticket

POST

/api/t/{tid}/support/tickets/{id}/close

#

post_t_tid_support_tickets_id_close

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

No request body.

Successful response

200 · application/json

SupportThread

Call example

PHP SDK

$result = $client->json("post_t_tid_support_tickets_id_close",
    ["tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"], []
);

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/support.rs · support::close

POST

/api/t/{tid}/support/tickets/{id}/messages

#

post_t_tid_support_tickets_id_messages

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

FieldTypeRequired
bodystringRequired
request.json
{
  "body": "example"
}

Successful response

200 · application/json

SupportThread

Call example

PHP SDK

$body = json_decode("{\n  \"body\": \"example\"\n}", true, 512, JSON_THROW_ON_ERROR);
$result = $client->json("post_t_tid_support_tickets_id_messages",
    ["tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"], [], $body
);

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/support.rs · support::reply

POST

/api/t/{tid}/support/tickets/{id}/reopen

#

post_t_tid_support_tickets_id_reopen

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

No request body.

Successful response

200 · application/json

SupportThread

Call example

PHP SDK

$result = $client->json("post_t_tid_support_tickets_id_reopen",
    ["tid" => "00000000-0000-4000-8000-000000000001", "id" => "1"], []
);

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/support.rs · support::reopen

GET

/api/t/{tid}/usage

#

get_t_tid_usage

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/json

UsageQuota

Call example

PHP SDK

$result = $client->json("get_t_tid_usage",
    ["tid" => "00000000-0000-4000-8000-000000000001"], []
);

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/readings.rs · readings::usage

Complete JSON types

The types below include every nested field for this area. Requiredness describes deserialization; business validation can require additional values.

ChatSession

FieldTypeRequired
inbox_idstring · UUIDRequired
jwtstringRequired

HelpArticleHit

FieldTypeRequired
slugstringRequired
titlestringRequired
summarystringRequired
urlstringRequired

NewSupportTicket

FieldTypeRequired
subjectstringRequired
bodystringRequired
langstringServer default: "mk"Optional

QuotaItem

FieldTypeRequired
usedinteger · i64Required
limit
integer · i32null
Optional
per_user
integer · i32null
Optional
membersinteger · i32Required
custombooleanRequired

SupportMessage

FieldTypeRequired
idinteger · i64Required
authorstringRequired
namestringRequired
bodystringRequired
created_atstring · ISO 8601Required

SupportOverview

FieldTypeRequired
availablebooleanRequired
aibooleanRequired
live_chatbooleanServer default: falseOptional
ticketsRequired

SupportSuggestRequest

FieldTypeRequired
questionstringRequired
langstringServer default: "mk"Optional
aibooleanServer default: falseOptional

SupportTicket

FieldTypeRequired
idinteger · i64Required
tenant_idstring · UUIDRequired
subjectstringRequired
langstringRequired
statusSupportStatusRequired
created_atstring · ISO 8601Required
last_atstring · ISO 8601Required
last_authorstringRequired
messagesinteger · i64Required