Search certificates

Send a certificate search query (in HCQL format) and return the certificate search results

Query parameters
enableAnalytics
boolean

Use the analytics database if enabled. true if not specified.

Body required
application/json
query
string | null

The HCQL query to use for the search, represents the way to filter certificates. If not specified, it will filter nothing

fields
array of string | null

The fields to be returned by the search. If this parameter is not specified, everything is returned by default. If this parameter is equal to an empty array, only the _id field is returned.

sortedBy
array of objects | null (SortElement)

The way to sort the search results.

pageIndex
integer | null

The index of the page to retrieve

pageSize
integer | null

The maximum number of items to retrieve for one page

withCount
boolean | null

If set to true, the total count of certificates matching the HCQL query will be returned.

Responses
  • 200 The certificate search results
    results
    array of objects (CertificateSearchResult) required

    List of certificates that matched the search criteria

    pageIndex
    integer required

    The index of the page that has been retrieved

    pageSize
    integer required

    The size of the page that has been retrieved

    hasMore
    boolean required

    Indicates whether the response represents the last page of results (if set to false) or not (if set to true)

    count
    integer | null

    If withCount was set to true in the query payload, represents the total number of certificates that were retrieved for that query

  • 400 Bad request
  • 401 Unauthorized request.
  • 403 Unauthorized request.
  • 500 Internal server error.