post/api/v2/sitemap/discover

Discover sitemap URLs for the selected project.

Discover sitemap URLs for the selected project.

Requires bearer API key

Parameters

X-Project-Id

header

Required for organization-wide API keys on project-scoped endpoints. Project-scoped keys infer the project automatically.

Schema: string

Responses

200

Sitemap discovery result.

application/json
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "jobId": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "completed"
      ]
    },
    "urlsFound": {
      "type": "integer"
    },
    "urlsCrawled": {
      "type": "integer"
    }
  },
  "required": [
    "jobId",
    "status",
    "urlsFound",
    "urlsCrawled"
  ]
}
429

Successful JSON response.

application/json
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "string",
      "enum": [
        "SITEMAP_RECRAWL_RATE_LIMITED"
      ]
    },
    "message": {
      "type": "string"
    },
    "retryAfter": {
      "type": "integer"
    },
    "resetAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "error",
    "message",
    "retryAfter",
    "resetAt"
  ]
}

Try it

Send this request to the local WatchLLM REST handler. Use a key from `/workspace/api`; organization keys can include `X-Project-Id` only when the endpoint documents that header.