Skip to main content
GET
https://api.squarecloud.app
/
v2
/
apps
/
{app_id}
/
network
/
dns
Get DNS Records
curl --request GET \
  --url https://api.squarecloud.app/v2/apps/{app_id}/network/dns \
  --header 'Authorization: <api-key>'
{
  "status": "success",
  "response": [
    {
      "type": "txt",
      "name": "_acme-challenge.joaootavios.dev",
      "value": "hmo-jMx_KCWQU5CWG6xmrkI4AOZOJXlQtjEtc7zI1PA",
      "status": "pending_validation"
    },
    {
      "type": "cname",
      "name": "joaootavios.dev",
      "value": "custom.squarecloud.app",
      "status": "pending"
    }
  ]
}
Is necessary to have at least the Standard plan to use this route. import Auth from “/snippets/en/api/auth.mdx”
app_id
string
required
The ID of the application. You can find this in the URL of your application’s dashboard.

Response

status
string
Indicates whether the call was successful.. success if successful, error if not.
response
array
The contents of the response.
{
  "status": "success",
  "response": [
    {
      "type": "txt",
      "name": "_acme-challenge.joaootavios.dev",
      "value": "hmo-jMx_KCWQU5CWG6xmrkI4AOZOJXlQtjEtc7zI1PA",
      "status": "pending_validation"
    },
    {
      "type": "cname",
      "name": "joaootavios.dev",
      "value": "custom.squarecloud.app",
      "status": "pending"
    }
  ]
}