Skip to main content
GET
/
evaluate
/
queries
JavaScript
import Hyperspell from '@hyperspell/hyperspell';

const client = new Hyperspell({
  apiKey: process.env['HYPERSPELL_API_KEY'], // This is the default and can be omitted
});

// Automatically fetches more pages as needed.
for await (const evaluateListQueriesResponse of client.evaluate.listQueries()) {
  console.log(evaluateListQueriesResponse.query_id);
}
{
  "items": [
    {
      "query_id": "<string>",
      "time": "2023-11-07T05:31:56Z",
      "query": "<string>",
      "user_id": "<string>"
    }
  ],
  "next_cursor": "<string>"
}

Authorizations

Authorization
string
header
required

API Key or JWT User Token. If using an API Key, set the X-As-User header to act as a specific user. A JWT User Token is always scoped to a specific user.

Query Parameters

user_id
string | null

Filter queries by the user that issued them.

cursor
string | null
size
integer
default:50
Required range: 0 <= x <= 100

Response

Successful Response

items
QueryListItem · object[]
required
next_cursor
string | null
required