Manage Domains

These public APIs allows you to manage your domains.

Create

POST /api/v1/public/apps/{app_slug}/domains

Required params

Name

Type

Description

Optional

hostname

string

Custom domain hostname

false

cert_name

string

Certificate name

true

Request example

$ curl -n -X POST https://$SUBDOMAIN.neetodeploy.com/api/v1/public/apps/$APP_NAME/domains \
 -d'{
  "hostname":"help.example.com"
  }'\
  -H "Content-Type: application/json" \
  -H "AuthToken: $PUBLIC_API_TOKEN"

Response example

{
"domain":{
  "id":"3ac6583f-037c-4e98-84c9-953f14473d7d",
  "hostname":"help.example.com",
  "cname":"a6cd8e76c9e6-68865963.ap-south-1.elb.amazonaws.com",
  "certificate_name": null
 }
}

Delete

DELETE /api/v1/public/apps/{app_slug}/domains/{domain_name}

Request example

$ curl -n -X DELETE https://$SUBDOMAIN.neetodeploy.com/api/v1/public/apps/$APP_NAME/domains/
$DOMAIN_NAME \

  -H "Content-Type: application/json" \
  -H "AuthToken: $PUBLIC_API_TOKEN"

Response example

{"message":"The domain was successfully deleted."}

Can't find what you're looking for?