KontoCloud
HTTP API / Operation reference

Legal entities and access

57 operations

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

GET

/api/bureaus

#

get_bureaus

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

Array<Bureau>

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/bureaus' \
  --header "Authorization: Bearer $KC_TOKEN"

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/bureau.rs · bureau::bureaus

POST

/api/bureaus

#

post_bureaus

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

FieldTypeRequired
namestringRequired
edb
stringnull
Server default: null
Optional
request.json
{
  "name": "example"
}

Successful response

201 · application/json

Bureau

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/bureaus' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

Errors and constraints

bad_edbmissing_name

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/bureau.rs · bureau::create_bureau

GET

/api/bureaus/{bid}/access-requests

#

get_bureaus_bid_access_requests

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
bidstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/json

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/bureaus/00000000-0000-4000-8000-000000000001/access-requests' \
  --header "Authorization: Bearer $KC_TOKEN"

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/bureau.rs · bureau::access_requests

POST

/api/bureaus/{bid}/access-requests/{r}

#

post_bureaus_bid_access_requests_r

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
bidstring · UUIDRequired
rinteger · i64Required

Request body

boolean
request.json
true

Successful response

200 · application/json

null

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/bureaus/00000000-0000-4000-8000-000000000001/access-requests/1' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

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/bureau.rs · bureau::decide_access

GET

/api/bureaus/{bid}/book-handovers

#

get_bureaus_bid_book_handovers

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
bidstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/json

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/bureaus/00000000-0000-4000-8000-000000000001/book-handovers' \
  --header "Authorization: Bearer $KC_TOKEN"

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/bureau.rs · bureau::handovers

GET

/api/bureaus/{bid}/book-handovers/{id}

#

get_bureaus_bid_book_handovers_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
bidstring · UUIDRequired
idinteger · i64Required

Request body

No request body.

Successful response

200 · application/zip

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/bureaus/00000000-0000-4000-8000-000000000001/book-handovers/1' \
  --header "Authorization: Bearer $KC_TOKEN"

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/bureau.rs · bureau::handover_archive

GET

/api/bureaus/{bid}/client-options

#

get_bureaus_bid_client_options

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
bidstring · UUIDRequired

Query parameters

FieldTypeRequired
qstringRequired
offsetinteger · u32Required

Request body

No request body.

Successful response

200 · application/json

ClientChoicePage

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/bureaus/00000000-0000-4000-8000-000000000001/client-options?q=example&offset=1' \
  --header "Authorization: Bearer $KC_TOKEN"

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/bureau.rs · bureau::client_options

GET

/api/bureaus/{bid}/clients

#

get_bureaus_bid_clients

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
bidstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/json

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/bureaus/00000000-0000-4000-8000-000000000001/clients' \
  --header "Authorization: Bearer $KC_TOKEN"

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/bureau.rs · bureau::clients

POST

/api/bureaus/{bid}/clients

#

post_bureaus_bid_clients

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
bidstring · UUIDRequired

Request body

FieldTypeRequired
tenant_idTenantIdRequired
reasonstringServer default: ""Optional
request.json
{
  "tenant_id": "00000000-0000-4000-8000-000000000001"
}

Successful response

200 · application/json

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/bureaus/00000000-0000-4000-8000-000000000001/clients' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

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/bureau.rs · bureau::link_client

POST

/api/bureaus/{bid}/clients/unlink

#

post_bureaus_bid_clients_unlink

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
bidstring · UUIDRequired

Request body

FieldTypeRequired
tenant_idTenantIdRequired
reasonstringServer default: ""Optional
request.json
{
  "tenant_id": "00000000-0000-4000-8000-000000000001"
}

Successful response

204

The response has no body.

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/bureaus/00000000-0000-4000-8000-000000000001/clients/unlink' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

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/bureau.rs · bureau::unlink_client

POST

/api/bureaus/{bid}/clients/{tid}/assignment

#

post_bureaus_bid_clients_tid_assignment

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
bidstring · UUIDRequired
tidstring · UUIDRequired

Request body

FieldTypeRequired
emailstringRequired
enabledbooleanRequired
request.json
{
  "email": "[email protected]",
  "enabled": true
}

Successful response

204

The response has no body.

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/bureaus/00000000-0000-4000-8000-000000000001/clients/00000000-0000-4000-8000-000000000001/assignment' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

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/bureau.rs · bureau::assign

