Skip to main content

Session and Exposition contracts

Browser-session reference

Download the separate OpenAPI JSON or YAML. This is a selected browser-session reference, not a complete workspace API. Active checks require a configured dedicated scanner; deploying the interface alone does not provide a scanner. It is distinct from the personal API and organization service API.

Authentication and permissions​

Browser requests use the __Host-ps session cookie. Unsafe methods also require the __Host-pc CSRF cookie and matching X-CSRF-Token header. Personal API keys and organization service credentials are not substitutes. An organization-scoped session remains restricted to that organization.

Exposition reads require access to an Exposition organization and the selected scope. External/client members and general-research spaces cannot use these endpoints. Writes require a writable organization; creation, lifecycle, timezone, monitoring and notification settings also require an owner or administrator. A member's assigned scope still limits decisions, history and reports. Authentication does not bypass those checks.

HTTP 401 means missing/invalid authentication; 403 a permission or CSRF refusal; 402 an entitlement or budget refusal; 409 a version/capacity conflict; 422 invalid input; 429 a rate/cadence limit. Read the actual error code, and refetch/reconcile after a version conflict.

Personal credit state​

GET /api/v2/auth/credits returns monthly_credits, credits_used, purchased balance, lifetime_purchased, cycle_start, cycle_end, has_paid_entitlement, plan_label and is_legacy. These are session endpoints with no search charge. has_paid_entitlement is not a substitute for the live API-data access check: a Free account with a depleted purchased balance cannot spend its monthly allocation through /common/data.

GET /api/v2/auth/credits/usage returns the current cycle_start, usage and usage_mcp arrays of {category, credits}. The MCP array is a subset of the total, not an additional charge. Categories are host, dns, whois, certs, alerting, subdomains, exports and tools. Eligible session JSON object responses may also contain profundis_credits; streams and array responses do not use that injected object. See Credits.

Scope lifecycle​

Paths below are relative to /api/v2/organizations/{orgId}. A scope is represented by a client resource in these routes.

Method and pathContract
POST /exposure/scopesname, either domains[] or legacy domain, IANA timezone, optional addresses (up to 16 IPs; 100 targets total), monitoring, credit_limit; returns a client view with 201
POST /clients/{clientId}/exposure/domainsdomains[], ownership_confirmed: true, quoted If-Match of ClientProfile.version; adds normalized domains and preserves existing targets
PATCH /clients/{clientId}name and state (active or archived), with current quoted If-Match version
DELETE /clients/{clientId}Exact name in confirmation, with If-Match; 204 on success
GET /clients/deletedUp to 100 recoverable metadata entries for managers
POST /clients/{clientId}/restoreCurrent If-Match; only before erase_after and before erasure begins

Capacity billing ignores credit_limit; legacy credit billing requires 6–1,000,000. Creating a capacity-based scope starts an initial refresh from stored observations. Scheduled monitoring remains a separate setting. Declaring an asset does not authorize an active vulnerability scan.

Adding domains updates only the archive watches that match the previous scope union. Custom watch queries and paused watches remain unchanged. collection_state is queued, paused, deferred_cadence, deferred_budget or not_configured; an addition does not bypass existing cadence, budgets or asset admission.

Archiving stops queued/running work and monitoring, cancels deliveries and revokes guest report links. Deletion immediately removes access and starts a seven-day cancellation window; audit/accounting records remain. Restoration returns the scope to archived state. Grants, links and scheduled spending are not silently restored.

Mapping activity​

GET /api/v2/organizations/{orgId}/exposure/activity reads the persisted work for up to 100 authorized scopes (truncated signals a larger list). Optional client_id selects one exact scope. It requires an Exposition browser session; external members and service identities are refused.

Each scope returns archive sources, catalogue evaluation and discovery stages with queued, running, retry_scheduled and interrupted counts. These are current queue counts, separate from dated latest_run or latest_job history. A missing/expired running lease is interrupted. Historical failures do not override a current paused scope. Source runs must match the current watch query version; validated collected counts observations, not assets.

The response includes snapshot_at, optional last_event_at and the compatibility field scanners.state: unavailable. This activity field is not a live worker-health check; use GET /scans or GET /scan-queue for enabled and available. It does not schedule work, query assets or rebuild the inventory. The interface polls every five seconds during work, thirty seconds while idle, and stops in hidden tabs. There is no inferred percentage of scan completion.

Inventory, decisions and history​

Paths below use /api/v2/organizations/{orgId}/clients/{clientId}/exposure as their prefix. The inventory GET uses the prefix itself, without another segment.

