Help us improve our product documentation on docs.cognigy.com by sharing your thoughts in a quick survey. Your feedback shapes the future of our content!
Help us improve our product documentation on docs.cognigy.com by sharing your thoughts in a quick survey. Your feedback shapes the future of our content!
The Cognigy Live Agent API provides access to conversations, teams, and agents. It enables you to integrate, automate, and analyze workflows beyond the Live Agent GUI.
Live Agent has been put in maintenance mode. The product will continue to be maintained in the foreseeable future. Users can continue to fully rely on Live Agent being available. In future releases, only security updates and bug fixes will be provided; no new features will be released.
The Cognigy Live Agent API provides access to conversations, teams, and agents. It enables you to integrate, automate, and analyze workflows beyond the Live Agent GUI.
Other SaaS - use the https://api-<company-name>.liveagent.cloud/openapi pattern where company-name is your company name. For example, if your company name is abc123, the URL would be: https://api-abc123.liveagent.cloud/openapi
On-premises
In your Live Agent values.yaml file, replace live-agent.example.com in host: "live-agent.example.com" with the API URL from your installation.
Create a request to get conversation metadata. Select one of the options to make the request:
cURL
Postman
Open your terminal to create a GET request:
Report incorrect code
Copy
curl -X GET "https://{api_base_url}/api/v1/accounts/{account_id}/conversations/meta" \-H "api_access_token: your_access_token"
Replace the following placeholders in request:
Replace {api_base_url} with the base URL of your environment. For example, for the trial environment, use liveagent-trial.cognigy.ai.
Replace {account_id} with your Live Agent account ID. Find the ID in the Live Agent URL. For example, in https://liveagent-trial.cognigy.ai/accounts/12345/conversations, the account ID is 12345.
Replace your_access_token with the access token you saved.
Open Postman and create a GET request with the following URL: https://{api_base_url}/api/v1/accounts/{account_id}/conversations/meta.
Replace the following placeholders in request:
Replace {api_base_url} with the base URL of your environment. For example, for the trial environment, use liveagent-trial.cognigy.ai.
Replace {account_id} with your Live Agent account ID. Find the ID in the Live Agent URL. For example, in https://liveagent-trial.cognigy.ai/accounts/12345/conversations, the account ID is 12345.
Add the authorization header:
Go to the Headers tab.
Add the api_access_token key and set the value to your_access_token.
Click Send to execute the request.
You should receive a 200 OK response containing the following JSON: