The goal of this repository and the content is to provide a fast start for developers exploring or working with the Logik APIs. The aim is to keep this as complete and up to date as possible, but exhaustiveness and absolute correctness is not guaranteed.
For more detailed information see the Logik.io Support Portal
Logik.io provides a set of APIs for building front end applications and manipulating configurations. These are commonly referred to as “buyside” or “runtime” APIs that are used by customers or end users to create, update and save Logik configurations.
The Runtime APIs support the standard CRUD (Create, Read, Update, Delete) functions for Logik configurations, along with the ability to retrieve Bill of Materials (BOM) data from Logik.
Important:
Real API calls will be made to the Logik Instance that you authorize, take special care if you are using a production environment versus a test. Data can be persisted in Logik and if connections are configured to external systems, additional downstream effects may occur.
For either Postman or Swagger you will first need to generate a Runtime Client. To create a runtime client in the Logik.io Admininstration page of your instance for authentication access to the APIs. You will need both the Runtime Token and the Origin of your runtime client for both.
The allowed Origin is different depending on using Postman or the Swagger Editor.
<Any value you want>, localhost is a common choicehttps://editor.swagger.io/, if using the online editor linked belowSee Authenticating Logik API Calls for a detailed walkthrough.
A Postman collection for commonly used Runtime APIs is provided in this repository to allow for easy testing and usage of the provided Runtime APIs.
This Collection contains 3 folders grouping the API calls
Each API call comes with at least one example of a successful API call & response. These can be used as a reference for what some of the responses might look like. Individual responses will vary based on the configuration of your Logik product, fields and rules.
The majority of the Postman API calls have scripts in the “Tests” tab of the requests to set or update the collection variables dynamically based on the response of the request.
See Also:




There are 4 variables (baseUrl, runtimeToken, origin, configProductId) that are required to be set to start using the postman collection. The last 2 variables (uuid, layoutUrl) that can be set automatically when running the requests for use in subsequent requests, or set to a specific value for testing.
baseUrl* - the Logik.io API URL to send the API calls to. In the format of https://<tenant>.<sector>.logik.io/api (Note no trailing slash on the URL) *Required
<tenant> - is the Logik tenant of your instance, which will be specific to your deployment<sector> - is the Logik Sector of your instance, generally test or prodruntimeToken* - the Runtime Token, used to authenticate API calls as defined in the Runtime Client setup in Logik *Requiredorigin* - the origin, as defined in the Runtime Client setup in Logik *RequiredconfigProductId* - this is the Id of the Configurable Product to use for the Configuration calls. This must be a Logik enabled Product with a deployed blueprint. *Requireduuid - the Logik Configuration Id for a specific configuration. This will be set automatically when initalizing a new configuration, but can be specified here if you want to test or use a specifc Configuration Id. OptionallayoutUrl - The URL of the layout to load. This will be set automatically when initalizing a new configuration, but can be specified here if you want to test or use a specifc Layout. Optional
baseUrl, runtimeToken, origin, and configProductId variables, Save to persist the changesNow the Postman Collection should be configured to make requests to your Logik Instance
For using each of the APIs, please see the Logik.io Support site for detailed Runtime API documentation
Swagger (OpenAPI) file documenting the Logik Runtime APIs, with example responses and schema(s) supported.
Blueprints that use Product Picker Fields must use the application/vnd.logik.cfg-v2+json Content-Type when making requests.
The Runtime APIs are versioned using different Content-Types. There are 2 Content-Type formats, application/json for v1 and application/vnd.logik.cfg-v2+json for v2.
application/json can be used with regular Logik field types (number, boolean, text and picklist) and sets.application/vnd.logik.cfg-v2+json can be used with all regular field types as well as Product Picker Fields.The Accept Header should match the Content-Type being used, either:
application/json for v1.application/vnd.logik.cfg-v2+json, application/json for v2.This Swagger file uses the v1 format of the Logik Configuration APIs, with Content-Type and Accept headers of application/json
This Swagger file uses the v2 format of the Logik Configuration APIs, with Content-Type and Accept headers of application/vnd.logik.cfg-v2+json
Each API call has a basic structure of any response body that might be included in the call and potential responses. The aim is to keep this as complete and up to date as possible, but exhaustiveness is not guaranteed.
Swagger provides a free online editor that can be used for exploring an OpenAPI Spec and testing out calls.


tenantName - is the Logik tenant of your instance, which will be specific to your deploymentsectorName - is the Logik Sector of your instance, generally test or prod
https://editor.swagger.io/Now the Swagger Editor should be configured to make requests to your Logik Instance
For using each of the APIs, please see the Logik.io Support site for detailed Runtime API documentation
Logik.io provides access to the admin APIs for automating and managing the setup of Logik.io from the Administrative side.
Current APIs
Important:
Real API calls will be made to the Logik Instance that you authorize, take special care if you are using a production environment versus a test. Data can be persisted in Logik and if connections are configured to external systems, additional downstream effects may occur.