Connect via HTTP using cURL

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

Connect to your SurrealDB Cloud Instance

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"