# Subfinder

## Perform subfinder scan on a domain

> Combines automateScanDomain and subdomains endpoints to perform a complete subfinder scan. First scans the domain for JS URLs, then extracts subdomains from the scan results.

```json
{"openapi":"3.0.0","info":{"title":"JSMON API","version":"1.0.0"},"servers":[{"url":"https://api-dev.jsmon.sh","description":"Development Server (For internal testing)"},{"url":"https://api.jsmon.sh","description":"Production Server (Stable release)"}],"security":[{"Bearer":[]},{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-JSMON-KEY","description":"API Key to access the Jsmon API. Example: \"X-JSMON-KEY: your_api_key_here\""}}},"paths":{"/api/v2/subfinderScan":{"post":{"summary":"Perform subfinder scan on a domain","description":"Combines automateScanDomain and subdomains endpoints to perform a complete subfinder scan. First scans the domain for JS URLs, then extracts subdomains from the scan results.","tags":["Subfinder"],"parameters":[{"in":"query","name":"wkspId","required":true,"schema":{"type":"string","format":"uuid"},"description":"The workspace ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","description":"The domain to scan for subdomains"}}}}}},"responses":{"200":{"description":"Successfully extracted subdomains","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"400":{"description":"Bad Request - Invalid domain or missing required fields"},"403":{"description":"Forbidden - No access to workspace"},"500":{"description":"Internal server error"}}}}}}
```