POST

/api/bureaus/{bid}/clients/{tid}/manager

#

post_bureaus_bid_clients_tid_manager

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
bidstring · UUIDRequired
tidstring · UUIDRequired

Request body

stringnull
request.json
"example"

Successful response

200 · application/json

null

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/bureaus/00000000-0000-4000-8000-000000000001/clients/00000000-0000-4000-8000-000000000001/manager' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

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/bureau.rs · bureau::set_manager

POST

/api/bureaus/{bid}/grids/{register}

#

post_bureaus_bid_grids_register

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
bidstring · UUIDRequired
registerstringRequired

Request body

FieldTypeRequired
offsetinteger · usizeRequired
limitinteger · usizeRequired
searchstringRequired
lookupstringRequired
sort
Array<string, boolean>
null
Optional
filters
Map<string, GridFilter>
Required
include_inactivebooleanRequired
from
string · YYYY-MM-DDnull
Optional
to
string · YYYY-MM-DDnull
Optional
account
stringnull
Optional
partnerOptional
record
integer · i64null
Optional
warehouseOptional
subject
string · UUIDnull
Optional
labels
Map<string, string>
Required
request.json
{
  "offset": 1,
  "limit": 1,
  "search": "example",
  "lookup": "example",
  "filters": {},
  "include_inactive": true,
  "labels": {}
}

Successful response

200 · application/json

GridPage

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/bureaus/00000000-0000-4000-8000-000000000001/grids/example' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

Errors and constraints

unknown_grid

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/grid_window.rs · grid_window::bureau

GET

/api/bureaus/{bid}/inbox-board

#

get_bureaus_bid_inbox_board

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
bidBureauIdRequired

Query parameters

FieldTypeRequired
minebooleanServer default: falseOptional
clientOptional
statusOptional
qstringServer default: ""Optional
offsetinteger · u32Server default: 0Optional
workspacebooleanServer default: falseOptional
assignees
stringnull
Optional
unassignedbooleanServer default: falseOptional
unassigned_lane
booleannull
Optional
from
string · YYYY-MM-DDnull
Optional
to
string · YYYY-MM-DDnull
Optional

Request body

No request body.

Successful response

200 · application/json

InboxBoardPage

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/bureaus/00000000-0000-4000-8000-000000000001/inbox-board' \
  --header "Authorization: Bearer $KC_TOKEN"

Errors and constraints

inbox_assigneessearch_length

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/inbox.rs · inbox::board

GET

/api/bureaus/{bid}/inbox-board/staff

#

get_bureaus_bid_inbox_board_staff

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
bidBureauIdRequired

Request body

No request body.

Successful response

200 · application/json

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/bureaus/00000000-0000-4000-8000-000000000001/inbox-board/staff' \
  --header "Authorization: Bearer $KC_TOKEN"

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/inbox.rs · inbox::board_staff

GET

/api/bureaus/{bid}/inbox-board/staff/{user}/avatar

#

get_bureaus_bid_inbox_board_staff_user_avatar

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
bidBureauIdRequired
userstring · UUIDRequired

Request body

No request body.

Successful response

