API referenceCustom moments
List a custom moment's versions
Lists every version with how many moments each detected since since, the last week by default. While a version runs in shadow, compares it with the live version on the same conversations: the turns both fired on, only the live one, and only the shadow.
Authorization
apiKey X-API-Key<token>
API key (prefix spk_test_ or spk_live_) or personal access token (prefix pat_)
In: header
Path Parameters
id*string
Custom moment ID
Query Parameters
since?string
Count moments from this time on; a week ago when absent
Format
date-timeResponse Body
application/json
application/json
curl -X GET "https://example.com/moments/mdef_2jxsy8cc8v0348asy6t1/versions"{ "comparison": { "both": [ { "at": 0.1, "conversation_id": "cnv_2jxsy8cc8v0348asy6t1", "text": "string", "turn_ids": [ "string" ] } ], "live_version": 0, "only_live": [ { "at": 0.1, "conversation_id": "cnv_2jxsy8cc8v0348asy6t1", "text": "string", "turn_ids": [ "string" ] } ], "only_shadow": [ { "at": 0.1, "conversation_id": "cnv_2jxsy8cc8v0348asy6t1", "text": "string", "turn_ids": [ "string" ] } ], "shadow_version": 0, "since": "2019-08-24T14:15:22Z" }, "versions": [ { "created_at": "2019-08-24T14:15:22Z", "examples": { "fire": [ "string" ], "skip": [ "string" ] }, "fires": 0, "min_confidence": 0.1, "not_when": "string", "shadow_fires": 0, "status": "draft", "timing": "act", "version": 0, "when": "string" } ]}