API referenceConversations

List conversations

GET
/conversations

Lists the organization's conversations, newest first, with cursor pagination.

Authorization

apiKey
X-API-Key<token>

API key (prefix spk_test_ or spk_live_) or personal access token (prefix pat_)

In: header

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

Response Body

application/json

application/json

curl -X GET "https://example.com/conversations"
{  "items": [    {      "created_at": "2019-08-24T14:15:22Z",      "ended_at": "2019-08-24T14:15:22Z",      "environment": "test",      "id": "cnv_2jxsy8cc8v0348asy6t1",      "metadata": {        "property1": null,        "property2": null      },      "moment_types": [        "string"      ],      "moments_by_kind": {        "property1": 0,        "property2": 0      },      "moments_count": 0,      "organization_id": "string",      "origin": "api",      "progress": {        "turns_done": 0,        "turns_total": 0      },      "started_at": "2019-08-24T14:15:22Z",      "status": "live",      "tenant_id": "string",      "title": "string",      "updated_at": "2019-08-24T14:15:22Z",      "usage": {        "metered_seconds": 126,        "transcription_seconds": 30.5      },      "webhook": {        "id": "whs_2jxsy8cc8v0348asy6t1",        "url": "string"      }    }  ],  "page_info": {    "end_cursor": "string",    "has_next_page": true,    "has_previous_page": true,    "start_cursor": "string",    "total": 0  }}