{"id":1666,"date":"2022-11-15T17:31:09","date_gmt":"2022-11-15T16:31:09","guid":{"rendered":"https:\/\/kairntech.com\/doc\/?page_id=1666"},"modified":"2025-01-22T10:58:41","modified_gmt":"2025-01-22T09:58:41","slug":"api-sample","status":"publish","type":"page","link":"https:\/\/kairntech.com\/doc\/api-sample\/","title":{"rendered":"API sample"},"content":{"rendered":"\n<p>Kairntech can be fully controlled and run via the REST API. <\/p>\n\n\n\n<p>You can download some <a href=\"https:\/\/kdrive.infomaniak.com\/app\/share\/500058\/789782b9-3ee4-4dd1-8d36-4874424be827\" data-type=\"link\" data-id=\"https:\/\/kdrive.infomaniak.com\/app\/share\/500058\/789782b9-3ee4-4dd1-8d36-4874424be827\">python code<\/a> to help you integrate Kairntech into your environments via the REST API. The sample code explains how one specific task can be accomplished via the API in python, logging on to a Kairntech server and annotate a document. <\/p>\n\n\n\n<p>The full range of API calls can be inspected and tried out here: <a href=\"https:\/\/sherpa-sandbox.kairntech.com\/swagger-ui\/\">https:\/\/sherpa-sandbox.kairntech.com\/swagger-ui\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Kairntech can be fully controlled and run via the REST API. You can download some python code to help you integrate Kairntech into your environments via the REST API. The sample code explains how one specific task can be accomplished via the API in python, logging on to a Kairntech server and annotate a document. [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1666","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>API sample - Kairntech Documentation<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kairntech.com\/doc\/api-sample\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"API sample - Kairntech Documentation\" \/>\n<meta property=\"og:description\" content=\"Kairntech can be fully controlled and run via the REST API. You can download some python code to help you integrate Kairntech into your environments via the REST API. The sample code explains how one specific task can be accomplished via the API in python, logging on to a Kairntech server and annotate a document. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kairntech.com\/doc\/api-sample\/\" \/>\n<meta property=\"og:site_name\" content=\"Kairntech Documentation\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-22T09:58:41+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kairntech.com\/doc\/api-sample\/\",\"url\":\"https:\/\/kairntech.com\/doc\/api-sample\/\",\"name\":\"API sample - Kairntech Documentation\",\"isPartOf\":{\"@id\":\"https:\/\/kairntech.com\/doc\/#website\"},\"datePublished\":\"2022-11-15T16:31:09+00:00\",\"dateModified\":\"2025-01-22T09:58:41+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kairntech.com\/doc\/api-sample\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kairntech.com\/doc\/api-sample\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kairntech.com\/doc\/api-sample\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kairntech.com\/doc\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API sample\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kairntech.com\/doc\/#website\",\"url\":\"https:\/\/kairntech.com\/doc\/\",\"name\":\"Kairntech Documentation\",\"description\":\"All the information you need to use Kairntech Software, methodology,  user and installation guides.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kairntech.com\/doc\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"API sample - Kairntech Documentation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kairntech.com\/doc\/api-sample\/","og_locale":"en_GB","og_type":"article","og_title":"API sample - Kairntech Documentation","og_description":"Kairntech can be fully controlled and run via the REST API. You can download some python code to help you integrate Kairntech into your environments via the REST API. The sample code explains how one specific task can be accomplished via the API in python, logging on to a Kairntech server and annotate a document. [&hellip;]","og_url":"https:\/\/kairntech.com\/doc\/api-sample\/","og_site_name":"Kairntech Documentation","article_modified_time":"2025-01-22T09:58:41+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/kairntech.com\/doc\/api-sample\/","url":"https:\/\/kairntech.com\/doc\/api-sample\/","name":"API sample - Kairntech Documentation","isPartOf":{"@id":"https:\/\/kairntech.com\/doc\/#website"},"datePublished":"2022-11-15T16:31:09+00:00","dateModified":"2025-01-22T09:58:41+00:00","breadcrumb":{"@id":"https:\/\/kairntech.com\/doc\/api-sample\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kairntech.com\/doc\/api-sample\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kairntech.com\/doc\/api-sample\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kairntech.com\/doc\/"},{"@type":"ListItem","position":2,"name":"API sample"}]},{"@type":"WebSite","@id":"https:\/\/kairntech.com\/doc\/#website","url":"https:\/\/kairntech.com\/doc\/","name":"Kairntech Documentation","description":"All the information you need to use Kairntech Software, methodology,  user and installation guides.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kairntech.com\/doc\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"}]}},"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/kairntech.com\/doc\/wp-json\/wp\/v2\/pages\/1666","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kairntech.com\/doc\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/kairntech.com\/doc\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/kairntech.com\/doc\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/kairntech.com\/doc\/wp-json\/wp\/v2\/comments?post=1666"}],"version-history":[{"count":7,"href":"https:\/\/kairntech.com\/doc\/wp-json\/wp\/v2\/pages\/1666\/revisions"}],"predecessor-version":[{"id":4786,"href":"https:\/\/kairntech.com\/doc\/wp-json\/wp\/v2\/pages\/1666\/revisions\/4786"}],"wp:attachment":[{"href":"https:\/\/kairntech.com\/doc\/wp-json\/wp\/v2\/media?parent=1666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}