KontoCloud
Go SDK / Operation reference

Personal account

41 operations

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

GET

/api/account/ai-package

#

get_account_ai_package

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
tenant
string · UUIDnull
Optional

Request body

No request body.

Successful response

200 · application/json

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_account_ai_package", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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/addon.rs · addon::mine

GET

/api/account/ai-package/allowance

#

get_account_ai_package_allowance

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
tenant
string · UUIDnull
Optional

Request body

No request body.

Successful response

200 · application/json

AiDocumentAllowance

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_account_ai_package_allowance", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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/addon.rs · addon::allowance

GET

/api/account/ai-package/{id}/invoice

#

get_account_ai_package_id_invoice

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
idinteger · i64Required

Request body

No request body.

Successful response

200 · application/pdf

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{"id": "1"},
    Query: map[string][]string{},
}
result, err := client.Request(context.Background(), "get_account_ai_package_id_invoice", options)
if err != nil { panic(err) }
fmt.Println(result)

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/addon.rs · addon::download

GET

/api/me

#

get_me

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

Me

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_me", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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 · me

GET

/api/me/activity

#

get_me_activity

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
before
integer · i64null
Optional
limit
integer · i32null
Optional

Request body

No request body.

Successful response

200 · application/json

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_me_activity", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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::my_activity

GET

/api/me/api-keys

#

get_me_api_keys

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

Go SDK

options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_me_api_keys", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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

POST

/api/me/api-keys

#

post_me_api_keys

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
request.json
{
  "name": "example"
}

Successful response

201 · application/json

IssuedIntegrationKey

Call example

Go SDK

body := json.RawMessage("{\n  \"name\": \"example\"\n}")
options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
    Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_me_api_keys", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

Errors and constraints

invalid_key_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/api_keys.rs · api_keys::issue

POST

/api/me/api-keys/{id}/revoke

#

post_me_api_keys_id_revoke

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

boolean

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{"id": "00000000-0000-4000-8000-000000000001"},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_me_api_keys_id_revoke", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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/api_keys.rs · api_keys::revoke

GET

/api/me/avatar

#

get_me_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.

Request body

No request body.

Successful response

