Subdomain
Returns all subdomains of the authenticated user. Requires Platinum plan or higher.
List of subdomains returned successfully
Authentication error
Insufficient plan
GET /v2/subdomain/all HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"subdomains": [
{
"id": "meu-subdomain",
"userID": "803658045736878080",
"status": 1,
"date": 1745100000000
}
]
}Returns information about a specific subdomain of the user. Requires Platinum plan or higher.
Subdomain name (without the .discloud.app suffix)
Subdomain returned successfully
Authentication error
Insufficient plan or no permission
Subdomain not found
Subdomain already registered
GET /v2/subdomain/{subdomainName} HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"subdomain": {
"id": "meu-subdomain",
"userID": "803658045736878080",
"status": 1,
"date": 1745100000000
}
}Creates a new subdomain. Requires Platinum plan or higher. Maximum of 100 subdomains per user.
Desired subdomain name (without the .discloud.app suffix)
^[a-z0-9-]{2,20}$Subdomain created successfully
Invalid subdomain name or inappropriate word
Authentication error
Insufficient plan or limit reached
Subdomain already registered
POST /v2/subdomain/{subdomainName} HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"message": "Subdomain created successfully",
"subdomain": {
"id": "meu-subdomain",
"userID": "803658045736878080",
"status": 1,
"date": 1745100000000
}
}Deletes a user's subdomain. Cannot delete subdomains that are in use (status 2). Requires Platinum plan or higher.
Subdomain name to be deleted
Subdomain deleted successfully
Authentication error
Insufficient plan or no permission
Subdomain not found
Subdomain in use
DELETE /v2/subdomain/{subdomainName} HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"message": "Subdomain removed successfully"
}Last updated