HTTP Query API
Each cluster runs the Hydrolix HTTP query API. The API endpoint is https://{myhost}.hydrolix.live/query.
We recommend the POST endpoint, although there is also a GET endpoint.
Clients may authenticate with credentials or present an authorization token.
Present an authorization token⚓︎
The HTTP query API supports auth tokens and authentication via local user credentials.
Get the bearer token, which is good for the next 24 hours, to authenticate future API calls. This command assumes you've set the $HDX_HOSTNAME, $HDX_USER and $HDX_PASSWORD environment variables:
If the token is valid, the HTTP Query API returns an HTTP 200 and the response.
If the token is invalid, the HTTP Query API returns an HTTP 400 and the following error.
If the token is empty, the HTTP Query API returns an HTTP 400 and the following error.
Authenticate with credentials⚓︎
If the credentials are valid, the HTTP Query API returns an HTTP 200 and the response.
If the credentials are invalid, the HTTP Query API returns an HTTP 400 and the following error.
Learn more on the Enable Query Authentication, User Authentication, and Configure IP Access pages.