GET
/
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: <authorization>'
{
  "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.
Authorization
string
required
The API key for your account. You can find this in your account settings.
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"
    }
  ]
}