Method and suffixContract
GET (prefix itself)Inventory and observations; fixed pages of 100, offset 0–50,000, optional group_by=host
PATCH /subjects/{subjectId}Decision/note with current body version; this does not use If-Match
GET /historyOptional subject, offset 0–100,000; 50 newest events per page
PUT /timezoneIANA timezone and current body version; manager only
POST /assets/{assetKey}/enrichCatalogue association for a stored observation, no asset request
GET /controlsRead up to 100 historical control records, optionally filtered by asset

Use returned totals, partial, observation dates, evaluation completeness and filter_options to interpret inventory coverage. An absent observation is not evidence that an asset is secure or absent. Badge search criteria apply to the search surface; they do not imply an additional scope filter.

Service decisions use new, investigating or acknowledged. An acknowledged decision records a conclusion: kept, closed, updated, not_concerned or other. closed/updated requires according_to; not_concerned/other requires a note. An optional announced_date is a nonfuture YYYY-MM-DD date interpreted in the scope timezone. These are attributed declarations. They do not delete the original observation, and a later observation can reopen the subject. renewal applies to domain-expiry subjects.

Catalogue coverage and retained evidence​

Each service's coverage separates three facts: availability of an evaluation (state, reasons, eligible), the displayed result (result_state, result_at, retained_result) and the latest attempt or actual processing (last_attempt_at, processing). Older deployments and frozen reports can lack these new fields.

coverage.stateMeaning
evaluatedA complete catalogue evaluation is available; this can include a match
no_identifiers, imprecise_identifiers, identifier_limitMissing, insufficiently precise or too many software identifiers
not_evaluatedNo usable evaluation has been recorded
catalogue_unavailable, catalogue_incompleteCatalogue data could not support a complete evaluation
processing_errorA corresponding evaluation task failed before a result was available
shared_edgeShared infrastructure is excluded from these service coverage counts

result_state is kev, matched, no_match or indeterminate. A failed refresh does not turn an old negative into a current clean result: it becomes indeterminate. Positive evidence may remain visible with retained_result: true; its result_at is distinct from last_attempt_at. evaluation.last_attempt can also contain the recorded reasons and retained_result. A complete catalogue result is still not an active vulnerability check.

processing.state is idle, paused, unknown, queued, retry_scheduled, running, interrupted, failed or cancelled. Queue and job fields come from an actual task corresponding to the current evaluation input. A legacy task that cannot be associated reliably is unknown. available_at is a queued task's eligibility time, not a completion deadline. Reading the inventory creates no job.

Filter with evaluation=coverage:catalogue_unavailable, for example. summary.coverage contains services, excluded_shared_edge and counts by states and processing. Shared-edge observations are counted separately. A KEV subject's optional observed_products lists only {vendor, product, version} entries associated with its findings.

Stored URL, DNS and service context​

These optional enrichments read existing records and make no request to the asset. They do not consume additional search credits. Session, product, organization, client and SSO permissions still apply.

POST routeBody
/api/v2/data/enrich/url-metricshost, optional port, cursor and summary
/api/v2/organizations/{orgId}/clients/{clientId}/enrich/url-metricsSame fields, for a Search workspace
/api/v2/organizations/{orgId}/clients/{clientId}/exposure/url-metricsasset_key, optional cursor and summary; the server resolves the stored asset

A hostname alone returns DNS/mail and registration context for its registrable site. A real TCP service can additionally return its exact host/port metrics and up to 100 referenced URL shapes, with next_cursor for continuation. Name-only and non-TCP Exposition assets do not borrow a web service. A certificate alias does not grant access to another asset's service.

Set summary: true to read DNS/registration and exact service metrics without reading referenced URLs. This returns urls_state: not_requested, cited_urls: [] and no cursor; a nonempty cursor is rejected with summary mode. Omitting summary preserves the full response.

The response is urlsdb.Snapshot, with usage: informational_only and finding_eligible: false. A stored value may have been retained from an earlier record. Group dates are not observation dates for each metric; URL dates identify months of citation, not visits. Unknown values, missing records and unavailable reads are distinct. If only the URL read fails, DNS/registration/service context remains available with urls_state: unavailable and no URL cursor. No score, remediation or fresh verification is implied.

An unavailable source returns 503; concurrency limits return 429. Keep the main search or inventory result visible. Never visit referenced paths automatically. Personal API-key callers use the separate /api/v2/common/data/enrich/url-metrics contract and its existing paid API entitlement; session credentials cannot be substituted for an API key.

Frozen reports​