200 · image/*

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/bureaus/00000000-0000-4000-8000-000000000001/inbox-board/staff/00000000-0000-4000-8000-000000000001/avatar' \
  --header "Authorization: Bearer $KC_TOKEN"

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/inbox.rs · inbox::board_avatar

GET

/api/bureaus/{bid}/inbox-counts

#

get_bureaus_bid_inbox_counts

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
bidstring · UUIDRequired

Query parameters

FieldTypeRequired
client
string · UUIDnull
Optional
offsetinteger · u32Server default: 0Optional
qstringServer default: ""Optional

Request body

No request body.

Successful response

200 · application/json

InboxCounts

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/bureaus/00000000-0000-4000-8000-000000000001/inbox-counts' \
  --header "Authorization: Bearer $KC_TOKEN"

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/inbox.rs · inbox::counts

GET

/api/bureaus/{bid}/inbox-groups/{folder}

#

get_bureaus_bid_inbox_groups_folder

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
bidstring · UUIDRequired
folderstringRequired

Query parameters

FieldTypeRequired
client
string · UUIDnull
Optional
offsetinteger · u32Server default: 0Optional
qstringServer default: ""Optional

Request body

No request body.

Successful response

200 · application/json

InboxGroupsPage

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/bureaus/00000000-0000-4000-8000-000000000001/inbox-groups/example' \
  --header "Authorization: Bearer $KC_TOKEN"

Errors and constraints

inbox_foldersearch_length

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/inbox.rs · inbox::work_groups

GET

/api/bureaus/{bid}/members

#

get_bureaus_bid_members

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
bidstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/json

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/bureaus/00000000-0000-4000-8000-000000000001/members' \
  --header "Authorization: Bearer $KC_TOKEN"

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/bureau.rs · bureau::members

POST

/api/bureaus/{bid}/members

#

post_bureaus_bid_members

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
bidstring · UUIDRequired

Request body

FieldTypeRequired
emailstringRequired
roleOptional
request.json
{
  "email": "[email protected]"
}

Successful response

200 · application/json

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/bureaus/00000000-0000-4000-8000-000000000001/members' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

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/bureau.rs · bureau::set_member

GET

/api/bureaus/{bid}/offline-permit

#

get_bureaus_bid_offline_permit

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
bidstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/json

PracticeOfflinePermit

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/bureaus/00000000-0000-4000-8000-000000000001/offline-permit' \
  --header "Authorization: Bearer $KC_TOKEN"

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/security.rs · security::practice_offline_permit

GET

/api/bureaus/{bid}/routing

#

get_bureaus_bid_routing

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
bidstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/json

RoutingSettings

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/bureaus/00000000-0000-4000-8000-000000000001/routing' \
  --header "Authorization: Bearer $KC_TOKEN"

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/bureau.rs · bureau::routing

POST

/api/bureaus/{bid}/routing

#

post_bureaus_bid_routing

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
bidstring · UUIDRequired

Request body

"round_robin""manager"
request.json
"round_robin"

Successful response

200 · application/json

null

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/bureaus/00000000-0000-4000-8000-000000000001/routing' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

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/bureau.rs · bureau::set_routing

GET

/api/bureaus/{bid}/workspace-clients

#

get_bureaus_bid_workspace_clients

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
bidstring · UUIDRequired

Query parameters

FieldTypeRequired
selected
string · UUIDnull
Optional
allbooleanRequired

Request body

No request body.

Successful response

200 · application/json

Array<Tenant>

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/bureaus/00000000-0000-4000-8000-000000000001/workspace-clients?all=true' \
  --header "Authorization: Bearer $KC_TOKEN"

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/bureau.rs · bureau::workspace_clients

GET

/api/clients

#

get_clients

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

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/clients' \
  --header "Authorization: Bearer $KC_TOKEN"

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/bureau.rs · bureau::my_clients

POST

/api/invitations/accept

#

post_invitations_accept

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

FieldTypeRequired
codestringRequired
request.json
{
  "code": "example"
}

Successful response

200 · application/json

Tenant

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/invitations/accept' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

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/lib.rs · accept_invitation

GET

/api/organizations

#

get_organizations

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.

Query parameters

FieldTypeRequired
tenantOptional

Request body

No request body.

Successful response

200 · application/json

OrganizationDirectory

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/organizations' \
  --header "Authorization: Bearer $KC_TOKEN"

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/organization.rs · organization::directory

GET

/api/organizations/{id}/logo.png

#

get_organizations_id_logo_png

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
idstring · UUIDRequired

Request body

No request body.

Successful response

200 · image/png

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/organizations/00000000-0000-4000-8000-000000000001/logo.png' \
  --header "Authorization: Bearer $KC_TOKEN"

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/organization.rs · organization::download_logo

POST

/api/organizations/{id}/logo/remove

#

post_organizations_id_logo_remove

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
idstring · UUIDRequired

Request body

No request body.

Successful response

204

The response has no body.

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/organizations/00000000-0000-4000-8000-000000000001/logo/remove' \
  --header "Authorization: Bearer $KC_TOKEN"

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/organization.rs · organization::remove_logo

GET

/api/organizations/{id}/profile

#

get_organizations_id_profile

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
idstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/json

OrganizationProfile

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/organizations/00000000-0000-4000-8000-000000000001/profile' \
  --header "Authorization: Bearer $KC_TOKEN"

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/organization.rs · organization::profile

POST

/api/organizations/{id}/profile

#

post_organizations_id_profile

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
idstring · UUIDRequired

Request body

FieldTypeRequired
namestringRequired
edbstringRequired
detailsTenantDetailsRequired
request.json
{
  "name": "example",
  "edb": "example",
  "details": {
    "address": "example",
    "city": "example",
    "postal_code": "example",
    "municipality": "example",
    "country": "example",
    "embs": "example",
    "vat_number": "example",
    "phone": "example",
    "email": "[email protected]",
    "website": "example",
    "billing_address": "example",
    "billing_email": "example",
    "billing_reference": "example",
    "contacts": []
  }
}

Successful response

204

The response has no body.

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/organizations/00000000-0000-4000-8000-000000000001/profile' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

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/organization.rs · organization::save_profile

POST

/api/t/{tid}/book-handovers

#

post_t_tid_book_handovers

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
previousOptional
destinationOptional
reasonstringRequired
request.json
{
  "reason": "example"
}

Successful response

200 · application/json

integer · i64

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/book-handovers' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

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/bureau.rs · bureau::transfer_books

GET

/api/t/{tid}/book-handovers/destinations/{bid}

#

get_t_tid_book_handovers_destinations_bid

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
bidstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/json

BookDestination

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/book-handovers/destinations/00000000-0000-4000-8000-000000000001' \
  --header "Authorization: Bearer $KC_TOKEN"

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/bureau.rs · bureau::book_destination

GET

/api/t/{tid}/book-handovers/open-items

#

get_t_tid_book_handovers_open_items

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

integer · i64

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/book-handovers/open-items' \
  --header "Authorization: Bearer $KC_TOKEN"

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/bureau.rs · bureau::carried_count

GET

/api/t/{tid}/book-handovers/open-items/archive

#

get_t_tid_book_handovers_open_items_archive

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/zip

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/book-handovers/open-items/archive' \
  --header "Authorization: Bearer $KC_TOKEN"

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/bureau.rs · bureau::carried_archive

GET

/api/t/{tid}/bureau

#

get_t_tid_bureau

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

string · UUIDnull

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/bureau' \
  --header "Authorization: Bearer $KC_TOKEN"

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/bureau.rs · bureau::mandate

POST

/api/t/{tid}/bureau/{bid}

#

post_t_tid_bureau_bid

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
bidstring · UUIDRequired

Request body

FieldTypeRequired
reasonstringRequired
request.json
{
  "reason": "example"
}

Successful response

204

The response has no body.

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/bureau/00000000-0000-4000-8000-000000000001' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

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/bureau.rs · bureau::authorize

GET

/api/t/{tid}/contact-email

#

get_t_tid_contact_email

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

ContactEmail

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/contact-email' \
  --header "Authorization: Bearer $KC_TOKEN"

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/lib.rs · contact_email

POST

/api/t/{tid}/contact-email

#

post_t_tid_contact_email

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
emailstringServer default: ""Optional
request.json
{}

Successful response

200 · application/json

ContactEmail

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/contact-email' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

Errors and constraints

contact_email_invalid

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/lib.rs · set_contact_email

GET

/api/t/{tid}/details

#

get_t_tid_details

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

TenantDetails

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/details' \
  --header "Authorization: Bearer $KC_TOKEN"

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/lib.rs · tenant_details

GET

/api/t/{tid}/invitations

#

get_t_tid_invitations

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

Array<Invitation>

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/invitations' \
  --header "Authorization: Bearer $KC_TOKEN"

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/lib.rs · invitations

POST

/api/t/{tid}/invitations

#

post_t_tid_invitations

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
emailstringRequired
roleRoleRequired
request.json
{
  "email": "[email protected]",
  "role": "super_admin"
}

Successful response

201 · application/json

InvitationCode

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/invitations' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

Errors and constraints

bad_invitation

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/lib.rs · create_invitation

POST

/api/t/{tid}/invitations/{id}/cancel

#

post_t_tid_invitations_id_cancel

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

Array<Invitation>

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/invitations/1/cancel' \
  --header "Authorization: Bearer $KC_TOKEN"

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/lib.rs · cancel_invitation

POST

/api/t/{tid}/lifecycle

#

post_t_tid_lifecycle

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

object · 3
FieldTypeRequired
namestringRequired
reasonstringRequired
action"edit"Required
object · 4
FieldTypeRequired
namestringRequired
reasonstringRequired
detailsTenantDetailsRequired
action"edit_details"Required
object · 2
FieldTypeRequired
reasonstringRequired
action"archive"Required
object · 2
FieldTypeRequired
reasonstringRequired
action"restore"Required
object · 2
FieldTypeRequired
reasonstringRequired
action"delete"Required
request.json
{
  "name": "example",
  "reason": "example",
  "action": "edit"
}

Successful response

204

The response has no body.

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/lifecycle' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

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/lib.rs · manage_tenant

GET

/api/t/{tid}/members

#

get_t_tid_members

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

Array<Member>

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/members' \
  --header "Authorization: Bearer $KC_TOKEN"

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/lib.rs · members

POST

/api/t/{tid}/members

#

post_t_tid_members

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
emailstringRequired
role
Rolenull
Optional
request.json
{
  "email": "[email protected]"
}

Successful response

200 · application/json

Array<Member>

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/members' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

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/lib.rs · set_member

GET

/api/t/{tid}/mfa-policy

#

get_t_tid_mfa_policy

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

TenantMfaPolicy

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/mfa-policy' \
  --header "Authorization: Bearer $KC_TOKEN"

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/control.rs · control::mfa_policy

POST

/api/t/{tid}/mfa-policy

#

post_t_tid_mfa_policy

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
requiredbooleanRequired
reasonstringRequired
request.json
{
  "required": true,
  "reason": "example"
}

Successful response

200 · application/json

TenantMfaPolicy

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/mfa-policy' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

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/control.rs · control::set_mfa_policy

GET

/api/t/{tid}/permissions

#

get_t_tid_permissions

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

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/permissions' \
  --header "Authorization: Bearer $KC_TOKEN"

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/permissions.rs · permissions::list

POST

/api/t/{tid}/permissions

#

post_t_tid_permissions

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
emailstringRequired
modules
Map<string, AccessLevel>
Server default: {}
Optional
warehousesServer default: nullOptional
request.json
{
  "email": "[email protected]"
}

Successful response

200 · application/json

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/permissions' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

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/permissions.rs · permissions::set

GET

/api/t/{tid}/responsible

#

get_t_tid_responsible

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

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/responsible' \
  --header "Authorization: Bearer $KC_TOKEN"

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/control.rs · control::responsible

POST

/api/t/{tid}/responsible

#

post_t_tid_responsible

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
roleResponsibleRoleRequired
full_namestringRequired
license_no
stringnull
Server default: null
Optional
valid_fromstring · YYYY-MM-DDRequired
valid_to
string · YYYY-MM-DDnull
Server default: null
Optional
supersedes_id
integer · i64null
Server default: null
Optional
reasonstringServer default: ""Optional
request.json
{
  "role": "manager",
  "full_name": "example",
  "valid_from": "2026-01-01"
}

Successful response

201 · application/json

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/responsible' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

Errors and constraints

license_requiredmissing_name

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/control.rs · control::add_responsible

GET

/api/t/{tid}/subscription

#

get_t_tid_subscription

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

Subscription

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/subscription' \
  --header "Authorization: Bearer $KC_TOKEN"

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/archive.rs · archive::subscription

GET

/api/tenants

#

get_tenants

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

Array<Tenant>

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/tenants' \
  --header "Authorization: Bearer $KC_TOKEN"

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/lib.rs · list_tenants

POST

/api/tenants

#

post_tenants

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.

Query parameters

FieldTypeRequired
bureau
string · UUIDnull
Optional

Request body

FieldTypeRequired
namestringRequired
edbstringRequired
detailsServer default: nullOptional
request.json
{
  "name": "example",
  "edb": "example"
}

Successful response

201 · application/json

Tenant

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/tenants' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

Errors and constraints

bad_edbmissing_name

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/lib.rs · create_tenant

POST

/api/tenants/with-details

#

post_tenants_with_details

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.

Query parameters

FieldTypeRequired
bureau
string · UUIDnull
Optional

Request body

FieldTypeRequired
namestringRequired
edbstringRequired
detailsServer default: nullOptional
request.json
{
  "name": "example",
  "edb": "example"
}

Successful response

201 · application/json

Tenant

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/tenants/with-details' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

Errors and constraints

bad_edbmissing_name

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/lib.rs · create_tenant

Complete JSON types

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

BoardCell

FieldTypeRequired
taskCloseTaskRequired
statusCloseStatusRequired
open_countinteger · i64Required
due_date
string · YYYY-MM-DDnull
Server default: null
Optional

BookDestination

FieldTypeRequired
namestringRequired
books_fromstring · YYYY-MM-DDRequired

Bureau

FieldTypeRequired
idBureauIdRequired
namestringRequired
edb
stringnull
Server default: null
Optional
roleBureauRoleRequired

BureauAccessRequest

FieldTypeRequired
idinteger · i64Required
clientstringRequired
recipientstringRequired
senderstringRequired

BureauClient

FieldTypeRequired
tenant_idTenantIdRequired
namestringRequired
edbstringRequired
sincestring · ISO 8601Required
my_role
Rolenull
Server default: null
Optional

BureauMember

FieldTypeRequired
emailstringRequired
namestringRequired
roleBureauRoleRequired
sincestring · ISO 8601Required
granted_bystringRequired

ClientOverview

FieldTypeRequired
tenant_idTenantIdRequired
namestringRequired
edbstringRequired
roleRoleRequired
bureau
stringnull
Server default: null
Optional
drafts_openinteger · i64Required
drafts_approvedinteger · i64Required
drafts_rejectedinteger · i64Required
deadlines_openinteger · i64Required
deadlines_overdueinteger · i64Required
next_due
string · YYYY-MM-DDnull
Server default: null
Optional
next_deadline
stringnull
Server default: null
Optional

CloseStatus

"not_started""in_progress""done""overdue""not_applicable"

CloseTask

"bank""open_items""drafts""fx""payroll""vat""lock"

ContactEmail

FieldTypeRequired
emailstringServer default: ""Optional
updated_at
string · ISO 8601null
Server default: null
Optional
updated_by
stringnull
Server default: null
Optional

Deadline

FieldTypeRequired
idDeadlineIdRequired
rule_codestringRequired
namestringRequired
sourcestringRequired
verifiedbooleanRequired
period_startstring · YYYY-MM-DDRequired
period_endstring · YYYY-MM-DDRequired
due_datestring · YYYY-MM-DDRequired
statusDeadlineStatusRequired
note
stringnull
Server default: null
Optional
marked_at
string · ISO 8601null
Server default: null
Optional
marked_by
stringnull
Server default: null
Optional
due_non_workingbooleanServer default: falseOptional

DraftStatus

"draft""approved""rejected""posted""cancelled"

DraftSummary

FieldTypeRequired
idDraftIdRequired
versioninteger · i32Required
statusDraftStatusRequired
posting_datestring · YYYY-MM-DDRequired
doc_numberstringRequired
descriptionstringRequired
totalMoneyRequired
balancedbooleanRequired
entry_id
EntryIdnull
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired
updated_atstring · ISO 8601Required
updated_bystringRequired
offlineServer default: nullOptional
offline_note
stringnull
Server default: null
Optional

Einvoice

FieldTypeRequired
idEinvoiceIdRequired
directionEinvoiceDirectionRequired
kindEinvoiceKindRequired
ref_idOptional
environmentUjpEnvironmentRequired
doc_typestringRequired
doc_numberstringRequired
doc_datestring · YYYY-MM-DDRequired
seller_edbstringRequired
seller_namestringRequired
buyer_edbstringRequired
buyer_namestringRequired
currencystringRequired
netMoneyRequired
vatMoneyRequired
grossMoneyRequired
euid
stringnull
Optional
qr_link
stringnull
Optional
sent_at
string · ISO 8601null
Optional
send_state
stringnull
Optional
last_error
stringnull
Optional
status_code
stringnull
Optional
status_name
stringnull
Optional
decision
stringnull
Optional
storno_idOptional
created_atstring · ISO 8601Required
created_bystringRequired
retry_state
stringnull
Server default: null
Optional
retry_attempt
integer · i32null
Server default: null
Optional
retry_next_at
string · ISO 8601null
Server default: null
Optional
retry_note
stringnull
Server default: null
Optional
invoice_id
integer · i64null
Server default: null
Optional
vat_reportedbooleanServer default: falseOptional
doc_altbooleanServer default: falseOptional
offlinebooleanServer default: falseOptional
receipt_id
integer · i64null
Server default: null
Optional
receipt_number
stringnull
Server default: null
Optional

Fx

FieldTypeRequired
currencystringRequired
amountMoneyRequired
rate_microinteger · i64Required

GridFilter

FieldTypeRequired
textstringRequired
minstringRequired
maxstringRequired
set
Array<string>
null
Optional

GridPage

FieldTypeRequired
totalinteger · usizeRequired
matchedinteger · usizeRequired
rows
Array<GridRecord>
Required
sums
Map<string, integer · i128>
Required
facets
Map<string,
Map<string, integer · usize>
>
Required

GridQuery

FieldTypeRequired
offsetinteger · usizeRequired
limitinteger · usizeRequired
searchstringRequired
lookupstringRequired
sort
Array<string, boolean>
null
Optional
filters
Map<string, GridFilter>
Required
include_inactivebooleanRequired
from
string · YYYY-MM-DDnull
Optional
to
string · YYYY-MM-DDnull
Optional
account
stringnull
Optional
partnerOptional
record
integer · i64null
Optional
warehouseOptional
subject
string · UUIDnull
Optional
labels
Map<string, string>
Required

GridRecord

FieldTypeRequired
steps
Array<BoardCell>
Server default: []
Optional
fx
Fxnull
Server default: null
Optional
period_end
string · YYYY-MM-DDnull
Server default: null
Optional
draftServer default: nullOptional
deadlineServer default: nullOptional
payment_batchServer default: nullOptional
payment_planServer default: nullOptional
bank_accountServer default: nullOptional
electronicServer default: nullOptional
bookedServer default: nullOptional
keystringRequired
cells
Array<string>
Required
stylestringRequired
company
Tenantnull
Server default: null
Optional
can_deletebooleanServer default: falseOptional
hintstringServer default: ""Optional

HandoverReceipt

FieldTypeRequired
idinteger · i64Required
client_namestringRequired
recorded_atstring · ISO 8601Required
books_fromstring · YYYY-MM-DDRequired
reasonstringRequired

InboxBoardCard

FieldTypeRequired
item_keystringRequired
titlestringRequired
clientOptional
intake_idOptional
intake_boxOptional
created_atstring · ISO 8601Required
scheduled
string · YYYY-MM-DDnull
Server default: null
Optional
deadlineServer default: nullOptional
draft_id
DraftIdnull
Server default: null
Optional
statusInboxStatusRequired
incomingbooleanRequired
assigneeServer default: nullOptional
can_movebooleanRequired
versioninteger · i64Required
notestringRequired

InboxBoardFilter

FieldTypeRequired
minebooleanServer default: falseOptional
clientOptional
statusOptional
qstringServer default: ""Optional
offsetinteger · u32Server default: 0Optional
workspacebooleanServer default: falseOptional
assignees
stringnull
Optional
unassignedbooleanServer default: falseOptional
unassigned_lane
booleannull
Optional
from
string · YYYY-MM-DDnull
Optional
to
string · YYYY-MM-DDnull
Optional

InboxClient

FieldTypeRequired
tenant_idTenantIdRequired
namestringRequired
edbstringRequired
can_workbooleanRequired
pendinginteger · i64Required
doneinteger · i64Required

InboxCounts

FieldTypeRequired
pendinginteger · i64Required
waitinginteger · i64Required
doneinteger · i64Required
draftsinteger · i64Server default: 0Optional
deadlinesinteger · i64Server default: 0Optional
unassignedinteger · i64Server default: 0Optional
organizationinteger · i64Server default: 0Optional
my_workinteger · i64Server default: 0Optional

InboxDeadline

FieldTypeRequired
idDeadlineIdRequired
period_endstring · YYYY-MM-DDRequired
due_datestring · YYYY-MM-DDRequired

Invitation

FieldTypeRequired
idinteger · i64Required
emailstringRequired
roleRoleRequired
created_atstring · ISO 8601Required
created_bystringRequired
expires_atstring · ISO 8601Required
statusInvitationStatusRequired

InvitationCode

FieldTypeRequired
idinteger · i64Required
codestringRequired
expires_atstring · ISO 8601Required

ManageTenant

object · 3
FieldTypeRequired
namestringRequired
reasonstringRequired
action"edit"Required
object · 4
FieldTypeRequired
namestringRequired
reasonstringRequired
detailsTenantDetailsRequired
action"edit_details"Required
object · 2
FieldTypeRequired
reasonstringRequired
action"archive"Required
object · 2
FieldTypeRequired
reasonstringRequired
action"restore"Required
object · 2
FieldTypeRequired
reasonstringRequired
action"delete"Required

Member

FieldTypeRequired
emailstringRequired
namestringRequired
roleRoleRequired
granted_atstring · ISO 8601Required
granted_bystringRequired

NewBureau

FieldTypeRequired
namestringRequired
edb
stringnull
Server default: null
Optional

NewResponsiblePerson

FieldTypeRequired
roleResponsibleRoleRequired
full_namestringRequired
license_no
stringnull
Server default: null
Optional
valid_fromstring · YYYY-MM-DDRequired
valid_to
string · YYYY-MM-DDnull
Server default: null
Optional
supersedes_id
integer · i64null
Server default: null
Optional
reasonstringServer default: ""Optional

OfflinePermit

FieldTypeRequired
tenants
Array<string · UUID>
Server default: []
Optional
tenant_deadlines
Map<string, string · ISO 8601>
Server default: {}
Optional
user_idstring · UUIDRequired
device_idstring · UUIDRequired
issued_atstring · ISO 8601Required
expires_atstring · ISO 8601Required

OrganizationSummary

FieldTypeRequired
idstring · UUIDRequired
namestringRequired
logo_version
integer · i64null
Optional
can_view_profilebooleanRequired
can_editbooleanRequired

PaymentBatch

FieldTypeRequired
idPaymentBatchIdRequired
bank_account_idBankAccountIdRequired
payer_accountstringRequired
formatstringRequired
attachment_idAttachmentIdRequired
filenamestringRequired
sha256stringRequired
order_countinteger · i32Required
totalMoneyRequired
created_atstring · ISO 8601Required
created_bystringRequired

PaymentPlanRow

FieldTypeRequired
entry_idEntryIdRequired
line_nointeger · i32Required
partner_idPartnerIdRequired
partner_namestringRequired
account_codestringRequired
doc_numberstringRequired
due_datestring · YYYY-MM-DDRequired
openMoneyRequired
orderedMoneyRequired
remainingMoneyRequired
payee_account
stringnull
Optional

ResponsiblePerson

FieldTypeRequired
idinteger · i64Required
roleResponsibleRoleRequired
full_namestringRequired
license_no
stringnull
Server default: null
Optional
valid_fromstring · YYYY-MM-DDRequired
valid_to
string · YYYY-MM-DDnull
Server default: null
Optional
supersedes_id
integer · i64null
Server default: null
Optional
superseded_by
integer · i64null
Server default: null
Optional
reasonstringRequired
created_atstring · ISO 8601Required
created_bystringRequired

Role

"super_admin""admin""accountant""sales""operator""reviewer""viewer"

RoutingSettings

FieldTypeRequired
modeRoutingModeRequired
limitinteger · i32Required
clientsinteger · i32Required
managers
Map<string, string>
Required

SetMember

FieldTypeRequired
emailstringRequired
role
Rolenull
Optional

Subscription

FieldTypeRequired
seatsServer default: nullOptional
statusstringRequired
changed_at
string · ISO 8601null
Optional
reason
stringnull
Optional
licensestringServer default: "active"Optional
valid_from
string · YYYY-MM-DDnull
Server default: null
Optional
valid_until
string · YYYY-MM-DDnull
Server default: null
Optional

SubscriptionSeats

FieldTypeRequired
organization_idstring · UUIDRequired
namestringRequired
capacityinteger · i32Required
usedinteger · i64Required

Tenant

FieldTypeRequired
idTenantIdRequired
namestringRequired
edbstringRequired
created_atstring · ISO 8601Required
roleRoleRequired
archivedbooleanServer default: falseOptional
books_delegatedbooleanServer default: falseOptional

TenantContact

FieldTypeRequired
namestringRequired
rolestringRequired
phonestringRequired
emailstringRequired

TenantDetails

FieldTypeRequired
addressstringRequired
citystringRequired
postal_codestringRequired
municipalitystringRequired
countrystringRequired
embsstringRequired
vat_numberstringRequired
phonestringRequired
emailstringRequired
websitestringRequired
billing_addressstringRequired
billing_emailstringRequired
billing_referencestringRequired
contactsRequired

TenantMfaPolicy

FieldTypeRequired
requiredbooleanRequired
reason
stringnull
Server default: null
Optional
changed_at
string · ISO 8601null
Server default: null
Optional
changed_by
stringnull
Server default: null
Optional

inbox::WorkQuery

FieldTypeRequired
client
string · UUIDnull
Optional
offsetinteger · u32Server default: 0Optional
qstringServer default: ""Optional