Run discovery
POSThttps://api.fortwatch.ai/app/discovery/run
Queues a discovery run for a registrable domain the project has a verified asset under; 202 with the run, or with the one already running. At most 10 an hour per workspace. Also limited per workspace: 10 a hour.
Request body
JSON, required.
| Field | Type | Description |
|---|---|---|
projectIdrequired | integer | |
domain | string |
Example request
curl -X POST "https://api.fortwatch.ai/app/discovery/run" \
-H "Authorization: Bearer $FORTWATCH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"projectId": 42,
"domain": "app.example.com"
}'Response 202
Accepted: the work is queued.
| Field | Type | Description |
|---|---|---|
idrequired | number | |
projectIdrequired | number | |
domainrequired | string | |
statusrequired | string | |
triggerrequired | string | |
foundCountrequired | number | |
newCountrequired | number | |
wildcardDnsrequired | boolean | |
errorrequired | string | null | |
createdByUserIdrequired | number | null | |
startedAtrequired | string (date-time) | null | |
finishedAtrequired | string (date-time) | null | |
createdAtrequired | string (date-time) |
{
"id": 42,
"projectId": 42,
"domain": "app.example.com",
"status": "string",
"trigger": "string",
"foundCount": 1,
"newCount": 1,
"wildcardDns": true,
"error": "string",
"createdByUserId": 42,
"startedAt": "2026-10-16T12:00:00.000Z",
"finishedAt": "2026-10-16T12:00:00.000Z",
"createdAt": "2026-10-16T12:00:00.000Z"
}Errors
400 | The request is not valid: a field is missing or has the wrong shape (the message names it). |
401 | No valid credentials: the API key or access token is missing, revoked or expired (INVALID_API_KEY, INVALID_TOKEN). |
403 | Not allowed: the key or token lacks this scope (SCOPE_REQUIRED), the route is dashboard-only (SESSION_REQUIRED), or a plan limit applies. |
429 | Too many requests (RATE_LIMITED): wait the seconds Retry-After gives. |
Every code is explained in Errors.