GET /reports lists up to 100 summaries. POST /reports freezes the current view and returns 201 with a report; GET /reports/{reportId} reads its saved document under current permissions. The snapshot includes the organization/scope names, author, timezone, reference time, observations and at most 500 history entries. history_partial identifies a truncated history. Limits are 100 frozen reports per scope and 16 MiB per document.

Freezing a report does not run a search, scan an asset, publish a guest link or send email. The saved document remains the view at its recorded time; opening it does not substitute today's inventory.

Observation refresh and email preferences​

PUT /monitoring takes {"enabled":true} or false and changes scheduled observation watches. POST /run takes a stable key of 16–64 characters for an observation refresh; cadence, billing and quotas apply. These operations read existing Profundis datasets.

GET /notifications reads the scope email preference. PUT /notifications requires an owner/administrator and a body with enabled, recipients (0–20 member user IDs), language (fr or en) and current version. At least one recipient is required when enabled. Recipients must still have access; delivery rechecks eligibility and observation freshness. Preferences start disabled. Saving them is not confirmation of email delivery. Personal alert preferences and organization in-app notifications are separate systems.

Discovery domains and retained evidence​

The live Exposition response includes candidate_groups, candidate_total (distinct registrable domains) and candidate_record_total (original evidence records). Groups cover the complete candidate population before inventory pagination. They sort by the strongest measured incoming Pivot link, then the highest known exposure score, then domain; unknown values follow known values. The private Public Suffix List keeps unrelated tenants such as a.github.io and b.github.io separate. Each group includes domain, hosts and original candidate_ids; the compatibility host label is the grouped domain. A technical link never establishes ownership.

Live candidates are compact: evidence_loaded: false, service_count and relationship_strength accompany the original ID, host, source, date and decision. proof: {}, services: null, an empty note and null actor are unloaded placeholders. GET /api/v2/organizations/{orgId}/clients/{clientId}/exposure/candidates/{candidateId} returns that record’s complete retained proof, services and decision with evidence_loaded: true. It checks both organization and selected-client access; another client’s record returns 404. External members cannot use this route. Opening evidence sends no request to the discovered asset.

Declaring an observed hostname covers that hostname and its descendants, not its siblings. Declaring a domain with subdomains included covers the corresponding group. Every individual evidence ID and decision remains available under declared/all. Adding the grouped domain requires a separate explicit domain declaration and ownership confirmation. The browser paginates 25 complete domain groups. The backend streams candidate proofs one at a time to compute the compact projection and rejects populations above 50,000 rather than returning a false partial total. It still performs linear database reading/scoring; this is not a materialized summary or a production latency guarantee. Frozen reports retain their historical shape and may omit these additive fields.

Monitoring admission and capacity​

Under /api/v2/organizations/{orgId}, GET /exposure/capacity reads the organization allocation and GET /exposure/monitoring/assets identifies the assets and their scope bindings. The latter accepts q and offset. This is organization capacity, not the number of services or all discovered hosts.

Under /clients/{clientId}/exposure:

OperationPurpose
GET /monitoring/assetsScope assets, capacity and pending admissions
POST /monitoring/assetsAdd explicit {kind,value} identities with ownership confirmation
PATCH /monitoring/assets/{assetId}Set active, paused or removed
DELETE /monitoring/admissions/{admissionId}Cancel a pending manual admission
GET, PATCH /monitoring/policyRead/update track-everything policy and progress

Every hostname is resolved and checked against random DNS names by the dedicated worker before admission. Literal *.example.com entries are not endpoints. NXDOMAIN, non-public resolutions, wildcard matches or inconsistent answers cannot silently become actively monitored assets. Pending validation consumes no slot. The response exposes admissions and pending_admissions; track everything separately reports validating, rejected and pending. Public IP admission does not establish availability.

Track everything includes eligible current and future identities inside the declared scope, subject to validation and capacity. automatic_checks and ownership confirmation explicitly authorize scheduled checks. Turning off track everything alone retains existing monitored assets; stop_existing requests their removal. Pausing an admitted asset retains its slot. Removal releases it only when no other scope binding uses that identity. Deleting a scope releases its bindings; archiving retains them.

Automatic checks and explicit rechecks​

Active checks are available when the installation has a configured dedicated scanner. A recent available worker is not proof that a particular check succeeded. The API orchestrates signed jobs; it does not connect directly to targets. Company audits and unconfirmed discoveries do not run active checks.

The browser's Scan asset queues applicable checks and shows progress. Recheck requests a fresh check for a finding; advanced controls are optional. There is no separate mandatory Scans workflow.

