How to enable HTTP API on SingleStoreDB Cloud?
HTTP API is ON by default on the SingleStoreDB Cloud cluster. However, one can test it with the following command. If the command fails or HTTP API is not enabled for your cluster, Reach out to SingleStore Support. Click here to learn about How to File a Support ticket.
After Data API (HTTP API) is enabled, you can call the
GET /ping API request to verify that the HTTP service is running and connectable. To perform this action using cURL, invoke a GET request to the
/ping endpoint with no parameters, as shown below.
If the Data API service is available and can respond to requests, you will receive the following response along with a 200 OK status code, indicating a successful HTTP response.
If an error occurs, you will receive one of the HTTP response status codes listed here, along with the error description in the response body. For more information, refer to the Data API Endpoint Reference.
GET /ping request can only verify whether the HTTP service is running and connectable. To confirm that the database can receive queries, use the
/query endpoints as explained here.
The endpoint information can be gathered from the portal.singlestore.com -> Choose the cluster -> Overview tab -> Connect section
Click here to learn more about Data API.