GET
/
event
JavaScript
import Openint from '@openint/sdk';

const client = new Openint({
  token: 'My Token',
});

// Automatically fetches more pages as needed.
for await (const listEventsResponse of client.listEvents()) {
  console.log(listEventsResponse);
}
{
  "items": [
    {
      "id": "<string>",
      "timestamp": "<string>",
      "user": "<string>",
      "v": "<string>",
      "org_id": "<string>",
      "user_id": "<string>",
      "customer_id": "<string>",
      "prompt": "<string>",
      "name": "<string>",
      "data": {}
    }
  ],
  "total": 1,
  "limit": 1,
  "offset": 1,
  "has_next_page": true
}

Authorizations

Authorization
string
header
required

Organization API Key available in the settings page of the OpenInt Console or Customer API Key or Token Customer authentication token created using the create customer token API. It is passed in the authorization header with format: Bearer {token}

Query Parameters

limit
integer
default:50

Limit the number of items returned

Required range: 0 <= x <= 3000
offset
integer
default:0

Offset the items returned

Required range: x >= 0
search_query
string
expand
enum<string>[]
since
string

Response

200
application/json

Successful response

The response is of type object.