All paths below are relative to /api/v2/organizations/{orgId}/clients/{clientId}/exposure and require a browser session. Writes require CSRF, current authorization and a writable organization.

OperationPurpose
GET /scans?asset=…Recent jobs, worker availability and available CVE templates
POST /scansOne explicitly selected check with a stable body key
POST /scan-batchesApplicable checks for exactly one host or asset_key
GET, PUT /scan-policyAutomatic-check consent and frequency
GET /scan-queue?view=activeCurrent work; scheduled shows plans, history shows terminal jobs
POST /scan-plansPlan a check more than one minute and at most seven days ahead
PATCH /scan-plans/{planId}Reschedule/cancel using current If-Match version

Automatic frequency is 6, 12, 24 or 168 hours, initially 24. Saving the scan policy uses its body version. It applies to actively monitored, in-scope identities and rechecks access before dispatch. Past scope creation is not retroactive consent. A planned timestamp is not a completion guarantee. Disabling a grant, removing monitoring or losing access prevents subsequent authorized dispatch.

Manual inputs carry permission_confirmed: true and a stable key; reuse the exact body and key after an uncertain response. HTTP, TLS, certificate and CVE applicability comes from observed endpoint/protocol evidence. A CVE check additionally needs a relevant product association and a qualified template in the worker catalogue. A catalogue association by itself is not an executed check or a confirmed vulnerability.

Endpoint reports and scoring​

Successful HTTP, TLS and certificate checks expose a report on their scan job. Inventory services also expose endpoint_reports. Each report records its target, action, job, observation date and checks with state, values and recommendations. Opening a report starts no scan.

  • An explicit TLS 1.0/1.1 acceptance is a finding; a timeout or generic handshake failure is indeterminate.
  • Missing-header findings require a complete, successfully attributed HTML/XHTML root response. Redirects and API responses do not get document-hardening penalties. Header presence alone does not prove an effective policy.
  • A failed or indeterminate recheck retains previous explicit evidence with its original date. Evidence older than seven days stays visible but does not establish current configuration coverage or contribute an active configuration score.

The scope-exposure-v5 score is the maximum observed signal, not a probability or an insurance price. Configuration findings are distinct from CVE confirmation. No usable evidence means unevaluated, never an invented zero. Frozen reports remain immutable and retain their recorded method and dates.

Company audits and client access​

Company audits have a separate flow: scope, passive analysis, results/report, then optional client access. Under /api/v2/organizations/{orgId}/exposure/assessments, list/create an audit; read or update /{assessmentId}; use /{assessmentId}/analyse to collect existing observations, /{assessmentId}/freeze to save a private report, and /{assessmentId}/open to prepare client access. Updates and these transitions require the current If-Match version.

Creation requires explicit authorization and 1–20 domains. Analysis is bounded and does not start active scanning. Opening for a client requires a confirmed scope and frozen report, plus an explicit email and stable operation key. It queues an invitation rather than silently creating a verified user. Acceptance and subsequent monitoring consent remain separate. Opening does not grant administrator rights or purchase capacity.

Security prealerts​

GET /prealerts returns relevant published bulletins and product matches under the scope exposure path. GET /prealerts/preferences shows scope, effective and inherited settings; managers update /prealerts/preferences or /prealerts/defaults using the corresponding body version. PUT /prealerts/{bulletinId}/state records the scope's review state.

A match uses an explicit product/CPE identity already observed on the asset, with version, condition, freshness and monitoring filters. Unknown versions can establish potential exposure, not confirmed applicability. Prealerts do not change vulnerability scores or start scans.

The automatic qualification policy prioritizes high/critical or exploited bulletins with relevant observed products. Trusted structured evidence can suffice; ambiguous free text requires corroboration and unresolved contradictions block publication. Automatic qualification publishes in the UI only. Email remains a separate publication and opt-in delivery policy; enabling email does not turn a UI-only bulletin into an email. The default email mode is off. Delivery rechecks recipients and current access, groups useful changes and preserves failures for administration review.

Source unavailability is reported as collection health, not as evidence that no alert exists.

Coverage of this download​

The session download covers 66 selected operations, including those above, the session twins of search and enrichment, and existing IP intelligence, pipeline, portfolio and favicon-extraction tools. The public caller-IP route is explicitly unauthenticated. Account/login flows, checkout, personal alert-rule management and remaining workspace collaboration/administration routes are not yet modeled in this download; use their dedicated guides. It must not be used as a complete account or organization SDK contract.