• Start

SurrealDB Cloud

/

Connecting

Via HTTP

Connect to your SurrealDB Cloud instance using the HTTP API and run queries.

SurrealDB Cloud supports connection via HTTP. This allows you to connect to your SurrealDB Cloud Instance using curl or any HTTP client. To get started, select the Connect button on your Instance. Then select HTTP cURL.

Open in HTTP cURL

Once you have filled in the credentials, copy the URL and connect to your SurrealDB Cloud Instance. Below is an example of the connection URL in curl.

curl -X GET "https://cloud-demo-06am27fc5dtavfp0mml4bktj18.aws-use1.surreal.cloud/version" \
-H "Surreal-NS: DEMO namespace" \
-H "Surreal-DB: DEMO database"

Was this page helpful?