List agent outcomes
curl --request GET \
--url https://julian.11x.ai/api/v1/agents/{agentId}/outcomes \
--header 'x-api-key: <api-key>'import requests
url = "https://julian.11x.ai/api/v1/agents/{agentId}/outcomes"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://julian.11x.ai/api/v1/agents/{agentId}/outcomes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"outcomes": [
{
"outcomeDefinitionId": "<string>",
"name": "interested"
}
]
}Agents
List agent outcomes
Returns the enabled, customer-defined outcome definitions configured on the agent. Use this to map the outcomes[].name values delivered in call-result webhooks back to their definitions.
GET
/
agents
/
{agentId}
/
outcomes
List agent outcomes
curl --request GET \
--url https://julian.11x.ai/api/v1/agents/{agentId}/outcomes \
--header 'x-api-key: <api-key>'import requests
url = "https://julian.11x.ai/api/v1/agents/{agentId}/outcomes"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://julian.11x.ai/api/v1/agents/{agentId}/outcomes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"outcomes": [
{
"outcomeDefinitionId": "<string>",
"name": "interested"
}
]
}