Get a condition's evidence timeline (browser session)
import requests
url = "https://platform.ankra.app/org/ai-conditions/{condition_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/org/ai-conditions/{condition_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/org/ai-conditions/{condition_id} \
--header 'Authorization: Bearer <token>'{
"condition": {
"id": "<string>",
"subject_key": "<string>",
"condition_kind": "<string>",
"family": "<string>",
"occurrence_count": 123,
"episode_count": 123,
"no_action_streak": 123,
"is_chronic": true,
"last_outcome": "<string>",
"current_ticket": {
"id": "<string>",
"number": 123,
"status": "<string>"
},
"first_observed_at": "<string>",
"last_observed_at": "<string>",
"last_opened_at": "<string>"
},
"tickets": [
{
"id": "<string>",
"number": 123,
"title": "<string>",
"status": "<string>",
"resolution": "<string>",
"evidence_kind": "<string>",
"evidence_reference": "<string>",
"created_at": "<string>",
"closed_at": "<string>"
}
],
"entries": [
{
"at": "<string>",
"kind": "ticket_filed",
"ticket_id": "<string>",
"ticket_number": 123,
"title": "<string>",
"status": "<string>",
"detail": "<string>",
"reference": "<string>",
"author": "<string>"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}AI Conditions
Get a condition's evidence timeline (browser session)
Returns one condition’s evidence timeline: the tickets filed on it, how each closed and on what evidence, the probes, the playbook runs and the decisions people took. Answers 404 when the condition does not belong to the organisation.
GET
/
org
/
ai-conditions
/
{condition_id}
Get a condition's evidence timeline (browser session)
import requests
url = "https://platform.ankra.app/org/ai-conditions/{condition_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/org/ai-conditions/{condition_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/org/ai-conditions/{condition_id} \
--header 'Authorization: Bearer <token>'{
"condition": {
"id": "<string>",
"subject_key": "<string>",
"condition_kind": "<string>",
"family": "<string>",
"occurrence_count": 123,
"episode_count": 123,
"no_action_streak": 123,
"is_chronic": true,
"last_outcome": "<string>",
"current_ticket": {
"id": "<string>",
"number": 123,
"status": "<string>"
},
"first_observed_at": "<string>",
"last_observed_at": "<string>",
"last_opened_at": "<string>"
},
"tickets": [
{
"id": "<string>",
"number": 123,
"title": "<string>",
"status": "<string>",
"resolution": "<string>",
"evidence_kind": "<string>",
"evidence_reference": "<string>",
"created_at": "<string>",
"closed_at": "<string>"
}
],
"entries": [
{
"at": "<string>",
"kind": "ticket_filed",
"ticket_id": "<string>",
"ticket_number": 123,
"title": "<string>",
"status": "<string>",
"detail": "<string>",
"reference": "<string>",
"author": "<string>"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.