{"componentChunkName":"component---src-templates-simple-markdown-js","path":"/process-intelligence-apis/subscription-api/get-started/getting-started/","matchPath":"","result":{"data":{"markdownRemark":{"html":"<h1 style=\"position:relative;\"><a href=\"#getting-started\" aria-label=\"getting started permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"getting-started\"></div>Getting Started</h1>\n<p>This page describes how to get started with the Subscription API in a simple way using Postman.</p>\n<h2 style=\"position:relative;\"><a href=\"#prerequisites\" aria-label=\"prerequisites permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"prerequisites\"></div>Prerequisites</h2>\n<ol>\n<li>\nYou need to have a \n<a href=\"https://docs.celonis.com/en/knowledge-models.html\">Knowledge Model</a>\n available in your team with at least one \n<a href=\"https://docs.celonis.com/en/triggers.html\">KM Trigger</a>\n.\n</li>\n<li>\nYou must request the activation of the API in your Celonis Platform Team to the account team.\n</li>\n<li>\nYou should establish a destination webhook at the 3P Platform that will be able to understand the \n<a href=\"https://developer.celonis.com/process-intelligence-apis/subscription-api/outbound-api-reference/openapi/reference/operation/consumEvents/\">semantics of Celonis events</a>\n.\n</li>\n<li>\nYou should make sure that you have the authentication token of the outbound webhook. You will need it when you create the subscription so that outbound events don’t get rejected as unauthorized.\n</li>\n</ol>\n<h3 style=\"position:relative;\"><a href=\"#inbound-direction\" aria-label=\"inbound direction permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"inbound-direction\"></div>Inbound Direction</h3>\n<h4 style=\"position:relative;\"><a href=\"#authentication\" aria-label=\"authentication permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"authentication\"></div>Authentication</h4>\n<p>The authentication options applicable to all Celonis APIs are described <a href=\"/celonis-apis/auth/\">here</a>.</p>\n<h4 style=\"position:relative;\"><a href=\"#authorization\" aria-label=\"authorization permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"authorization\"></div>Authorization</h4>\n<h5 style=\"position:relative;\"><a href=\"#oauth-scopes-for-subscription-api\" aria-label=\"oauth scopes for subscription api permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"oauth-scopes-for-subscription-api\"></div>OAuth Scopes for Subscription API</h5>\n<p>OAuth clients for Subscription API should be configured with the scope:</p>\n<ul>\n<li>\n<code class=\"language-text\">intelligence.subscriptions:manage</code>\n</li>\n</ul>\n<h5 style=\"position:relative;\"><a href=\"#client-permissions-for-subscription-api\" aria-label=\"client permissions for subscription api permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"client-permissions-for-subscription-api\"></div>Client Permissions for Subscription API</h5>\n<p>You must <a href=\"https://docs.celonis.com/en/application-keys.html\">set the right permissions</a> and ensure the <a href=\"#authentication\">User API Key or the Application</a> leveraged for authorization purposes has access to the Celonis <a href=\"https://docs.celonis.com/en/studio.html#UUID-54a37cea-24d8-8459-8668-a517455a4e19_id_Studio-Workingwithpackages\">Celonis Platform Studio package</a> containing the Knowledge Model(s) and the Triggers you would like to access through Subscription API.</p>\n<p>You can grant access permissions by following these steps:</p>\n<ul>\n<li>\nGo to the Studio package.\n</li>\n<li>\nClick on the three dots and select \n<code class=\"language-text\">Permissions</code>\n from the pop-up menu.\n</li>\n<li>\nSearch for the User (in case you are using a \n<a href=\"/celonis-apis/auth/#using-a-user-api-key\">Bearer token</a>\n) the Application (in case you are using an \n<a href=\"/celonis-apis/auth/#using-an-application-api-key\">AppKey</a>\n) and grant at least \n<code class=\"language-text\">USE PACKAGE</code>\n and \n<code class=\"language-text\">EDIT PACKAGE</code>\n rights.\n</li>\n</ul>\n<h3 style=\"position:relative;\"><a href=\"#outbound-direction\" aria-label=\"outbound direction permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"outbound-direction\"></div>Outbound Direction</h3>\n<h4 style=\"position:relative;\"><a href=\"#callback-info\" aria-label=\"callback info permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"callback-info\"></div>Callback Info</h4>\n<p>Example of the request payload of the subscription is below: </p>\n<div class=\"code-wrapper\">\n        <div class=\"gatsby-code-button-container\"\n             data-toaster-id=\"11969951640162036000\"\n             data-toaster-duration=\"1500\"\n             onClick=\"copyCodeToClipboard(`{\n   &quot;callbackInfo&quot;: {\n       &quot;uri&quot;: &quot;\\\\$destination-webhook-URL&quot;,\n       &quot;protocol&quot;: &quot;HTTPS&quot;,\n       &quot;headers&quot;: {\n           &quot;Authorization&quot;: &quot;Bearer&quot; + \\\\$token\n       }\n   },\n    &quot;name&quot;: &quot;\\\\$subcription-name&quot;,\n   &quot;configurations&quot;: [\\\\$optional-list-of-subscription-configurations]\n}`, `11969951640162036000`)\"\n        >\n          <div class=\"gatsby-code-button\" title=\"Copy the code snippet\">Copy</div>\n          <div class=\"done-indicator done-indicator-11969951640162036000\">Copied</div>\n        </div>\n        <div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">{\n   \"callbackInfo\": {\n       \"uri\": \"$destination-webhook-URL\",\n       \"protocol\": \"HTTPS\",\n       \"headers\": {\n           \"Authorization\": \"Bearer\" + $token\n       }\n   },\n    \"name\": \"$subcription-name\",\n   \"configurations\": [$optional-list-of-subscription-configurations]\n}</code></pre></div>\n      </div>\n<ul>\n<li>\nCallback URI: Please enter the destination webhook URL\n</li>\n<li>\nCallback Protocol: Should be \n<code class=\"language-text\">HTTPS</code>\n</li>\n<li>\nCallback Headers (Authorization headers described below)\n</li>\n</ul>\n<h4 style=\"position:relative;\"><a href=\"#outbound-authenticationauthorization-to-the-3p-platform\" aria-label=\"outbound authenticationauthorization to the 3p platform permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"outbound-authenticationauthorization-to-the-3p-platform\"></div>Outbound Authentication/Authorization to the 3P Platform</h4>\n<p>Possible Authentication methods:</p>\n<ul>\n<li>\nAPI Key with value: \n<code class=\"language-text\">Authorization: Bearer $token</code>\n</li>\n<li>\nApp Key with value: \n<code class=\"language-text\">Authorization: appkey $token</code>\n</li>\n</ul>\n<h2 style=\"position:relative;\"><a href=\"#consuming-the-subscription-api\" aria-label=\"consuming the subscription api permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"consuming-the-subscription-api\"></div>Consuming the Subscription API</h2>\n<p>Once you have completed the previous steps, you can start making requests to the API. For that you will use Postman (or any other REST client), which you should already have installed in our system. </p>\n<ol>\n<li>\nGo to \n<strong>File > New...</strong>\n and select \"HTTP Request\". Once you do this, you should see something like this:\n</li>\n</ol>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 640px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 63.59649122807017%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAANCAYAAACpUE5eAAAACXBIWXMAAAsTAAALEwEAmpwYAAACgUlEQVQ4y3WSTW/TQBCGfYMTAqqKtkkce70fXn/EcZ04KUIookJ8tLQCJDiB2lKgl8BfQOJi9QIX/hT/BaEc62Z3mN04EAk4PPLO7My77+zaEZyd5/1eNR6X1agcVsV2XqVpXPl+t/KJWyVpVA0HeZX1oopizCipKA2qRArMJdX9UV59P9s9/3pYfnKu3LzhHO9twMneLTjZ37CcPtmC04NNeH/QgelzAdNnHM6eCXj7VMCbQw5Hjzfh9cM1OHq0DsfYd3awBd9eufD5pQuTnfXQ2X8wgUEeXfRiWqdRUBd9WY+HvbosknpyZ1RnMaulIHUkAovkXh0yt05Cvx5sx3VMNy+4v65CGfyQnDBnPN4BJkJFGdeUCfAIA58EWsaJTtJMcxFqzkNt9gPKNKXcrrmItBRMk3unynvxBVyRz7prV7kTRRFwzpQpvj3o68k40yQIoMgy3UsTCCNpkWEIQgiQUgKlFAKsIZ4LXr6r2ndPwGPxzN+4zp00TVGQK4FOijzTRT/RjHGQQugYD/N9HzzPsyJYZ9cGs47iGKjXVr2QAA2C2VarzZ0kScypqiyHuhgMYFiWkKE7D4X8FQghlmVsHBp8QhRekcnNXNddCBqHMop1lI20TPpaCG6atXGydNigMbas5FRTN+t2u9wxd8IYUwiOSs3asuqmQa+KL2Pf91SzvxA0zcYhopcsxJnGkX47WhIERAfG/Z+caq5k1ul0uGMuF5svG+YYW7Bgjk7mWGwxa/wj5lkazykl826zh/lLMw0e/rPVajEraH4H823E/zcyRIvr+edjoaDCRxFm5A948hTFLJi0oP2/aLfbFtddxKYO32CKYh+x9x1+r/0Ci1Jeg1PHgDIAAAAASUVORK5CYII='); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Postman empty request\"\n        title=\"Postman empty request\"\n        src=\"/static/444d0630e912c1bbf27961556b2441c2/6af66/empty-request.png\"\n        srcset=\"/static/444d0630e912c1bbf27961556b2441c2/d4770/empty-request.png 228w,\n/static/444d0630e912c1bbf27961556b2441c2/379c3/empty-request.png 455w,\n/static/444d0630e912c1bbf27961556b2441c2/6af66/empty-request.png 640w\"\n        sizes=\"(max-width: 640px) 100vw, 640px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<ol start=\"2\">\n<li>\nEnter the request URL next to the \n<strong>Send</strong>\n button. For this URL use the one from the \"Determine the URL for your team\" section: \n<a href=\"https://dev.us-2.celonis.cloud/intelligence/api\">https://dev.us-2.celonis.cloud/intelligence/api</a>\n.\n</li>\n<li>\nNow you need to set your API or Application Key in order to authenticate our requests. To do this, click on the \n<strong>Headers</strong>\n tab beneath the URL you just entered. Enter \"Authorization\" as the Key and for Value, enter: \n</li>\n<li>\n<code class=\"language-text\">Bearer &lt;YOUR_KEY></code>\n if you have a User API Key\n</li>\n<li>\n<code class=\"language-text\">AppKey &lt;YOUR_KEY></code>\n if you have an AppKey\n</li>\n</ol>\n<p>In the following example, you have an AppKey:</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 910px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 28.07017543859649%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAGCAIAAABM9SnKAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA10lEQVQY01WOzW3DMAyFNUZPtShS1D8VGLHjnIomh47QHTpNF+pupWW0SD5QBEmJes+ISGut9376o9YKANZaB+Ce0XnOWR8gkkg3rVZduKzrsix6tm1bRz3Pc8k5PXA0upxTnD6/X75+DDOXlO6SPyQI+zCuoxJi4OAcHuowZA99NQWx2/6myiXF6B2wAxx2PVEKgRCZyCP6kYP3pRTdRES13UouKZj7qV3ZneH17KbFTVpcGXV4k/Ku0fZ8a/nCSMw4lEm/GxjtcWj+B+2T3eVDWNwheOYXq5s5YxohJvgAAAAASUVORK5CYII='); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Postman authentication section\"\n        title=\"Postman authentication section\"\n        src=\"/static/b4f7175e363e77f7360795113d9f68ff/c6bbc/auth.png\"\n        srcset=\"/static/b4f7175e363e77f7360795113d9f68ff/d4770/auth.png 228w,\n/static/b4f7175e363e77f7360795113d9f68ff/379c3/auth.png 455w,\n/static/b4f7175e363e77f7360795113d9f68ff/c6bbc/auth.png 910w,\n/static/b4f7175e363e77f7360795113d9f68ff/00d43/auth.png 1000w\"\n        sizes=\"(max-width: 910px) 100vw, 910px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<h3 style=\"position:relative;\"><a href=\"#getting-the-list-of-knowledge-models\" aria-label=\"getting the list of knowledge models permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"getting-the-list-of-knowledge-models\"></div>Getting the list of Knowledge Models</h3>\n<p>Once you have completed the steps above, you should now be able to start getting some data. You will start getting the full list of Knowledge Models to which your API token has access.</p>\n<p>First, append \"/knowledge-models\" to the URL used in the previous steps:\n<a href=\"https://dev.us-2.celonis.cloud/intelligence/api/knowledge-models\">https://dev.us-2.celonis.cloud/intelligence/api/knowledge-models</a>.</p>\n<p>After that, click the <strong>Send</strong> button next to the URL and you should see something like:</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 640px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 74.12280701754386%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAPCAIAAABr+ngCAAAACXBIWXMAAAsTAAALEwEAmpwYAAABm0lEQVQoz41SW27cMAzUIfLZriVSot6yY++u6/QABfpZ9Bz96F16qN4qIzsJsgjaZEALlsgRhxTVOI7zPE/ThPVyuZyfsOCEmbXW9AxjTM4F8ex8LlMZZwVOTKnWuq4rSNfrdf2ybtu2PqO1FkKIB1KOTptvv/Tvv3c//6jzNMYQcskSJKUk0Xsf8OWcsQ078HNkJmJLZojLp+uPz/N3NZbcWjW77wXOOWh+2UK8tRaJnbVaGzZDEipRFDGLCN0C2RC9p3qqFjEoDWs/ZBsiyq/KfBj0WslwwqeOi5n4yHKohfeGBljerUcQO7IeAtTDekE/C9pTM9qOl5AdHmXv9x4Fo5GchIPY6EiK1NWHrJb5HmR0OMXe6KPDfRWxeOdXUnc7NA/ibEoRNWu2Lp838BBzOg3DAO8O/S8Y+LpsFJlLWrav09RiEO9dCO9bjD2yk1P0pWLalqnlpaWxhJZ9zZgV9x8TcQrzYPvYEEvADCRn+3ygqUT6HZhO7nRmn2uJoUFFkCgOdjt1b56daM/cuWzFQ4LrWekjMwPKI9r6hp85jztJAAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Knowledge Models response\"\n        title=\"Knowledge Models response\"\n        src=\"/static/2e0e81f6b671c184ceb2538595a9c81a/6af66/knowledge-models.png\"\n        srcset=\"/static/2e0e81f6b671c184ceb2538595a9c81a/d4770/knowledge-models.png 228w,\n/static/2e0e81f6b671c184ceb2538595a9c81a/379c3/knowledge-models.png 455w,\n/static/2e0e81f6b671c184ceb2538595a9c81a/6af66/knowledge-models.png 640w\"\n        sizes=\"(max-width: 640px) 100vw, 640px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<p>Inside the Content section, you will see a list of all your Knowledge Models. The Knowledge Models will be divided into pages. By default, the page size will be 50. If you have more than 50 Knowledge Models, you can navigate to\nthe following page, adding a \"page\" query parameter. The pages start at 0, so you can display the second page by setting a page value of 1. </p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 640px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 27.631578947368418%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAGCAIAAABM9SnKAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA3UlEQVQY011PW27DIBDkGlEVw+5iY54x1AY76k8/+t1j5DdHyz16qWKiVm5Ho9HMiGWBhRCUUimldV3nec45l1Ku163Gaqpu2xZj1FqbBmt0bwLeHqf7F4sXP47KhzAa7ZwbrbbtkN/hngO1H4aBJMkGkn2XP8/vN5aCH9QIiAJAwFN3A0g/JVQvsDY7oAHPJ8lf2FucLhKt6DwKB9wDr1qcDgR7RFFpgU8SJu+ttdSuqPvmZWEfS1okJOxekf+y9HSMCXkmYXqJUuJhP+uEaK/9QyD6XyLWHxMRHPANIbE5K5h4wbgAAAAASUVORK5CYII='); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Setting a page query parameter\"\n        title=\"Setting a page query parameter\"\n        src=\"/static/f51d531a700d65bbb89cf18ab0fd127d/6af66/page.png\"\n        srcset=\"/static/f51d531a700d65bbb89cf18ab0fd127d/d4770/page.png 228w,\n/static/f51d531a700d65bbb89cf18ab0fd127d/379c3/page.png 455w,\n/static/f51d531a700d65bbb89cf18ab0fd127d/6af66/page.png 640w\"\n        sizes=\"(max-width: 640px) 100vw, 640px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<p>In this example, this is not needed as we only have 13 Knowledge Models. However, you might want to specify other query\nparameters such as: </p>\n<ul>\n<li>\n<code class=\"language-text\">pageSize</code>\n: Sets the size of each page.\n</li>\n<li>\n<code class=\"language-text\">sort</code>\n: Sort the results by id or name. \n</li>\n</ul>\n<p>You can check the full list of parameters and possible responses <a href=\"https://developer.celonis.com/process-intelligence-apis/knowledge-model-api/api-reference/openapi/reference/operation/getKnowledgeModel/\">from this page</a>.</p>\n<p>You can also <a href=\"/process-intelligence-apis/subscription-api/api-reference/error-catalog/\">check the full list of possible errors</a> you can receive in the API, in case you need to troubleshoot any issue.</p>\n<h3 style=\"position:relative;\"><a href=\"#getting-the-list-of-km-triggers\" aria-label=\"getting the list of km triggers permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><div class=\"hidden-anchor\" id=\"getting-the-list-of-km-triggers\"></div>Getting the list of KM Triggers</h3>\n<p>You will now get the list of Triggers in a selected Knowledge Model to which your API token has access.</p>\n<p>First, append \"/{knowledge-model-id}/triggers\" to the URL used in the previous steps:\n<a href=\"https://dev.us-2.celonis.cloud/intelligence/api/knowledge-models/%7Bknowledge-model-id%7D/triggers\">https://dev.us-2.celonis.cloud/intelligence/api/knowledge-models/{knowledge-model-id}/triggers</a>.</p>\n<p>After that, click the <strong>Send</strong> button next to the URL and you should see something like:\n<span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 910px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 39.03508771929825%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAICAYAAAD5nd/tAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA8ElEQVQoz52RTXIEIQiFvYnYouJPjbNLbpAj5CS5R278Ak6ny6pJFsniKxAQeeiYGTlnlFIw51x+jPHC8pd/2qSxxBGeaN2Z8w65vaLNF7ioiVorWu9orWGMga6+xfoZM3/VnL7ZIoLjOBRCzA3z/RPl7QNONFGkrAmbFtt5J4QA0kl2vPcgTwhXzD9iWuuskVRZmG8SeZO8Y82X5JQQE1+wnr9X5UyqSF2BpJi1hvai9/QEUXhMvUP2EK8VqOSMNjpuXXAfOmmxT2KdNv0A/47dyQmu6oJFSSki2/hs8o5/opJLG6h9nIulpw/4C7aKL9w05Oto1BoVAAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Triggers Response\"\n        title=\"Triggers Response\"\n        src=\"/static/1c51533c2d37da90ad29a750c6dfc0d7/c6bbc/trigger.png\"\n        srcset=\"/static/1c51533c2d37da90ad29a750c6dfc0d7/d4770/trigger.png 228w,\n/static/1c51533c2d37da90ad29a750c6dfc0d7/379c3/trigger.png 455w,\n/static/1c51533c2d37da90ad29a750c6dfc0d7/c6bbc/trigger.png 910w,\n/static/1c51533c2d37da90ad29a750c6dfc0d7/46115/trigger.png 1290w\"\n        sizes=\"(max-width: 910px) 100vw, 910px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<p>In this quick guide, you managed to create your first requests to Subscription API and discover the triggers to which consumers can subscribe. </p>\n<p>Please refer to <a href=\"/process-intelligence-apis/subscription-api/tutorials/learning/managing-subscription/\">the guidelines for subscription lifecycle management</a> for more details and tutorials.</p>","headings":[{"value":"Getting Started","depth":1},{"value":"Prerequisites","depth":2},{"value":"Inbound Direction","depth":3},{"value":"Authentication","depth":4},{"value":"Authorization","depth":4},{"value":"OAuth Scopes for Subscription API","depth":5},{"value":"Client Permissions for Subscription API","depth":5},{"value":"Outbound Direction","depth":3},{"value":"Callback Info","depth":4},{"value":"Outbound Authentication/Authorization to the 3P Platform","depth":4},{"value":"Consuming the Subscription API","depth":2},{"value":"Getting the list of Knowledge Models","depth":3},{"value":"Getting the list of KM Triggers","depth":3}]},"contentItem":{"data":{"lastModified":"2025-10-07T17:03:39.000Z","enableToc":null,"disableLastModified":null,"tocMaxDepth":null,"requestLogin":false}},"siteConfig":{"enableToc":false,"disableLastModified":false,"tocMaxDepth":4}},"pageContext":{"matchPath":"","id":"1108f445-ab76-545a-b2ba-fc092de45bf7__redocly content/process-intelligence-apis/subscription-api/get-started/getting-started/","seo":{"title":"Getting Started","description":null,"image":"","keywords":null,"jsonLd":null,"lang":null,"siteUrl":null},"pageId":"process-intelligence-apis/subscription-api/get-started/getting-started.md","pageBaseUrl":"/process-intelligence-apis/subscription-api/get-started/getting-started","type":"markdown","toc":{"enable":true,"maxDepth":4,"headings":[{"depth":1,"value":"Getting Started","id":"getting-started"},{"depth":2,"value":"Prerequisites","id":"prerequisites"},{"depth":3,"value":"Inbound Direction","id":"inbound-direction"},{"depth":4,"value":"Authentication","id":"authentication"},{"depth":4,"value":"Authorization","id":"authorization"},{"depth":5,"value":"OAuth Scopes for Subscription API","id":"oauth-scopes-for-subscription-api"},{"depth":5,"value":"Client Permissions for Subscription API","id":"client-permissions-for-subscription-api"},{"depth":3,"value":"Outbound Direction","id":"outbound-direction"},{"depth":4,"value":"Callback Info","id":"callback-info"},{"depth":4,"value":"Outbound Authentication/Authorization to the 3P Platform","id":"outbound-authenticationauthorization-to-the-3p-platform"},{"depth":2,"value":"Consuming the Subscription API","id":"consuming-the-subscription-api"},{"depth":3,"value":"Getting the list of Knowledge Models","id":"getting-the-list-of-knowledge-models"},{"depth":3,"value":"Getting the list of KM Triggers","id":"getting-the-list-of-km-triggers"}]},"data":{"title":""},"catalogInfo":null,"link":"/process-intelligence-apis/subscription-api/get-started/getting-started/","sidebarName":"celonis","isLanding":false,"showPrevButton":null,"showNextButton":null,"apiVersions":null,"apiVersionId":null,"isDefaultApiVersion":null}},"staticQueryHashes":["1123603147","1302185487","1344209882","1398840060","1520077861","1975142765","2667623876","2950305614","3240152602","3743992808","561138138"]}