Skip to navigation

Suggest completions for an explorer query

Completions at the cursor, of the sources the caller may read, and the problems of the whole query. Requires the METER_DATA.VIEW or INVOICE.VIEW permission.

Authentication

X-API-KEYstring
API Key authentication via header
OR
AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

versionstringRequiredDefaults to 1
version

Headers

x-platform-idstringOptional
Platform ID.

Request

This endpoint expects an object.
querystringOptionalformat: "^[\s\S]*$"0-2000 characters
The query being typed.
cursorinteger or nullOptional

The cursor: a 0-based offset into query, in UTF-16 code units. Defaults to the end of the query.

Response

OK
replace_frominteger or nullOptionalRead-only

Start of the range of query a suggestion replaces (0-based, UTF-16 code units).

replace_tointeger or nullOptionalRead-only
End of the range of query a suggestion replaces, exclusive.
suggestionslist of objects or nullOptionalRead-only
At most 20 suggestions for the cursor.
errorslist of objects or nullOptionalRead-only

The problems of the whole query, by position; empty when it is valid.

quick_fixeslist of objects or nullOptionalRead-only

One-step corrections of unambiguous technical errors in the query as it is; empty when there are none.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
504
Gateway Timeout Error