Skip to navigation

Translate a question into an explorer query

An AI-proposed query for a question in plain language, with an explanation; validated for this platform but never run. reason NO_ANSWER when none was found. 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.
questionstringOptionalformat: "^[\s\S]*$"0-500 characters

A question about the platform’s events in plain language, 1 to 500 characters, e.g. “events per day for api-calls last week”.

Response

OK
querystring or nullOptionalRead-only
An explorer query answering the question, valid for this platform, or null when none was found. Never run automatically.
explanationstring or nullOptionalRead-only
One short sentence on what the query shows, or null.
reasonenum or nullOptionalRead-only

NO_ANSWER when query and explanation are null: no valid query was found. Absent otherwise.

Allowed values:

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