---
title: "Add Subdomain"
method: POST
path: "/domains/{domain_id}/subdomains"
---

# Add Subdomain

`POST /domains/{domain_id}/subdomains`

Add a subdomain to a attack surface domain

## Path parameters

- `domain_id` integer, required

## Request body

- object
  - `subdomain_name` string, required — Subdomain part of the domain name. This should not include the domain name. eg. 'apidocs' for 'apidocs.aikido.dev'

## Response `200`

The subdomain has been added successfully

- object
  - `success` integer — The integer 1 indicating success

---

[API](https://skmtc.net/aikido/apis/authorization.md) · [All operations](https://skmtc.net/aikido/apis/authorization/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aikido/authorization/revisions/5445e7c21137/schema)
