API referenceCustom moments

List a custom moment's fires

GET
/moments/{id}/fires

Lists the moments the custom moment detected across the organization's conversations, newest first, with cursor pagination: since since, the last week by default, and of one version with version. Moments a version running in shadow detected are left out unless include_shadow is true, so with the same window and no include_shadow the list holds as many moments as the versions' fires less their shadow_fires.

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

cursor?string

Opaque pagination cursor, from the previous response's page_info.end_cursor.

limit?integer

Items per page, up to 100; more is 100. Absent, or less than 1, is 10.

Formatint64
since?string

List moments recorded from this time on; a week ago when absent

Formatdate-time
version?integer

Only the moments this version detected

Formatint64
include_shadow?boolean

Also list the moments a version running in shadow detected, marked by shadow

Response Body

application/json

application/json

curl -X GET "https://example.com/moments/mdef_2jxsy8cc8v0348asy6t1/fires"
{  "items": [    {      "at": 0.1,      "confidence": 0.1,      "conversation_id": "cnv_2jxsy8cc8v0348asy6t1",      "conversation_title": "string",      "created_at": "2019-08-24T14:15:22Z",      "moment_id": "mom_2jxsy8cc8v0348asy6t1",      "shadow": true,      "speaker": {        "key": "string",        "name": "string"      },      "text": "string",      "title": "string",      "turn_ids": [        "string"      ],      "version": 0    }  ],  "page_info": {    "end_cursor": "string",    "has_next_page": true,    "has_previous_page": true,    "start_cursor": "string",    "total": 0  }}