200 · image/*

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
}
result, err := client.Request(context.Background(), "get_me_avatar", options)
if err != nil { panic(err) }
fmt.Println(result)

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::avatar

POST

/api/me/avatar

#

post_me_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.

Request body

Raw bytes; not JSON or multipart. Set Content-Type to match the file.

Successful response

200 · application/json

Me

Call example

Go SDK

body, err := os.ReadFile("upload.bin")
if err != nil { panic(err) }
options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
    RawBody: body,
    Headers: map[string]string{"Content-Type": "image/png", "X-KC-Filename": "example.pdf"},
}
result, err := client.Request(context.Background(), "post_me_avatar", options)
if err != nil { panic(err) }
fmt.Println(result)

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::set_avatar

POST

/api/me/avatar/delete

#

post_me_avatar_delete

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

Me

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_me_avatar_delete", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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::clear_avatar

GET

/api/me/browser-logins

#

get_me_browser_logins

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

BrowserLoginSummary

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_me_browser_logins", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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::browser_logins

POST

/api/me/browser-logins

#

post_me_browser_logins

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
fingerprintstringRequired
request.json
{
  "fingerprint": "example"
}

Successful response

204

The response has no body.

Call example

Go SDK

body := json.RawMessage("{\n  \"fingerprint\": \"example\"\n}")
options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
    Body: body,
}
result, err := client.Request(context.Background(), "post_me_browser_logins", options)
if err != nil { panic(err) }
fmt.Println(result)

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::record_browser_login

GET

/api/me/configuration

#

get_me_configuration

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

ConfigSnapshot

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_me_configuration", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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/configuration.rs · configuration::get

POST

/api/me/configuration

#

post_me_configuration

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
configAccountConfigRequired
reasonstringRequired
preview_id
stringnull
Optional
request.json
{
  "config": {
    "schema_version": 1
  },
  "reason": "example"
}

Successful response

200 · application/json

ConfigPreview

Call example

Go SDK

body := json.RawMessage("{\n  \"config\": {\n    \"schema_version\": 1\n  },\n  \"reason\": \"example\"\n}")
options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
    Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_me_configuration", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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/configuration.rs · configuration::apply

POST

/api/me/configuration/preview

#

post_me_configuration_preview

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
configAccountConfigRequired
reasonstringRequired
preview_id
stringnull
Optional
request.json
{
  "config": {
    "schema_version": 1
  },
  "reason": "example"
}

Successful response

200 · application/json

ConfigPreview

Call example

Go SDK

body := json.RawMessage("{\n  \"config\": {\n    \"schema_version\": 1\n  },\n  \"reason\": \"example\"\n}")
options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
    Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_me_configuration_preview", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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/configuration.rs · configuration::preview

GET

/api/me/device-login/{code}

#

get_me_device_login_code

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
codestringRequired

Request body

No request body.

Successful response

200 · application/json

DeviceLoginInfo

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{"code": "example"},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_me_device_login_code", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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::device_info

POST

/api/me/device-login/{code}/decide

#

post_me_device_login_code_decide

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
codestringRequired

Request body

FieldTypeRequired
approvebooleanRequired
request.json
{
  "approve": true
}

Successful response

204

The response has no body.

Call example

Go SDK

body := json.RawMessage("{\n  \"approve\": true\n}")
options := kc.Options{
    Params: map[string]string{"code": "example"},
    Query: map[string][]string{},
    Body: body,
}
result, err := client.Request(context.Background(), "post_me_device_login_code_decide", options)
if err != nil { panic(err) }
fmt.Println(result)

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::device_decide

GET

/api/me/devices

#

get_me_devices

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

Go SDK

options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_me_devices", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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::devices

POST

/api/me/devices/{id}/revoke

#

post_me_devices_id_revoke

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
passwordstringRequired
request.json
{
  "password": "example"
}

Successful response

204

The response has no body.

Call example

Go SDK

body := json.RawMessage("{\n  \"password\": \"example\"\n}")
options := kc.Options{
    Params: map[string]string{"id": "00000000-0000-4000-8000-000000000001"},
    Query: map[string][]string{},
    Body: body,
}
result, err := client.Request(context.Background(), "post_me_devices_id_revoke", options)
if err != nil { panic(err) }
fmt.Println(result)

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::revoke_device

POST

/api/me/efaktura/certificate

#

post_me_efaktura_certificate

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
p12_base64stringRequired
passwordstringRequired
request.json
{
  "p12_base64": "example",
  "password": "example"
}

Successful response

200 · application/json

EinvoiceSetup

Call example

Go SDK

body := json.RawMessage("{\n  \"p12_base64\": \"example\",\n  \"password\": \"example\"\n}")
options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
    Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_me_efaktura_certificate", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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/efaktura.rs · efaktura::account_upload_cert

POST

/api/me/efaktura/certificate/local

#

post_me_efaktura_certificate_local

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
cert_base64stringRequired
request.json
{
  "cert_base64": "example"
}

Successful response

200 · application/json

EinvoiceSetup

Call example

Go SDK

body := json.RawMessage("{\n  \"cert_base64\": \"example\"\n}")
options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
    Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_me_efaktura_certificate_local", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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/efaktura.rs · efaktura::account_upload_local_cert

POST

/api/me/efaktura/certificate/lock

#

post_me_efaktura_certificate_lock

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

EinvoiceSetup

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_me_efaktura_certificate_lock", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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/efaktura.rs · efaktura::account_lock_cert

POST

/api/me/efaktura/certificate/remove

#

post_me_efaktura_certificate_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.

Request body

No request body.

Successful response

200 · application/json

EinvoiceSetup

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_me_efaktura_certificate_remove", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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/efaktura.rs · efaktura::account_remove_cert

POST

/api/me/efaktura/certificate/unlock

#

post_me_efaktura_certificate_unlock

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
passwordstringRequired
request.json
{
  "password": "example"
}

Successful response

200 · application/json

EinvoiceSetup

Call example

Go SDK

body := json.RawMessage("{\n  \"password\": \"example\"\n}")
options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
    Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_me_efaktura_certificate_unlock", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

Errors and constraints

certificate_lockedcertificate_missing

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/efaktura.rs · efaktura::account_unlock_cert

GET

/api/me/efaktura/companies

#

get_me_efaktura_companies

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

Go SDK

options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_me_efaktura_companies", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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/efaktura.rs · efaktura::settings_overview

GET

/api/me/efaktura/settings

#

get_me_efaktura_settings

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

EinvoiceSetup

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_me_efaktura_settings", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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/efaktura.rs · efaktura::account_setup

POST

/api/me/efaktura/settings

#

post_me_efaktura_settings

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
environmentServer default: nullOptional
eujp_id
stringnull
Server default: null
Optional
request.json
{}

Successful response

200 · application/json

EinvoiceSetup

Call example

Go SDK

body := json.RawMessage("{}")
options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
    Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_me_efaktura_settings", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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/efaktura.rs · efaktura::account_set_settings

POST

/api/me/grids/{register}

#

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

Go SDK

body := json.RawMessage("{\n  \"offset\": 1,\n  \"limit\": 1,\n  \"search\": \"example\",\n  \"lookup\": \"example\",\n  \"filters\": {},\n  \"include_inactive\": true,\n  \"labels\": {}\n}")
options := kc.Options{
    Params: map[string]string{"register": "example"},
    Query: map[string][]string{},
    Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_me_grids_register", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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::personal

POST

/api/me/name

#

post_me_name

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
request.json
{
  "name": "example"
}

Successful response

200 · application/json

Me

Call example

Go SDK

body := json.RawMessage("{\n  \"name\": \"example\"\n}")
options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
    Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_me_name", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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::set_name

GET

/api/me/offline-permit

#

get_me_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.

Request body

No request body.

Successful response

200 · application/json

OfflinePermit

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_me_offline_permit", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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::offline_permit

POST

/api/me/passkeys

#

post_me_passkeys

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
client_data_jsonstringRequired
attestation_objectstringRequired
request.json
{
  "name": "example",
  "client_data_json": "example",
  "attestation_object": "example"
}

Successful response

200 · application/json

RecoveryCodes

Call example

Go SDK

body := json.RawMessage("{\n  \"name\": \"example\",\n  \"client_data_json\": \"example\",\n  \"attestation_object\": \"example\"\n}")
options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
    Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_me_passkeys", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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::passkey_add

POST

/api/me/passkeys/options

#

post_me_passkeys_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.

Request body

No request body.

Successful response

200 · application/json

PasskeyCreationOptions

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_me_passkeys_options", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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::passkey_options

POST

/api/me/passkeys/{id}/delete

#

post_me_passkeys_id_delete

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
idinteger · i64Required

Request body

FieldTypeRequired
passwordstringRequired
request.json
{
  "password": "example"
}

Successful response

204

The response has no body.

Call example

Go SDK

body := json.RawMessage("{\n  \"password\": \"example\"\n}")
options := kc.Options{
    Params: map[string]string{"id": "1"},
    Query: map[string][]string{},
    Body: body,
}
result, err := client.Request(context.Background(), "post_me_passkeys_id_delete", options)
if err != nil { panic(err) }
fmt.Println(result)

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::passkey_remove

GET

/api/me/preferences

#

get_me_preferences

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

Map<string, string>

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_me_preferences", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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 · preferences

POST

/api/me/preferences

#

post_me_preferences

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
keystringRequired
valuestringRequired
request.json
{
  "key": "theme",
  "value": "dark"
}

Successful response

204

The response has no body.

Call example

Go SDK

body := json.RawMessage("{\n  \"key\": \"theme\",\n  \"value\": \"dark\"\n}")
options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
    Body: body,
}
result, err := client.Request(context.Background(), "post_me_preferences", options)
if err != nil { panic(err) }
fmt.Println(result)

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_preference

POST

/api/me/recovery-codes

#

post_me_recovery_codes

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
passwordstringRequired
request.json
{
  "password": "example"
}

Successful response

200 · application/json

RecoveryCodes

Call example

Go SDK

body := json.RawMessage("{\n  \"password\": \"example\"\n}")
options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
    Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_me_recovery_codes", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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::recovery_codes

GET

/api/me/security

#

get_me_security

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
summary_onlybooleanServer default: falseOptional

Request body

No request body.

Successful response

200 · application/json

AccountSecurityInfo

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_me_security", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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::security_info

POST

/api/me/totp/begin

#

post_me_totp_begin

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

TotpSetup

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_me_totp_begin", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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::totp_begin

POST

/api/me/totp/disable

#

post_me_totp_disable

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
passwordstringRequired
request.json
{
  "password": "example"
}

Successful response

204

The response has no body.

Call example

Go SDK

body := json.RawMessage("{\n  \"password\": \"example\"\n}")
options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
    Body: body,
}
result, err := client.Request(context.Background(), "post_me_totp_disable", options)
if err != nil { panic(err) }
fmt.Println(result)

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::totp_disable

POST

/api/me/totp/enable

#

post_me_totp_enable

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

RecoveryCodes

Call example

Go SDK

body := json.RawMessage("{\n  \"code\": \"example\"\n}")
options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
    Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_me_totp_enable", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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::totp_enable

Complete JSON types

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

ActivityEntry

FieldTypeRequired
idinteger · i64Required
atstring · ISO 8601Required
email
stringnull
Optional
tenant_id
string · UUIDnull
Optional
methodstringRequired
routestringRequired
statusinteger · i16Required
ip
stringnull
Optional
user_agent
stringnull
Optional
duration_msinteger · i32Required

AiDocumentAllowance

FieldTypeRequired
can_buybooleanServer default: falseOptional
monthlyinteger · i32Required
remaininginteger · i32Required
max_pagesinteger · i32Required
renews_onstring · YYYY-MM-DDRequired
offerAiPackageOfferRequired

AiPackageOffer

FieldTypeRequired
grossMoneyRequired
documentsinteger · i32Required
promo_gross
Moneynull
Optional
promo_until
string · YYYY-MM-DDnull
Optional
promo_remaininginteger · i32Required

AiPackageOrder

FieldTypeRequired
idinteger · i64Required
payer_namestringRequired
payer_edbstringRequired
grossMoneyRequired
documentsinteger · i32Required
usedinteger · i64Required
invoice_number
stringnull
Optional
valid_from
string · YYYY-MM-DDnull
Optional
valid_until
string · YYYY-MM-DDnull
Optional

BoardCell

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

BrowserLoginSummary

FieldTypeRequired
measuredinteger · i64Required
distinct_browsersinteger · i64Required

CloseStatus

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

CloseTask

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

CompanyConfig

FieldTypeRequired
edbstringRequired
numbering
Map<string, PolicyInput>
Server default: {}
Optional
eujp_id
stringnull
Optional
inherit_certificate
booleannull
Optional

ConfigDefaults

FieldTypeRequired
numbering
Map<string, PolicyInput>
Server default: {}
Optional
eujp_id
stringnull
Optional
certificate_id
integer · i64null
Optional

ConfigPreferences

FieldTypeRequired
language
stringnull
Optional
theme
stringnull
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

DeviceLoginInfo

FieldTypeRequired
user_codestringRequired
clientstringRequired
ip
stringnull
Optional
created_atstring · ISO 8601Required
expires_atstring · ISO 8601Required

DeviceSessionDetails

FieldTypeRequired
ip
stringnull
Optional
country
stringnull
Optional
user_agent
stringnull
Optional

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

EffectiveConfigRow

FieldTypeRequired
edbstringRequired
namestringRequired
doc_typeSeriesDocTypeRequired
warehouse
stringnull
Optional
templatestringRequired
sourcestringRequired
next
stringnull
Optional
eujp_id
stringnull
Optional
eujp_inheritedbooleanRequired
certificate
stringnull
Optional
certificate_inheritedbooleanRequired

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

EinvoiceCert

FieldTypeRequired
idinteger · i64Required
subjectstringRequired
serial_hexstringRequired
not_after
string · ISO 8601null
Optional
edb_hint
stringnull
Optional
sha256stringRequired
created_atstring · ISO 8601Required
created_bystringRequired
storageCertStorageServer defaultOptional

EinvoiceSettings

FieldTypeRequired
versioninteger · i32Required
environmentUjpEnvironmentRequired
eujp_id
stringnull
Optional
reason
stringnull
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired

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

IntegrationKey

FieldTypeRequired
idIntegrationKeyIdRequired
namestringRequired
created_atstring · ISO 8601Required
revoked_at
string · ISO 8601null
Optional

LocalCert

FieldTypeRequired
cert_base64stringRequired

Me

FieldTypeRequired
idstring · UUIDRequired
emailstringRequired
namestringRequired
preferences
Map<string, string>
Server default
Optional
platform_adminbooleanServer default: falseOptional
email_verifiedbooleanServer default: falseOptional
has_avatarbooleanServer default: falseOptional
mfa_required_by
Array<string>
Server 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

PasskeyCreationOptions

FieldTypeRequired
challengestringRequired
rp_idstringRequired
rp_namestringRequired
user_idstringRequired
user_namestringRequired
user_display_namestringRequired
exclude_credentials
Array<string>
Required

PasskeyInfo

FieldTypeRequired
idinteger · i64Required
namestringRequired
created_atstring · ISO 8601Required
last_used_at
string · ISO 8601null
Optional

PasskeyRegistration

FieldTypeRequired
namestringRequired
client_data_jsonstringRequired
attestation_objectstringRequired

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

PolicyInput

FieldTypeRequired
mode
stringnull
Optional
template
stringnull
Optional
resetOptional
start_number
integer · i32null
Optional

RegisteredDevice

FieldTypeRequired
idstring · UUIDRequired
namestringRequired
approved_atstring · ISO 8601Required
last_used_atstring · ISO 8601Required
activebooleanRequired
currentbooleanRequired
sessionServer default: nullOptional

Role

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

SecurityEvent

FieldTypeRequired
idinteger · i64Required
atstring · ISO 8601Required
eventstringRequired
ip
stringnull
Optional
detail
stringnull
Optional

SeriesDocType

"invoice""advance""credit_note""stock_receipt""stock_issue""stock_transfer""stock_return_supplier""stock_return_customer""stock_stocktake""stock_storno""stock_cost""stock_price_leveling""sales_quote""sales_order""sales_proforma"

SetPreference

FieldTypeRequired
keystringRequired
valuestringRequired

SignerStatus

FieldTypeRequired
connectedbooleanRequired
signer
stringnull
Optional
last_seen
string · ISO 8601null
Optional
pendinginteger · usizeRequired

Tenant

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

TotpCode

FieldTypeRequired
codestringRequired

TotpSetup

FieldTypeRequired
secretstringRequired
uristringRequired
qr_svgstringServer default: ""Optional

UjpSettingsSources

FieldTypeRequired
account_id
string · UUIDnull
Optional
eujp_inheritedbooleanRequired
certificate_inheritedbooleanRequired
use_account_certificatebooleanRequired

UploadCert

FieldTypeRequired
p12_base64stringRequired
passwordstringRequired

security::Page

FieldTypeRequired
before
integer · i64null
Optional
limit
integer · i32null
Optional