⚠️ With the introduction of APIv4, further development of APIv2 has ended and APIv2 will be gradually phased out.
For this reason, we recommend choosing APIv4 when building new integrations.
We also encourage you to migrate existing integrations to APIv4 wherever possible.
What is an API?#
An API (Application Programming Interface) is an interface that allows different systems to communicate with each other. With the API, your system can automatically retrieve data from or send data to LangLion, without you having to do it manually.The LangLion API v4 is based on the REST (Representational State Transfer) standard. Communication takes place via HTTP requests, and data is exchanged in a standardised format.
The API lets you, for example, integrate LangLion with your own system, application, website or other software.
API v4 documentation
The full API v4 documentation is available at:
https://{instance-id}.langlion.com/api/v4/docs
where {instance-id} should be replaced with the ID of your LangLion instance.
Sample documentation for the demo instance can be found here:
https://demonstracyjna.langlion.com/api/v4/docs
Important: before you start building an integration, it is worth reading the documentation carefully. It contains useful information on how the API works, which operations are available and what to expect in API responses. This will help you avoid many problems while building your integration.
API Reference#
In the documentation, the “API Reference” tab contains a full list of available endpoints together with their descriptions.For each endpoint you will find information on, among other things:
- how to call the endpoint,
- required parameters,
- the request structure,
- the response structure,
- available data and fields,
- possible API responses.
Before implementing a particular feature, check the relevant endpoint in the “API Reference” tab and read its full description.
Generating API keys#
You need API keys to communicate with API v4. You can generate them directly in the LangLion admin panel.To generate a new key:
- Go to Admin.
- Select Settings.
- Go to the Integrations section.
- Select API.
- Click the Generate button.

New API key settings#
When creating the keys, enter their name and select the appropriate access scope.In the Expiration period field, you can set after how many days (30, 60, 90 or 180) the key expires, or choose No expiration. The expiry date is shown on the key list next to Expires.
The key name (the Auth key name field) may contain only Latin letters and digits – no spaces or special characters, max. 64 characters. We recommend a simple name that describes what the key is used for, e.g. CRMIntegration or ExternalSystem.
Then, in the scope field, select: apiv4
Once you have filled in the details, click Generate.

User assigned to the API keys#
Each set of generated API keys is assigned to the user who created it. This means the API keys inherit that user's permissions and their access to individual branches.For this reason, we recommend creating a dedicated user for the integration and giving it only the permissions it needs and access only to the specific branches the integration should be able to reach.
This limits what the API keys can access and makes the integration more secure.
The generated API keys will be used to create a token, which is attached to every API request to authenticate your identity.