{
  "openapi": "3.1.0",
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
  "info": {
    "title": "Glympt API",
    "version": "1.0.0",
    "summary": "Technographic enrichment and lead-search API",
    "description": "Use Glympt to detect the technologies used by a domain, enrich a batch of domains, and search the shared technographic database.\n\n## Quick start\n\n1. Create an API key in the [Glympt dashboard](https://glympt.com/dashboard/user/api-keys). The raw key is shown once.\n2. Send it as a Bearer token:\n\n```bash\ncurl --request GET \\\n  --url 'https://api.glympt.com/api/v1/enrich/domain?domain=example.com' \\\n  --header 'Authorization: Bearer tk_live_your_key'\n```\n\n3. A fresh cache hit returns a completed result immediately. A missing or stale domain returns `status: queued`; poll the returned job with [Get a lookup job](#tag/Enrichment/GET/api/v1/enrich/jobs/{jobId}) until it reaches a terminal state.\n\n## Authentication\n\nAll endpoints in this reference require an API key. Use `Authorization: Bearer <api-key>`. API keys belong to a user, may be revoked from the dashboard, and must be treated like passwords. Do not ship a Glympt API key in public browser or extension code.\n\n## Credits and caching\n\nSingle and bulk enrichment consume one query credit for each normalized domain that returns a cached result or starts a scan. Duplicate delivery is safe when you provide an `idempotencyKey`. Hard infrastructure failures before detection begins are not charged; a successful fetch with no detected technology is a valid, chargeable result.\n\n## Asynchronous lookups\n\nLookup responses are either `complete` or `queued`. Poll queued jobs with exponential backoff (for example 1s, 2s, 4s, then every 5s) and stop when the status is `succeeded`, `failed`, `canceled`, or `timed_out`. Do not retry a whole enrichment request just because its scan is still running.\n\n## Rate limits\n\nRate limits are applied per API key and plan. Pro allows 60 requests/minute and Business allows 300 requests/minute. A bulk request counts as one HTTP request, while credits are still charged per normalized domain. A `429` response is safe to retry after the next minute boundary.\n\n## Errors and request IDs\n\nErrors use a stable envelope with `error.code`, a human-readable `error.message`, and `error.requestId`. Every response also includes `x-request-id`; include it when contacting support.\n\n## Data interpretation\n\nTechnology confidence ranges from 0–100. Geography is an estimate based on public signals and is not a verified company location. Detection describes what Glympt observed at `scannedAt`, not guaranteed current or historical truth.",
    "termsOfService": "https://glympt.com/terms-of-service",
    "contact": {
      "name": "Glympt support",
      "url": "https://glympt.com/support",
      "email": "hello@glympt.com"
    },
    "license": {
      "name": "Proprietary"
    }
  },
  "externalDocs": {
    "description": "Glympt API product overview and pricing",
    "url": "https://glympt.com/api"
  },
  "servers": [
    {
      "url": "https://api.glympt.com",
      "description": "Production"
    }
  ],
  "security": [
    {
      "apiKey": []
    }
  ],
  "tags": [
    {
      "name": "Workspace Workflows",
      "description": "Credits, saved lists and CSV snapshots using the connected workspace's entitlements."
    },
    {
      "name": "Enrichment",
      "description": "Detect technologies for one domain or a batch, then poll queued scans."
    },
    {
      "name": "Lead Search",
      "description": "Find domains by included and excluded technologies, country, and confidence."
    }
  ],
  "paths": {
    "/api/v1/enrich/domain": {
      "get": {
        "tags": [
          "Enrichment"
        ],
        "operationId": "enrichDomain",
        "summary": "Enrich one domain",
        "description": "Returns a recent cached result immediately when available; otherwise queues a depth-two scan. The input may be a bare domain or a full HTTP(S) URL. Glympt normalizes `www.example.com` and `example.com` to the same registrable domain while retaining the observed host.",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "description": "A domain, host, or HTTP(S) URL to enrich.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            },
            "examples": {
              "domain": {
                "summary": "Bare domain",
                "value": "example.com"
              },
              "url": {
                "summary": "Full URL",
                "value": "https://www.example.com/"
              }
            }
          },
          {
            "name": "idempotencyKey",
            "in": "query",
            "required": false,
            "description": "Client-generated key (8–200 characters). Reusing the same key prevents a retry from charging twice.",
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "example": "lookup_example_com_2026_07_15"
          }
        ],
        "responses": {
          "200": {
            "description": "A completed cached result or a newly queued scan.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LookupResponse"
                },
                "examples": {
                  "complete": {
                    "summary": "Cached result",
                    "value": {
                      "status": "complete",
                      "source": "cache",
                      "domain": "example.com",
                      "host": "www.example.com",
                      "scanId": "8db39d30-f2b5-4cb3-8278-b413b18a74f1",
                      "scannedAt": "2026-07-15T09:34:12.000Z",
                      "finalUrl": "https://www.example.com/",
                      "httpStatus": 200,
                      "estimatedCountry": "US",
                      "estimatedCountryConfidence": 65,
                      "pageSignals": {
                        "title": "Example Domain",
                        "language": "en"
                      },
                      "observationDepth": 2,
                      "technologies": [
                        {
                          "slug": "cloudflare",
                          "name": "Cloudflare",
                          "category": "cdn",
                          "confidence": 98,
                          "detectedVersion": null,
                          "evidence": [
                            {
                              "source": "headers",
                              "pattern": "server: cloudflare"
                            }
                          ],
                          "source": "headers"
                        }
                      ],
                      "creditsRemainingAfterRequest": 482
                    }
                  },
                  "queued": {
                    "summary": "Scan queued",
                    "value": {
                      "status": "queued",
                      "jobId": "f16c89c0-830d-42f3-b75c-f650ff6f38dd",
                      "pollUrl": "/api/v1/enrich/jobs/f16c89c0-830d-42f3-b75c-f650ff6f38dd",
                      "domain": "example.com",
                      "host": "example.com",
                      "creditsRemainingAfterRequest": 481
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "VALIDATION_ERROR",
                    "message": "Request validation failed.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, revoked, or invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "API key is required.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "402": {
            "description": "The current plan does not include this operation, or the account has insufficient credits.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "INSUFFICIENT_CREDITS",
                    "message": "You do not have enough credits for this lookup.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "403": {
            "description": "The API key does not have the required scope.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "API key does not have the required scope.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "429": {
            "description": "The plan rate limit has been exceeded.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "API rate limit of 60 requests per minute exceeded.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required service is temporarily unavailable.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Rate limiting is temporarily unavailable.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/enrich/bulk": {
      "post": {
        "tags": [
          "Enrichment"
        ],
        "operationId": "enrichDomains",
        "summary": "Submit an asynchronous domain batch",
        "description": "Registers 1–5,000 inputs and returns immediately. Pro accepts up to 500 rows; Business accepts up to 5,000. Duplicate normalized domains are charged once, invalid rows are retained without a charge, and the required idempotency key makes submission retries safe.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkLookupRequest"
              },
              "example": {
                "domains": [
                  "example.com",
                  "https://shop.example.org",
                  "app.example.net"
                ],
                "idempotencyKey": "campaign_2026_07_15_batch_001"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The batch was registered or an existing idempotent batch was replayed.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkBatchAccepted"
                },
                "example": {
                  "batchId": "4fc85fc0-82b3-42d9-bd35-2576c9b6f2e0",
                  "status": "uploaded",
                  "rowCount": 3,
                  "uniqueDomainCount": 2,
                  "creditsDebited": 2,
                  "replayed": false,
                  "pollUrl": "/api/v1/enrich/bulk/4fc85fc0-82b3-42d9-bd35-2576c9b6f2e0",
                  "resultsUrl": "/api/v1/enrich/bulk/4fc85fc0-82b3-42d9-bd35-2576c9b6f2e0/results",
                  "creditsRemainingAfterRequest": 480
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "VALIDATION_ERROR",
                    "message": "Request validation failed.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, revoked, or invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "API key is required.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "402": {
            "description": "The current plan does not include this operation, or the account has insufficient credits.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "INSUFFICIENT_CREDITS",
                    "message": "You do not have enough credits for this lookup.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "403": {
            "description": "The API key does not have the required scope.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "API key does not have the required scope.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "429": {
            "description": "The plan rate limit has been exceeded.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "API rate limit of 60 requests per minute exceeded.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required service is temporarily unavailable.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Rate limiting is temporarily unavailable.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/enrich/bulk/{batchId}": {
      "get": {
        "tags": [
          "Enrichment"
        ],
        "operationId": "getBulkBatch",
        "summary": "Get batch progress",
        "parameters": [
          {
            "name": "batchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current aggregate batch progress.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkBatchProgressResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "VALIDATION_ERROR",
                    "message": "Request validation failed.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, revoked, or invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "API key is required.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "402": {
            "description": "The current plan does not include this operation, or the account has insufficient credits.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "INSUFFICIENT_CREDITS",
                    "message": "You do not have enough credits for this lookup.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "403": {
            "description": "The API key does not have the required scope.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "API key does not have the required scope.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "429": {
            "description": "The plan rate limit has been exceeded.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "API rate limit of 60 requests per minute exceeded.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required service is temporarily unavailable.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Rate limiting is temporarily unavailable.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/enrich/bulk/{batchId}/results": {
      "get": {
        "tags": [
          "Enrichment"
        ],
        "operationId": "getBulkBatchResults",
        "summary": "Get paginated batch results",
        "parameters": [
          {
            "name": "batchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "include",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated technology slugs that must all be present."
          },
          {
            "name": "exclude",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated technology slugs to exclude."
          },
          {
            "name": "country",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 2
            }
          },
          {
            "name": "country_confidence_min",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100,
              "default": 60
            },
            "description": "Minimum geography confidence when country is supplied. Set 0 to include weak estimates."
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "pending",
                "queued",
                "scanned",
                "invalid",
                "duplicate",
                "failed"
              ]
            }
          },
          {
            "name": "confidence_min",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100,
              "default": 0
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Rows remain in submission order and can be read while the batch is running.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkBatchResultsResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "VALIDATION_ERROR",
                    "message": "Request validation failed.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, revoked, or invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "API key is required.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "402": {
            "description": "The current plan does not include this operation, or the account has insufficient credits.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "INSUFFICIENT_CREDITS",
                    "message": "You do not have enough credits for this lookup.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "403": {
            "description": "The API key does not have the required scope.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "API key does not have the required scope.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "429": {
            "description": "The plan rate limit has been exceeded.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "API rate limit of 60 requests per minute exceeded.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required service is temporarily unavailable.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Rate limiting is temporarily unavailable.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/enrich/jobs/{jobId}": {
      "get": {
        "tags": [
          "Enrichment"
        ],
        "operationId": "getEnrichmentJob",
        "summary": "Get a lookup job",
        "description": "Polls a scan created by this API key's owner. `result` remains null until a scan snapshot exists. Stop polling when `status` is `succeeded`, `failed`, `canceled`, or `timed_out`.",
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "description": "The UUID returned by a queued enrichment response.",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "f16c89c0-830d-42f3-b75c-f650ff6f38dd"
          }
        ],
        "responses": {
          "200": {
            "description": "Current job state and, once available, its scan result.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LookupJobResponse"
                },
                "examples": {
                  "running": {
                    "summary": "Scan running",
                    "value": {
                      "status": "running",
                      "job": {
                        "id": "f16c89c0-830d-42f3-b75c-f650ff6f38dd",
                        "status": "running",
                        "requestedUrl": "https://example.com/",
                        "normalizedUrl": "https://example.com/",
                        "source": "api",
                        "priority": 5,
                        "attemptCount": 1,
                        "maxAttempts": 3,
                        "errorCode": null,
                        "errorMessage": null,
                        "queuedAt": "2026-07-15T09:40:00.000Z",
                        "startedAt": "2026-07-15T09:40:01.000Z",
                        "finishedAt": null,
                        "domainId": "363fd8fe-134d-4aa9-8cb6-ae19a6676d40",
                        "domain": "example.com",
                        "host": "example.com",
                        "desiredObservationDepth": 2
                      },
                      "result": null
                    }
                  },
                  "succeeded": {
                    "summary": "Scan complete",
                    "value": {
                      "status": "succeeded",
                      "job": {
                        "id": "f16c89c0-830d-42f3-b75c-f650ff6f38dd",
                        "status": "succeeded",
                        "requestedUrl": "https://example.com/",
                        "normalizedUrl": "https://example.com/",
                        "source": "api",
                        "priority": 5,
                        "attemptCount": 1,
                        "maxAttempts": 3,
                        "errorCode": null,
                        "errorMessage": null,
                        "queuedAt": "2026-07-15T09:40:00.000Z",
                        "startedAt": "2026-07-15T09:40:01.000Z",
                        "finishedAt": "2026-07-15T09:40:03.000Z",
                        "domainId": "363fd8fe-134d-4aa9-8cb6-ae19a6676d40",
                        "domain": "example.com",
                        "host": "example.com",
                        "desiredObservationDepth": 2
                      },
                      "result": {
                        "scanId": "8db39d30-f2b5-4cb3-8278-b413b18a74f1",
                        "finalUrl": "https://example.com/",
                        "httpStatus": 200,
                        "scannedAt": "2026-07-15T09:40:03.000Z",
                        "estimatedCountry": "US",
                        "estimatedCountryConfidence": 65,
                        "pageSignals": null,
                        "observationDepth": 2,
                        "technologies": []
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "VALIDATION_ERROR",
                    "message": "Request validation failed.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, revoked, or invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "API key is required.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "403": {
            "description": "The API key does not have the required scope.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "API key does not have the required scope.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "404": {
            "description": "The job does not exist or belongs to another user.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "SCAN_FAILED",
                    "message": "Lookup job was not found.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/enrich/search": {
      "get": {
        "tags": [
          "Lead Search"
        ],
        "operationId": "searchDomains",
        "summary": "Search domains by technology",
        "description": "Searches the current shared database. `include` defaults to AND semantics; set `match_mode=any` for OR. `exclude` returns only domains with a usable recent homepage observation where the technology was not detected; it is not proof of absence. Use canonical lowercase technology slugs such as `shopify`, `woocommerce`, or `cloudflare`.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Comma-separated technology slugs that must all be present.",
            "schema": {
              "type": "string"
            },
            "example": "shopify,google-analytics"
          },
          {
            "name": "match_mode",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "any"
              ],
              "default": "all"
            }
          },
          {
            "name": "language",
            "in": "query",
            "description": "Observed page language; regional variants match a base language.",
            "schema": {
              "type": "string",
              "maxLength": 35
            }
          },
          {
            "name": "schema_type",
            "in": "query",
            "description": "Exact observed schema.org type.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "page_features",
            "in": "query",
            "description": "Comma-separated positive signals: hasPricingPage, hasDocsPage, hasLogin, hasCareersPage. Requires a usable recent homepage observation.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "exclude_list_ids",
            "in": "query",
            "description": "Comma-separated owned list UUIDs. Requires lists:read scope.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "hide_exported",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "description": "Domain contains.",
            "schema": {
              "type": "string",
              "maxLength": 253
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "technology_count_min",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "scanned_within_days",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 365
            }
          },
          {
            "name": "country_confidence_min",
            "in": "query",
            "description": "Defaults to 60 when filtering by estimated country.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100
            }
          },
          {
            "name": "exclude",
            "in": "query",
            "description": "Comma-separated technology slugs; matching domains are excluded.",
            "schema": {
              "type": "string"
            },
            "example": "cloudflare"
          },
          {
            "name": "country",
            "in": "query",
            "description": "Estimated country as an ISO 3166-1 alpha-2 code.",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 2,
              "pattern": "^[A-Za-z]{2}$"
            },
            "example": "DE"
          },
          {
            "name": "confidence_min",
            "in": "query",
            "description": "Minimum technology confidence, from 0 to 100.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100,
              "default": 0
            },
            "example": 70
          },
          {
            "name": "page",
            "in": "query",
            "description": "One-based page number.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Results per page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A paginated list of matching domains and their current detected technologies.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DomainSearchResponse"
                },
                "example": {
                  "data": [
                    {
                      "domainId": "363fd8fe-134d-4aa9-8cb6-ae19a6676d40",
                      "registrableDomain": "store.example.de",
                      "estimatedCountry": "DE",
                      "countryConfidence": 82,
                      "technologyCount": 3,
                      "lastScannedAt": "2026-07-14T18:22:01.000Z",
                      "observationDepth": 2,
                      "exclusionEvidence": {
                        "scanId": "4e1a8f7d-cc7e-4b6d-8a4d-3ee4b3cb7a2d",
                        "scannedAt": "2026-07-14T18:22:01.000Z",
                        "requestedUrl": "https://store.example.de/",
                        "rulesetVersion": "2026-07-01",
                        "technologies": [
                          "cloudflare"
                        ]
                      },
                      "technologies": [
                        {
                          "slug": "shopify",
                          "name": "Shopify",
                          "category": "ecommerce",
                          "confidence": 99,
                          "lastDetectedAt": "2026-07-14T18:22:01.000Z"
                        }
                      ]
                    }
                  ],
                  "pagination": {
                    "page": 1,
                    "pageSize": 25,
                    "totalItems": 1,
                    "totalPages": 1,
                    "hasNextPage": false,
                    "hasPreviousPage": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "VALIDATION_ERROR",
                    "message": "Request validation failed.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, revoked, or invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "API key is required.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "402": {
            "description": "The current plan does not include this operation, or the account has insufficient credits.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "INSUFFICIENT_CREDITS",
                    "message": "You do not have enough credits for this lookup.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "403": {
            "description": "The API key does not have the required scope.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "API key does not have the required scope.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "429": {
            "description": "The plan rate limit has been exceeded.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "API rate limit of 60 requests per minute exceeded.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required service is temporarily unavailable.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Rate limiting is temporarily unavailable.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/enrich/usage": {
      "get": {
        "operationId": "getUsage",
        "summary": "Read workspace credits and limits",
        "description": "Requires lookup:read scope and an active API-enabled plan. All requests, including reads and polling, share the workspace's API allowance.",
        "tags": [
          "Workspace Workflows"
        ],
        "responses": {
          "200": {
            "description": "Success. No query credits consumed.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "plan": {
                      "type": "string"
                    },
                    "monthlyCredits": {
                      "type": "integer"
                    },
                    "remainingCredits": {
                      "type": "integer"
                    },
                    "billingPeriodStart": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "billingPeriodEnd": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "apiRateLimitPerMinute": {
                      "type": "integer"
                    },
                    "maxBulkRowsPerUpload": {
                      "type": "integer"
                    },
                    "maxSavedLists": {
                      "type": "integer"
                    },
                    "maxDomainsPerList": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "plan",
                    "monthlyCredits",
                    "remainingCredits",
                    "billingPeriodStart",
                    "billingPeriodEnd",
                    "apiRateLimitPerMinute",
                    "maxBulkRowsPerUpload",
                    "maxSavedLists",
                    "maxDomainsPerList"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "VALIDATION_ERROR",
                    "message": "Request validation failed.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, revoked, or invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "API key is required.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "402": {
            "description": "The current plan does not include this operation, or the account has insufficient credits.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "INSUFFICIENT_CREDITS",
                    "message": "You do not have enough credits for this lookup.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "403": {
            "description": "The API key does not have the required scope.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "API key does not have the required scope.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Resource is unavailable, expired or outside this workspace."
          },
          "409": {
            "description": "Operation-key conflict, or batch is not yet terminal."
          },
          "429": {
            "description": "The plan rate limit has been exceeded.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "API rate limit of 60 requests per minute exceeded.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required service is temporarily unavailable.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Rate limiting is temporarily unavailable.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/enrich/lists": {
      "get": {
        "operationId": "listSavedLists",
        "summary": "Read saved prospect lists",
        "description": "Requires lists:read scope and an active API-enabled plan. All requests, including reads and polling, share the workspace's API allowance.",
        "tags": [
          "Workspace Workflows"
        ],
        "responses": {
          "200": {
            "description": "Success. No query credits consumed.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "organizationId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "userId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "required": [
                          "id",
                          "name"
                        ]
                      }
                    },
                    "pagination": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "VALIDATION_ERROR",
                    "message": "Request validation failed.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, revoked, or invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "API key is required.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "402": {
            "description": "The current plan does not include this operation, or the account has insufficient credits.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "INSUFFICIENT_CREDITS",
                    "message": "You do not have enough credits for this lookup.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "403": {
            "description": "The API key does not have the required scope.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "API key does not have the required scope.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Resource is unavailable, expired or outside this workspace."
          },
          "409": {
            "description": "Operation-key conflict, or batch is not yet terminal."
          },
          "429": {
            "description": "The plan rate limit has been exceeded.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "API rate limit of 60 requests per minute exceeded.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required service is temporarily unavailable.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Rate limiting is temporarily unavailable.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000,
              "default": 1
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          }
        ]
      },
      "post": {
        "operationId": "createSavedList",
        "summary": "Create a saved prospect list with durable replay",
        "description": "Requires lists:write scope and an active API-enabled plan. All requests, including reads and polling, share the workspace's API allowance.",
        "tags": [
          "Workspace Workflows"
        ],
        "responses": {
          "200": {
            "description": "Success. No query credits consumed.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "result": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "organizationId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "userId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "name": {
                          "type": "string"
                        },
                        "description": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "id",
                        "name"
                      ]
                    },
                    "replayed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "result",
                    "replayed"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "VALIDATION_ERROR",
                    "message": "Request validation failed.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, revoked, or invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "API key is required.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "402": {
            "description": "The current plan does not include this operation, or the account has insufficient credits.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "INSUFFICIENT_CREDITS",
                    "message": "You do not have enough credits for this lookup.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "403": {
            "description": "The API key does not have the required scope.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "API key does not have the required scope.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Resource is unavailable, expired or outside this workspace."
          },
          "409": {
            "description": "Operation-key conflict, or batch is not yet terminal."
          },
          "429": {
            "description": "The plan rate limit has been exceeded.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "API rate limit of 60 requests per minute exceeded.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required service is temporarily unavailable.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Rate limiting is temporarily unavailable.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "minLength": 8,
                    "maxLength": 200,
                    "description": "Keep the same key and identical input when recovering a lost response. A changed payload returns 409."
                  }
                },
                "required": [
                  "name",
                  "idempotencyKey"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/enrich/lists/{listId}": {
      "get": {
        "operationId": "getSavedList",
        "summary": "Read a saved list and a page of its domains",
        "description": "Requires lists:read scope and an active API-enabled plan. All requests, including reads and polling, share the workspace's API allowance.",
        "tags": [
          "Workspace Workflows"
        ],
        "responses": {
          "200": {
            "description": "Success. No query credits consumed.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "userId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "domainId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "registrableDomain": {
                            "type": "string"
                          },
                          "host": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "notes": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        }
                      }
                    },
                    "itemsPagination": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "id",
                    "name"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "VALIDATION_ERROR",
                    "message": "Request validation failed.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, revoked, or invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "API key is required.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "402": {
            "description": "The current plan does not include this operation, or the account has insufficient credits.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "INSUFFICIENT_CREDITS",
                    "message": "You do not have enough credits for this lookup.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "403": {
            "description": "The API key does not have the required scope.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "API key does not have the required scope.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Resource is unavailable, expired or outside this workspace."
          },
          "409": {
            "description": "Operation-key conflict, or batch is not yet terminal."
          },
          "429": {
            "description": "The plan rate limit has been exceeded.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "API rate limit of 60 requests per minute exceeded.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required service is temporarily unavailable.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Rate limiting is temporarily unavailable.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "listId",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "in": "query",
            "name": "page",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000,
              "default": 1
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          }
        ]
      }
    },
    "/api/v1/enrich/lists/{listId}/items": {
      "post": {
        "operationId": "addListDomain",
        "summary": "Save a domain without scanning it",
        "description": "Requires lists:write scope and an active API-enabled plan. All requests, including reads and polling, share the workspace's API allowance.",
        "tags": [
          "Workspace Workflows"
        ],
        "responses": {
          "200": {
            "description": "Success. No query credits consumed.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "result": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "listId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "domainId": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    },
                    "replayed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "result",
                    "replayed"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "VALIDATION_ERROR",
                    "message": "Request validation failed.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, revoked, or invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "API key is required.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "402": {
            "description": "The current plan does not include this operation, or the account has insufficient credits.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "INSUFFICIENT_CREDITS",
                    "message": "You do not have enough credits for this lookup.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "403": {
            "description": "The API key does not have the required scope.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "API key does not have the required scope.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Resource is unavailable, expired or outside this workspace."
          },
          "409": {
            "description": "Operation-key conflict, or batch is not yet terminal."
          },
          "429": {
            "description": "The plan rate limit has been exceeded.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "API rate limit of 60 requests per minute exceeded.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required service is temporarily unavailable.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Rate limiting is temporarily unavailable.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "listId",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "domain": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "minLength": 8,
                    "maxLength": 200,
                    "description": "Keep the same key and identical input when recovering a lost response. A changed payload returns 409."
                  }
                },
                "required": [
                  "domain",
                  "idempotencyKey"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/enrich/exports": {
      "post": {
        "operationId": "createCsvExport",
        "summary": "Create a replayable CSV snapshot",
        "description": "Requires exports:read (also lists:read for saved_list) scope and an active API-enabled plan. All requests, including reads and polling, share the workspace's API allowance.",
        "tags": [
          "Workspace Workflows"
        ],
        "responses": {
          "200": {
            "description": "Success. No query credits consumed.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "processing",
                        "ready",
                        "failed"
                      ]
                    },
                    "rowCount": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "expiresAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date-time"
                    },
                    "pollUrl": {
                      "type": "string"
                    },
                    "chunkUrl": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "status",
                    "rowCount",
                    "expiresAt",
                    "pollUrl",
                    "chunkUrl"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "VALIDATION_ERROR",
                    "message": "Request validation failed.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, revoked, or invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "API key is required.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "402": {
            "description": "The current plan does not include this operation, or the account has insufficient credits.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "INSUFFICIENT_CREDITS",
                    "message": "You do not have enough credits for this lookup.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "403": {
            "description": "The API key does not have the required scope.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "API key does not have the required scope.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Resource is unavailable, expired or outside this workspace."
          },
          "409": {
            "description": "Operation-key conflict, or batch is not yet terminal."
          },
          "429": {
            "description": "The plan rate limit has been exceeded.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "API rate limit of 60 requests per minute exceeded.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required service is temporarily unavailable.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Rate limiting is temporarily unavailable.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "source": {
                        "const": "bulk_upload"
                      },
                      "bulkUploadId": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "idempotencyKey": {
                        "type": "string",
                        "minLength": 8,
                        "maxLength": 200,
                        "description": "Keep the same key and identical input when recovering a lost response. A changed payload returns 409."
                      },
                      "filters": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "include": {
                            "type": "array",
                            "maxItems": 25,
                            "items": {
                              "type": "string",
                              "pattern": "^[a-z0-9][a-z0-9_-]*$",
                              "maxLength": 160
                            }
                          },
                          "exclude": {
                            "type": "array",
                            "maxItems": 25,
                            "items": {
                              "type": "string",
                              "pattern": "^[a-z0-9][a-z0-9_-]*$",
                              "maxLength": 160
                            }
                          },
                          "country": {
                            "type": "string",
                            "pattern": "^[A-Za-z]{2}$",
                            "description": "Estimated country, not verified company location."
                          },
                          "confidenceMin": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "countryConfidenceMin": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "scanned",
                              "invalid",
                              "duplicate",
                              "failed"
                            ]
                          }
                        },
                        "required": []
                      }
                    },
                    "required": [
                      "source",
                      "bulkUploadId",
                      "idempotencyKey"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "source": {
                        "const": "saved_list"
                      },
                      "listId": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "idempotencyKey": {
                        "type": "string",
                        "minLength": 8,
                        "maxLength": 200,
                        "description": "Keep the same key and identical input when recovering a lost response. A changed payload returns 409."
                      },
                      "onlyNew": {
                        "type": "boolean",
                        "description": "Only list entries not included in a prior successful export of this list."
                      }
                    },
                    "required": [
                      "source",
                      "listId",
                      "idempotencyKey"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "source": {
                        "const": "domain_search"
                      },
                      "idempotencyKey": {
                        "type": "string",
                        "minLength": 8,
                        "maxLength": 200,
                        "description": "Keep the same key and identical input when recovering a lost response. A changed payload returns 409."
                      },
                      "filters": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "include": {
                            "type": "array",
                            "maxItems": 25,
                            "items": {
                              "type": "string",
                              "pattern": "^[a-z0-9][a-z0-9_-]*$",
                              "maxLength": 160
                            }
                          },
                          "exclude": {
                            "type": "array",
                            "maxItems": 25,
                            "items": {
                              "type": "string",
                              "pattern": "^[a-z0-9][a-z0-9_-]*$",
                              "maxLength": 160
                            }
                          },
                          "country": {
                            "type": "string",
                            "pattern": "^[A-Za-z]{2}$",
                            "description": "Estimated country, not verified company location."
                          },
                          "confidenceMin": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "countryConfidenceMin": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "matchMode": {
                            "type": "string",
                            "enum": [
                              "all",
                              "any"
                            ],
                            "default": "all"
                          },
                          "language": {
                            "type": "string",
                            "maxLength": 35,
                            "description": "Observed page language, including regional variants."
                          },
                          "schemaType": {
                            "type": "string",
                            "maxLength": 80,
                            "description": "Exact observed schema.org type."
                          },
                          "pageFeatures": {
                            "type": "array",
                            "maxItems": 4,
                            "items": {
                              "type": "string",
                              "enum": [
                                "hasPricingPage",
                                "hasDocsPage",
                                "hasLogin",
                                "hasCareersPage"
                              ]
                            }
                          },
                          "excludeListIds": {
                            "type": "array",
                            "maxItems": 25,
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "description": "Owned saved lists to exclude; requires lists:read scope."
                          },
                          "hideExported": {
                            "type": "boolean",
                            "description": "Exclude domains in successful workspace exports recorded since this feature was enabled."
                          },
                          "technologyCountMin": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          "domainQuery": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 253
                          },
                          "category": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                          },
                          "scannedWithinDays": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 365
                          }
                        },
                        "required": []
                      }
                    },
                    "required": [
                      "source",
                      "idempotencyKey"
                    ]
                  }
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/enrich/exports/{exportId}": {
      "get": {
        "operationId": "getCsvExport",
        "summary": "Read CSV status and expiry",
        "description": "Requires exports:read scope and an active API-enabled plan. All requests, including reads and polling, share the workspace's API allowance.",
        "tags": [
          "Workspace Workflows"
        ],
        "responses": {
          "200": {
            "description": "Success. No query credits consumed.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "processing",
                        "ready",
                        "failed"
                      ]
                    },
                    "rowCount": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "expiresAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date-time"
                    },
                    "pollUrl": {
                      "type": "string"
                    },
                    "chunkUrl": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "status",
                    "rowCount",
                    "expiresAt",
                    "pollUrl",
                    "chunkUrl"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "VALIDATION_ERROR",
                    "message": "Request validation failed.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, revoked, or invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "API key is required.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "402": {
            "description": "The current plan does not include this operation, or the account has insufficient credits.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "INSUFFICIENT_CREDITS",
                    "message": "You do not have enough credits for this lookup.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "403": {
            "description": "The API key does not have the required scope.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "API key does not have the required scope.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Resource is unavailable, expired or outside this workspace."
          },
          "409": {
            "description": "Operation-key conflict, or batch is not yet terminal."
          },
          "429": {
            "description": "The plan rate limit has been exceeded.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "API rate limit of 60 requests per minute exceeded.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required service is temporarily unavailable.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Rate limiting is temporarily unavailable.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "exportId",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/v1/enrich/exports/{exportId}/content": {
      "get": {
        "operationId": "getCsvExportChunk",
        "summary": "Download at most 64 KiB of exact CSV bytes",
        "description": "Requires exports:read scope and an active API-enabled plan. All requests, including reads and polling, share the workspace's API allowance.",
        "tags": [
          "Workspace Workflows"
        ],
        "responses": {
          "200": {
            "description": "Success. No query credits consumed.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "exportId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "filename": {
                      "type": "string"
                    },
                    "mimeType": {
                      "const": "text/csv; charset=utf-8"
                    },
                    "encoding": {
                      "const": "base64"
                    },
                    "offsetBytes": {
                      "type": "integer"
                    },
                    "byteLength": {
                      "type": "integer",
                      "maximum": 65536
                    },
                    "content": {
                      "type": "string",
                      "contentEncoding": "base64"
                    },
                    "nextOffsetBytes": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "eof": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "exportId",
                    "filename",
                    "mimeType",
                    "encoding",
                    "offsetBytes",
                    "byteLength",
                    "content",
                    "nextOffsetBytes",
                    "eof"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "VALIDATION_ERROR",
                    "message": "Request validation failed.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, malformed, revoked, or invalid.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "API key is required.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "402": {
            "description": "The current plan does not include this operation, or the account has insufficient credits.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "INSUFFICIENT_CREDITS",
                    "message": "You do not have enough credits for this lookup.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "403": {
            "description": "The API key does not have the required scope.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "API key does not have the required scope.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Resource is unavailable, expired or outside this workspace."
          },
          "409": {
            "description": "Operation-key conflict, or batch is not yet terminal."
          },
          "429": {
            "description": "The plan rate limit has been exceeded.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "API rate limit of 60 requests per minute exceeded.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required service is temporarily unavailable.",
            "headers": {
              "x-request-id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Rate limiting is temporarily unavailable.",
                    "requestId": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "exportId",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "in": "query",
            "name": "offsetBytes",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 134217728,
              "default": 0
            }
          },
          {
            "in": "query",
            "name": "limitBytes",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 65536,
              "default": 49152
            }
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "tk_live_…",
        "description": "A Glympt API key created in the dashboard. Required scopes are shown on each operation: `lookup:read` for single lookup, polling, and search; `bulk:write` for bulk enrichment."
      }
    },
    "headers": {
      "RequestId": {
        "description": "Unique identifier for this request. Include it in support requests.",
        "schema": {
          "type": "string"
        },
        "example": "req_01JZ8P7R9ZX4K6TQ2M5Y3H8N1C"
      }
    },
    "schemas": {
      "ErrorDetail": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "code",
          "message",
          "requestId"
        ],
        "properties": {
          "code": {
            "type": "string",
            "description": "Stable machine-readable error code.",
            "examples": [
              "INSUFFICIENT_CREDITS"
            ]
          },
          "message": {
            "type": "string",
            "description": "Human-readable explanation."
          },
          "requestId": {
            "type": "string",
            "description": "Request identifier for support and log correlation."
          },
          "issues": {
            "type": "array",
            "description": "Validation issue details, present for validation failures.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorDetail"
          }
        }
      },
      "TechnologyDetection": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "slug",
          "name",
          "category",
          "confidence",
          "detectedVersion",
          "evidence",
          "source"
        ],
        "properties": {
          "slug": {
            "type": "string",
            "description": "Canonical lowercase technology identifier.",
            "example": "shopify"
          },
          "name": {
            "type": "string",
            "example": "Shopify"
          },
          "category": {
            "type": "string",
            "example": "ecommerce"
          },
          "confidence": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100,
            "example": 99
          },
          "detectedVersion": {
            "type": [
              "string",
              "null"
            ],
            "description": "Detected version when a reliable signal exists."
          },
          "evidence": {
            "type": "array",
            "description": "Detection evidence. Fields vary with the signal source.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "source": {
            "type": "string",
            "description": "Primary signal source.",
            "enum": [
              "html",
              "headers",
              "scripts",
              "meta",
              "cookies",
              "dns",
              "tls",
              "js_globals",
              "dom",
              "rule"
            ]
          }
        }
      },
      "ScanResult": {
        "type": "object",
        "required": [
          "scanId",
          "finalUrl",
          "httpStatus",
          "scannedAt",
          "estimatedCountry",
          "estimatedCountryConfidence",
          "pageSignals",
          "observationDepth",
          "technologies"
        ],
        "properties": {
          "scanId": {
            "type": "string",
            "format": "uuid"
          },
          "finalUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Final URL after redirects, when available."
          },
          "httpStatus": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 100,
            "maximum": 599
          },
          "scannedAt": {
            "type": "string",
            "format": "date-time"
          },
          "estimatedCountry": {
            "type": [
              "string",
              "null"
            ],
            "description": "Estimated ISO 3166-1 alpha-2 country code."
          },
          "estimatedCountryConfidence": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0,
            "maximum": 100
          },
          "pageSignals": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Normalized page-level signals when available."
          },
          "observationDepth": {
            "type": "integer",
            "enum": [
              1,
              2
            ],
            "description": "1 is HTTP-only evidence; 2 includes renderer/browser-depth evidence."
          },
          "technologies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TechnologyDetection"
            }
          }
        }
      },
      "LookupComplete": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ScanResult"
          },
          {
            "type": "object",
            "required": [
              "status",
              "source",
              "domain",
              "host",
              "creditsRemainingAfterRequest"
            ],
            "properties": {
              "status": {
                "type": "string",
                "const": "complete"
              },
              "source": {
                "type": "string",
                "const": "cache"
              },
              "domain": {
                "type": "string",
                "description": "Normalized registrable domain."
              },
              "host": {
                "type": "string",
                "description": "Observed host for this request."
              },
              "creditsRemainingAfterRequest": {
                "type": "integer",
                "minimum": 0
              }
            }
          }
        ]
      },
      "LookupQueued": {
        "type": "object",
        "required": [
          "status",
          "jobId",
          "pollUrl",
          "domain",
          "host",
          "creditsRemainingAfterRequest"
        ],
        "properties": {
          "status": {
            "type": "string",
            "const": "queued"
          },
          "jobId": {
            "type": "string",
            "format": "uuid"
          },
          "pollUrl": {
            "type": "string",
            "description": "Relative URL for the API-key job polling endpoint."
          },
          "domain": {
            "type": "string"
          },
          "host": {
            "type": "string"
          },
          "creditsRemainingAfterRequest": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "LookupResponse": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/LookupComplete"
          },
          {
            "$ref": "#/components/schemas/LookupQueued"
          }
        ],
        "discriminator": {
          "propertyName": "status",
          "mapping": {
            "complete": "#/components/schemas/LookupComplete",
            "queued": "#/components/schemas/LookupQueued"
          }
        }
      },
      "BulkLookupRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "domains",
          "idempotencyKey"
        ],
        "properties": {
          "domains": {
            "type": "array",
            "minItems": 1,
            "maxItems": 5000,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            },
            "description": "Domains, hosts, or HTTP(S) URLs. Your plan determines whether 500 or 5,000 rows are accepted."
          },
          "idempotencyKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 200,
            "description": "Client-generated batch key. Reusing it in the same workspace returns the original batch without another debit."
          }
        }
      },
      "BulkBatchAccepted": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "batchId",
          "status",
          "rowCount",
          "uniqueDomainCount",
          "creditsDebited",
          "replayed",
          "pollUrl",
          "resultsUrl",
          "creditsRemainingAfterRequest"
        ],
        "properties": {
          "batchId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "uploaded",
              "parsing",
              "queued",
              "processing",
              "completed",
              "failed"
            ]
          },
          "rowCount": {
            "type": "integer",
            "minimum": 1
          },
          "uniqueDomainCount": {
            "type": "integer",
            "minimum": 0
          },
          "creditsDebited": {
            "type": "integer",
            "minimum": 0
          },
          "replayed": {
            "type": "boolean"
          },
          "pollUrl": {
            "type": "string"
          },
          "resultsUrl": {
            "type": "string"
          },
          "creditsRemainingAfterRequest": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "BulkBatchProgress": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "totalRows",
          "uniqueDomains",
          "queued",
          "processing",
          "completed",
          "failed",
          "invalid",
          "duplicate",
          "percent"
        ],
        "properties": {
          "totalRows": {
            "type": "integer",
            "minimum": 0
          },
          "uniqueDomains": {
            "type": "integer",
            "minimum": 0
          },
          "queued": {
            "type": "integer",
            "minimum": 0
          },
          "processing": {
            "type": "integer",
            "minimum": 0
          },
          "completed": {
            "type": "integer",
            "minimum": 0
          },
          "failed": {
            "type": "integer",
            "minimum": 0
          },
          "invalid": {
            "type": "integer",
            "minimum": 0
          },
          "duplicate": {
            "type": "integer",
            "minimum": 0
          },
          "percent": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          }
        }
      },
      "BulkBatchProgressResponse": {
        "type": "object",
        "required": [
          "upload",
          "progress"
        ],
        "properties": {
          "upload": {
            "type": "object",
            "additionalProperties": true,
            "required": [
              "id",
              "source",
              "status",
              "rowCount",
              "uniqueDomainCount"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "source": {
                "type": "string",
                "const": "api"
              },
              "status": {
                "type": "string"
              },
              "rowCount": {
                "type": "integer"
              },
              "uniqueDomainCount": {
                "type": "integer"
              }
            }
          },
          "progress": {
            "$ref": "#/components/schemas/BulkBatchProgress"
          }
        }
      },
      "BulkBatchResultRow": {
        "type": "object",
        "additionalProperties": true,
        "required": [
          "rowId",
          "inputUrl",
          "status",
          "technologies"
        ],
        "properties": {
          "rowId": {
            "type": "string",
            "format": "uuid"
          },
          "inputUrl": {
            "type": "string"
          },
          "normalizedDomain": {
            "type": [
              "string",
              "null"
            ]
          },
          "exclusionStatus": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "verified_absent",
              "not_detected",
              "unknown",
              null
            ],
            "description": "Legacy verified_absent is accepted for compatibility but is no longer emitted; live scans use not_detected or unknown."
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "queued",
              "scanned",
              "invalid",
              "duplicate",
              "failed"
            ]
          },
          "errorMessage": {
            "type": [
              "string",
              "null"
            ]
          },
          "domain": {
            "type": [
              "string",
              "null"
            ]
          },
          "scanId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "finalUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "httpStatus": {
            "type": [
              "integer",
              "null"
            ]
          },
          "estimatedCountry": {
            "type": [
              "string",
              "null"
            ]
          },
          "countryConfidence": {
            "type": [
              "integer",
              "null"
            ]
          },
          "scannedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "technologies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TechnologyDetection"
            }
          }
        }
      },
      "BulkBatchResultsResponse": {
        "type": "object",
        "required": [
          "data",
          "pagination"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BulkBatchResultRow"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/Pagination"
          }
        }
      },
      "ScanJob": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "status",
          "requestedUrl",
          "normalizedUrl",
          "source",
          "priority",
          "attemptCount",
          "maxAttempts",
          "errorCode",
          "errorMessage",
          "queuedAt",
          "startedAt",
          "finishedAt",
          "domainId",
          "domain",
          "host",
          "desiredObservationDepth"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "succeeded",
              "failed",
              "canceled",
              "timed_out"
            ]
          },
          "requestedUrl": {
            "type": "string",
            "format": "uri"
          },
          "normalizedUrl": {
            "type": "string",
            "format": "uri"
          },
          "source": {
            "type": "string",
            "enum": [
              "api"
            ]
          },
          "priority": {
            "type": "integer"
          },
          "attemptCount": {
            "type": "integer",
            "minimum": 0
          },
          "maxAttempts": {
            "type": "integer",
            "minimum": 1
          },
          "errorCode": {
            "type": [
              "string",
              "null"
            ]
          },
          "errorMessage": {
            "type": [
              "string",
              "null"
            ]
          },
          "queuedAt": {
            "type": "string",
            "format": "date-time"
          },
          "startedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "finishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "domainId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "domain": {
            "type": [
              "string",
              "null"
            ]
          },
          "host": {
            "type": [
              "string",
              "null"
            ]
          },
          "desiredObservationDepth": {
            "type": "integer",
            "enum": [
              1,
              2
            ]
          }
        }
      },
      "LookupJobResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "status",
          "job",
          "result"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "succeeded",
              "failed",
              "canceled",
              "timed_out"
            ]
          },
          "job": {
            "$ref": "#/components/schemas/ScanJob"
          },
          "result": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ScanResult"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "SearchTechnology": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "slug",
          "name",
          "category",
          "confidence",
          "lastDetectedAt"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "confidence": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "lastDetectedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "DomainSearchResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "domainId",
          "registrableDomain",
          "estimatedCountry",
          "countryConfidence",
          "technologyCount",
          "lastScannedAt",
          "observationDepth",
          "technologies"
        ],
        "properties": {
          "domainId": {
            "type": "string",
            "format": "uuid"
          },
          "registrableDomain": {
            "type": "string"
          },
          "estimatedCountry": {
            "type": [
              "string",
              "null"
            ]
          },
          "countryConfidence": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0,
            "maximum": 100
          },
          "technologyCount": {
            "type": "integer",
            "minimum": 0
          },
          "lastScannedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "observationDepth": {
            "type": "integer",
            "enum": [
              1,
              2
            ]
          },
          "exclusionEvidence": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "scanId",
              "scannedAt",
              "requestedUrl",
              "rulesetVersion",
              "technologies",
              "status"
            ],
            "properties": {
              "scanId": {
                "type": "string",
                "format": "uuid"
              },
              "scannedAt": {
                "type": "string",
                "format": "date-time"
              },
              "requestedUrl": {
                "type": "string",
                "format": "uri"
              },
              "rulesetVersion": {
                "type": "string"
              },
              "technologies": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "status": {
                "type": "string",
                "enum": [
                  "verified_absent",
                  "not_detected",
                  "unknown"
                ],
                "description": "Legacy verified_absent is accepted for compatibility but is no longer emitted; live scans use not_detected or unknown."
              }
            }
          },
          "technologies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SearchTechnology"
            }
          }
        }
      },
      "Pagination": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "page",
          "pageSize",
          "totalItems",
          "totalPages",
          "hasNextPage",
          "hasPreviousPage"
        ],
        "properties": {
          "page": {
            "type": "integer",
            "minimum": 1
          },
          "pageSize": {
            "type": "integer",
            "minimum": 1
          },
          "totalItems": {
            "type": "integer",
            "minimum": 0
          },
          "totalPages": {
            "type": "integer",
            "minimum": 0
          },
          "hasNextPage": {
            "type": "boolean"
          },
          "hasPreviousPage": {
            "type": "boolean"
          }
        }
      },
      "DomainSearchResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "pagination"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DomainSearchResult"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/Pagination"
          }
        }
      }
    }
  }
}
