Note: If you want to connect with Zendesk, we recommend using our built-in integration.
Our API can be used to analyze and save new documents into a project. This way it's possible to connect a third-party platform to your project in and get all the benefits from our Dashboards in real time.
The API exposes two endpoints:
/analyze - It returns the analysis for a given document, including its intents, features, and tags.
/documents - It saves the passed document to the project
The documents passed to the API may have a metadata property that can include any extra field that can be useful to gather aggregated insights in the project's dashboard. As an example, you may want to pass information additional information for a document like the channel, assignee, brand, etc.
You can find the full API documentation in docs.lang.ai.
Does the API work in real time?
Yes. You can query our API with a given text and get a response with the analysis in less than a second.
What is the API response?
The API returns an array of intents, features, and tags. For further details, check our API reference.
Can I have one document classified by many intents or tags?
A text may be classified with none, one, or multiple intents or tags at the same time.
Does the API returns the sentiment analysis of my request message?
We currently don’t support sentiment analysis in the API response. Intents may contain sentiment information if the context is relevant enough.