POST
network
subdomain_generate
1 creditGenerate a valid DNS subdomain label from text (RFC 1123)
Endpoint
POST /api/v1/tools/network/subdomain_generate
Body Parameters
name
string
required
max_length
integer
optional
default: 63
Example
input
Request
{
"name": "Acme Corp. Project-X"
}
output
Response
"acme-corp-project-x"
Response Format
HTTP/1.1 200 OK
SUCCESS
{
"success": true,
"data": "acme-corp-project-x",
"meta": {
"tool": "subdomain_generate",
"credits_consumed": 1
}
}
HTTP/1.1 422 Unprocessable Entity
ERROR
{
"success": false,
"data": null,
"error": {
"code": "validation_error",
"message": "The given data was invalid."
}
}
Sign in to try this tool directly from the docs.
Code Examples
Request Example
lightbulb
Developer Tip
Credits are deducted before execution. If the upstream tool fails, credits are automatically refunded to your account.