v1Sessions

List all sessions

Changed on
get/v1/sessions

Request

  • Base URL: https://api4.kinbox.com.br (the document declares no server; this is the origin it was published from)
  • URL: https://api4.kinbox.com.br/v1/sessions
  • Auth: none declared

Query parameters

limitnumber

A limit on the number of objects to be returned. Limit can range between 1 and 100.

cursorstring

A cursor for use in pagination. The cursor is the id of the last object returned in the previous request.

campaign_idstring

Filter sessions by campaign id.

contact_idstring

Filter sessions by the id of the contact associated with the session.

call_idstring

Filter sessions by the id of the call associated with the session.

updated_at_fromstring

Only return sessions that were updated after this date (ISO 8601). If no timezone offset is given (e.g. 2026-09-22 or 2026-09-22T10:00:00), the date is interpreted in the workspace timezone.

updated_at_tostring

Only return sessions that were updated before this date (ISO 8601). If no timezone offset is given (e.g. 2026-09-22 or 2026-09-22T10:00:00), the date is interpreted in the workspace timezone.

Response

nextCursorstring nullable required

Cursor for the next page. Null if there are no more results.

Example response

{
  "data": [
    {
      "id": "66e2f1c9a1b2c3d4e5f60718",
      "_id": "66e2f1c9a1b2c3d4e5f60718",
      "workspaceId": 1,
      "call": {
        "id": 987654,
        "customerPlatformId": 1234567,
        "workspacePlatformId": 103,
        "operatorId": 42,
        "groupId": 10,
        "protocol": "2026091412345",
        "customFields": {
          "origem": {
            "value": "site"
          }
        },
        "createdAt": "2026-09-14T11:58:00.000Z",
        "answeredAt": "2026-09-14T12:00:00.000Z",
        "finishedAt": "2026-09-14T12:30:00.000Z"
      },
      "contact": {
        "id": 555,
        "name": "João Silva",
        "email": "joao@gmail.com",
        "phone": "5585988887777",
        "createdAt": "2026-01-10T10:00:00.000Z",
        "customFields": {
          "cpf": {
            "value": "000.000.000-00"
          }
        }
      },
      "conversation": {
        "id": 1234567,
        "workspacePlatformId": 103,
        "identifier": "5585988887777"
      },
      "lastMessage": {
        "idMessage": 37826587,
        "content": "[{\"insert\":\"Olá\"}]",
        "createdAt": "2026-09-14T12:30:00.000Z"
      },
      "rating": {
        "value": 5
      },
      "trails": [
        {
          "date": "2026-09-14T12:00:00.000Z",
          "isodate": "2026-09-14T12:00:00.000Z",
          "type": "operator",
          "id": 42
        }
      ],
      "interactions": [
        {
          "date": "2026-09-14T12:00:00.000Z",
          "operatorId": 42
        }
      ],
      "interactionDates": [
        "2026-09-14"
      ],
      "tags": [
        3,
        8
      ],
      "operatorMessagesCount": 4,
      "assignedOperatorMessagesCount": 4,
      "botMessagesCount": 2,
      "contactMessagesCount": 5,
      "totalMessagesCount": 11,
      "messagesCountByDate": {
        "2026-09-14": {
          "bot": 2,
          "operator": 4,
          "contact": 5
        }
      },
      "tma": 1800,
      "tme": 120,
      "tmp": 90,
      "createdAt": "2026-09-14T11:58:00.000Z",
      "updatedAt": "2026-09-14T12:30:00.000Z"
    }
  ]
}

Changes

    • breaking

      the response's property type changed from object to string for status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status