Overview
API tokens allow you to access the ZeroPath API programmatically — from CI/CD pipelines, the CLI, the VS Code extension, the MCP server, or custom integrations.Creating Tokens
- Navigate to Settings → API keys in the ZeroPath dashboard (zeropath.com/app/settings/api).
- Click Create API Key.
- Provide a name (optional, for identification).
- Set an expiration (1–365 days, default: 30 days).
- Click Create Token.
- Copy the Token Secret immediately — it is shown only once and cannot be retrieved later.
- Token ID — a UUID identifying the token (safe to log).
- Token Secret — the secret key (treat like a password).
Authentication Headers
Every API request must include both headers:Optional: Client identification header
You can optionally send anX-ZeroPath-Client header to identify which surface
your integration is calling from. When present, this value is recorded in the
audit log so API-token actions are attributed to a specific tool rather than a
generic token call:
Example
Supported API Surfaces
API tokens authenticate requests to both the V1 and V2 ZeroPath APIs. The V2 API provides expanded coverage including:- Vulnerabilities — list, search, and manage security findings, including remediation and patch metadata when available. Issue details include a
ticketsarray listing every linked issue tracker ticket — each entry contains theprovider(jiraorlinear), the ticketkey, and the ticketurl(ornullwhen a URL is not available). The bulk issue export also includes thisticketsarray on each exported finding, so you can reconcile an export against the Jira or Linear tickets that ZeroPath filed for those findings. When a Jira issue is linked to a finding, the API response also includes the Jira issue title alongside the existing issue ID and URL. You can filter the issue list by runtime validation verdict to narrow results to issues with specific validation outcomes. When an issue has been manually marked as non-exploitable, the response includes anonExploitableReasonfield containing the human triage rationale (distinct from the system-generatedvalidationSecurityAssessment). The issue detail response also includes anexploitationSetupfield — a plain-language description of the configuration or modification a running application would need before the finding can be exploited (empty string when the validator did not characterize it). Patch status metadata now includes the current generationstage, so you can track patch progress in real time. Patch details now include aprSubmissionfield (ornullwhen no PR submission has been requested) — a discriminated union onstatethat tells you exactly where the submission stands:QUEUED(waiting to be picked up),IN_PROGRESS(actively being submitted, with astagefield such asPUSHING_BRANCHorOPENING_PULL_REQUEST),RETRY_SCHEDULED(failed attempt, withnextAttemptAtandlastError),SUCCEEDED(PR open, withprLink),FAILED(terminal failure, with afailureReasonenum such asRETRIES_EXHAUSTEDorREPOSITORY_ARCHIVED, andlastError), orCANCELLED. You can retrieve all human triage rationales recorded against a repository’s findings — including false positives, non-exploitable verdicts, true positives, and severity changes — with a per-entrydispositionfield indicating the triage action. You can update free-form user notes on individual issues (org-shared, up to 5,000 characters; passing an empty or whitespace-only value clears the note). You can also regenerate patches for issues — and if an issue has been marked unpatchable, you can passforce=trueto override that flag and request a fresh patch attempt. When regenerating, you can supply optionalfeedback(up to 4,000 characters of free-form guidance forwarded to the patch agent) and avariantCount(1–3) to generate multiple alternative patch candidates instead of applying one directly; the issue detail response includes apatchCandidatesarray listing each pending alternative (with its diff, PR title, PR description, and blast-radius report) so you can review them before choosing; useissues.selectPatchCandidateto promote your preferred candidate into the issue patch and discard the rest. Once a patch is approved, you can cancel the pending pull request submission viaissues.cancelPrSubmission— cancellation fails with aCONFLICTerror if the PR is already being created; once the PR exists, useissues.retryPrSubmissionto re-queue submission after a failure (retry is treated as a fresh user-initiated approval and is rejected if a pull request already exists for the patch). You can update the severity rating of an issue by label (e.g., downgrade a “High” to “Medium”) — the platform adjusts the underlying severity score to land in the requested band, recording the confidence it scored with. PreferupdateSeverityRatingwhenever you want the displayed rating to change:updateSeveritysets only the raw 0–10 severity number, which cannot lift a finding with no recorded confidence out of the Informational band. Theseverity,confidence, andscorefields on issue objects can benull— anullseverity or confidence means the scanner did not record that measurement, and anullscore means no composite ZeroPath score could be computed. Cross-repository evidence is included in issue details when the scanner identifies related code across multiple repositories, giving you full visibility into multi-repo vulnerability chains. You can exclude specific repository branches from issue list results usingexcludedRepositoryBranchesfilters. The issue list input now uses strict validation — unknown or unrecognized properties in the request body are rejected with an error rather than silently ignored, so you should remove any unsupported filter fields from your requests. When the issue list is requested with no explicitdetectionTypesfilter, the default now covers every category exceptCONTAINER— SCA (dependency) findings are included alongside the code-finding categories, whether or not a free-textsearchQueryis set — so the API’s default population matches the Issues page “All” tab and the dashboard’s open-issue total. Previously the default was code-only (SCA was included only during a free-text search); to keep the old behavior, passdetectionTypesexplicitly withoutSCA. Container findings remain opt-in viadetectionTypes: ["CONTAINER"]. Issue details now include Wiz runtime evidence when a Wiz integration is connected, providing workload context such as running status, sensitive data exposure, internet reachability, and attribution details for the repository’s deployed workloads — both at the time of detection and the latest lookup. The issue detail response now includes asecurityCompassCountermeasuresarray listing every SD Elements countermeasure linked to the issue — each entry includes the mapping id, project id, task id, title, a link back to the SD Elements task, the match method (NL_RULE_FKfor deterministic rule-based links orLLMfor model-matched links), whether it is the primary countermeasure reported against in SD Elements, and the model rationale for LLM matches - SCA — list dependency vulnerabilities with severity, reachability data, and patch status metadata when a remediation exists. The vulnerability search endpoint uses cursor-based pagination with
hasMoreandnextCursorfields; to retrieve the total count of matching findings, use the dedicated count endpoint (/api/v1/sca/vulnerabilities/count) which accepts the same filter parameters — includingscanIdto count findings from a specific scan,statusto filter by lifecycle state (all, open, or closed),severitiesandpackageReachabilityto narrow by severity bucket or reachability verdict,isCompiledto distinguish compiled assets from manifest-declared dependencies,hasFixto count only findings with a recommended fix version, andincludeEphemeralto include ephemeral repositories. You can filter SCA alerts and vulnerabilities to only those associated with applications exposed by Wiz. SCA advisories now include exploit intelligence fields — CISA KEV status (isKnownExploited,kevDateAdded,kevKnownRansomware) and FIRST EPSS scores (epssScore,epssPercentile) — so you can prioritize based on real-world exploitation data. You can list dependency-resolution coverage warnings to identify manifests where the dependency tree could not be fully resolved, and query per-ecosystem resolution coverage to quantify how complete your dependency scanning is across repositories. When listing SCA facet options, you can pass afacetsparameter to selectively compute only the option lists you need (dependencies,advisories, orecosystems) — asking for fewer facets is faster, and omitting the parameter computes all of them - Reports — generate security reports in DOCX, CSV, SARIF, or SBOM format. If report generation fails, the report status is updated to
failedwith an error message describing what went wrong. All report types (organization summary, SLA compliance, SOC 2, and compliance reports) now accept ascopeparameter to target a specific subset of repositories — passrepositoryIdsto select individual repositories,tagIdsto select repositories by tag, or omit both for the full organization. Before generating a report, you can callpreviewScopeRepositoryCountwith the same scope parameters to preview how many repositories the report will cover without triggering generation - Custom Reports — create, list, and delete saved filter configurations, retrieve aggregated statistics (severity distribution, top vulnerability classes, MTTR, trends), and discover available filter fields via the filter schema endpoint
- Threat Models — retrieve and edit threat models for your applications. Each threat model section includes
customerEdited(boolean indicating whether a customer has saved edits),customerEditedAt(ISO timestamp of the last customer edit,nulluntil edited), andupdatedByUserName(display name of the last editor,nulluntil edited). WhilecustomerEditedis true, scan-time regeneration never replaces the section content. The threat model object includesagentGeneratedAt(ISO timestamp when the scanner agent last wrote section bodies,nullfor models that predate regeneration) andevidenceCheckedAt(ISO timestamp of the last comparison between the application’s current inventory and the fingerprint the sections were written from,nullwhen no comparison has been made). Application overview objects includellmContextEdited(boolean indicating whether a customer has saved the overview; while true, application re-identification never overwrites the overview) - Endpoints — semantic search across detected endpoints and data handlers
- Agent — manage event triggers, patches, pull requests, global agent instructions, trigger history, real-time job streaming via SSE, and playbooks (activate, pause, and uninstall pre-built security automation workflows from a template library). Playbook templates support rich parameter types including text, number, boolean toggles, and select dropdowns, giving you fine-grained control when activating workflows. Read-only operations — including listing event triggers, playbook instances, trigger history, retrieving a specific trigger event, and reading global instructions — require only the Agent View permission; you do not need Agent Run to query these resources. Agent conversations and jobs are scoped by repository-level access control — if a conversation is bound to a repository, only users who hold view access on that repository can list, read, send messages to, or archive the conversation. Losing repository access automatically hides those conversations and jobs from all agent endpoints. Recurring (cron-triggered) agent jobs are automatically linked to a Schedules tab entry — if a run arrives without an existing schedule record, one is created so every recurring task is visible and can be paused from the dashboard; a run for a schedule you have already paused is silently skipped rather than executed. When creating a conversation or sending a message, you can pass
planFirst: trueto request that the agent propose a step-by-step plan before executing anything — the agent pauses after producing the plan so you can review, edit, add steps, or reject it before any work runs. Plans are managed through the Agent Plans endpoints (agentPlans.listPlans,agentPlans.approvePlan,agentPlans.rejectPlan): listing returns all plans for a conversation in chronological order with their steps, scope, risks, and expiry state; approving submits the (optionally edited) step list and starts an execution job; rejecting discards the proposal. A plan expires if not acted on within its window — an expired plan must be rejected and a new one requested. You can manage the agent’s built-in and custom skills viaagent.listSkills,agent.setSkillEnabled,agent.duplicateSkill,agent.upsertSkill, andagent.deleteSkill. Built-in skills can be enabled or disabled per organization; forking a built-in withduplicateSkillcreates an editable copy scoped to your organization and automatically opts out of the original so only your copy is active. Disabling a built-in requires Agent Manage; reading the skill list requires only Agent View. The real-time SSE job stream now delivers only user-visible messages — internal agent housekeeping messages are filtered out, so every event your client receives is directly relevant to the conversation. When an agent job fails, the stream delivers a human-readable failure message (with roleERROR) before the terminalfinalevent, so your client can display what went wrong without needing a separate API call. If the SSE connection itself is interrupted by a server error, the stream sends a safe reconnection prompt instead of exposing internal details. Recurring (cron-triggered) agent jobs that fail now automatically send a failure notification to the configured Slack channel, so schedule owners are alerted without polling for job status. When the agent approves a pull request for a patch, requesting a PR submission no longer incorrectly affects the finding’s validation verdict — the two concerns (submitting a PR and confirming exploitability) are now tracked independently, so your manually set or assessor-confirmed validation status is always preserved - On-Demand Code Scans Beta — submit diffs, files, and snippets for asynchronous security review from CLIs, IDEs, pre-commit hooks, and custom integrations
- Rule Packs — browse curated bundles of natural-language SAST rule templates covering compliance, privacy, logging, and more; enable or disable individual templates or entire packs for your organization. Rule pack activation requires a user account — agent sessions receive a permission error
- Custom Rules — create, update, and list natural-language security rules. Rules can be scoped to all repositories (default), specific repositories, or by tag — pass
tagIdswithoutrepositoryIdsto scope a rule to repositories carrying those tags. Each rule’s response includes ascopefield (allRepositories,repositories, ortags) so you can see how it is applied. List and get responses also include asourcefield (USERorSECURITY_COMPASS) indicating whether the rule was created manually or auto-generated from an SD Elements countermeasure. When a rule was created from a rule pack template, the response includes atemplatefield with the template name and the pack it belongs to, so you can trace the rule back to its origin - Organizations — manage organizations, list/invite/remove members, and update member roles. When inviting a new member, you can optionally specify a role (
ADMINorMEMBER); the default isMEMBER, and inviting asADMINrequires admin-level permission. The member list returns a clear status for each member —active,pendingInvite, orscimDeprovisioned— so you can distinguish active members from outstanding invitees and identity-provider-deprovisioned users. Removing a member works for active members and for pending or expired invitees (their outstanding invitation is automatically revoked); active admins cannot be removed directly — demote them to a regular member first. SCIM-deprovisioned members must be managed through your identity provider instead. Re-inviting an email address that already has a pending or expired invitation automatically revokes the old invitation and sends a fresh one. GitHub team sync status includes alastTeamSyncAttimestamp showing when the most recent sync completed, and you can trigger an immediate on-demand sync via the API or the dashboard. You can enable or disable GitHub direct collaborator sync for your organization, which syncs individual repository collaborator permissions alongside team-based access. When a sync encounters an error, the sync status response includes asyncErrorfield with the error message, so you can diagnose issues without contacting support. Direct collaborator sync is not supported for GitHub Enterprise Server installations. The GitHub team sync status response now includes anorgBaseRepoPermissionsarray — one entry per connected GitHub organization — reporting each installation’s base repository permission and agrantsBaseReadToAllMembersflag; when any installation grants blanket read to all members,anyInstallationGrantsBaseReadis alsotruein the response. Bitbucket group sync is now available: you can enable or disable it (updateBitbucketTeamSync), trigger an immediate sync (syncBitbucketTeamsNow), and read its current status and unmatched contributors (getBitbucketTeamSyncStatus) — all under the same admin-only access requirement as the GitHub counterparts. The unmatched-contributors list now includes contributors from all team-sync-capable platforms (GitHub and Bitbucket), with aplatformfield on each entry so you can tell which host the account came from - Repositories — list, add by URL (public repos), delete, and manage repository settings. Repository responses include VCS-specific configuration for GitHub, GitLab, Bitbucket, Azure DevOps, Gerrit, CVS, generic Git, and uploaded (standalone) repositories, so you can identify the source provider and connection status for each repository. Gerrit repositories carry a
statefield (ACTIVE,READ_ONLY, orHIDDEN) indicating project availability on the Gerrit server —READ_ONLYprojects are still scannable but patches cannot be proposed against them. CVS repositories are addressed by a(cvsRoot, modulePath)pair and expose atransportfield (CVS_CHECKOUTorSCP_DIRECTORY) describing how the module is retrieved; theirurlis acvs+pserver:orscp:URI rather than a browsable web address, andbranchTagisnullfor trunk. You can resolve a repository by URL and the response now includesgerritandcvsas validvcsvalues. The branch-listing endpoint supports Gerrit and CVS in addition to the existing providers; CVS exposes its single materialized branch. For monorepo setups, you can atomically delete all partitions of a monorepo in a single operation, and previously deleted repositories can be re-imported without issues. Tags can be marked as default (isDefault: true) so they are automatically applied to every newly added repository, ensuring consistent tagging and team access from the moment a repository is imported. Repository objects returned by the repository list endpoint carry alastScanFailurefield, so you can see why a scan did not complete without inspecting individual scan records. It reports on the newest finished full scan only — pull-request scans and scans still in flight never set it. It isnullwhen that scan succeeded, when the repository has no finished full scan yet, or when no user-facing message could be derived; otherwise it is an object withmessage(the error text) andoutcome(FAILEDorCANNOT_SCAN). Note that a successful scan newer than a failed one leaves the fieldnull. ThedefaultBranchfield is nowstring | null— it returnsnullfor repositories that the VCS reports as having no default branch (for example, a newly created empty repository). When resetting repository scanner settings, the response returns aresetCountfield indicating the number of repository scopes whose overrides were cleared - Container Scanning — submit container images for vulnerability scanning by registry reference or by uploading an image archive (for air-gapped environments). You can list and retrieve tracked container images, view scan results with per-layer attribution and base-image upgrade recommendations, list vulnerability findings grouped by package with aggregated CVEs, and manage recurring monitoring schedules via cron expressions. The container dashboard summary provides organization-wide statistics including image counts, findings by severity, and top base-image upgrade opportunities. You can link images to repositories, delete tracked images, and check whether container scanning is enabled for your organization. Container image objects include a
registryConnectionfield (containingidanddisplayName, ornull) that identifies an org-level registry connection supplying pull credentials — a reusable alternative to inline per-image credentials. When submitting an image, you can passregistryConnectionIdto link an existing org-level connection instead of providing inlineregistryUsername/registryToken; these two approaches are mutually exclusive. PassingclearRegistryAuthclears both inline credentials and any linked registry connection, reverting the image to an anonymous pull. ThemonitoringCrontabfield on the submit request accepts three states: a string sets the schedule, an explicitnullclears an existing schedule, and omitting the field leaves any existing schedule unchanged. Submitting a registry image reference that matches the name of an existing uploaded-archive image in the same repository returns a409 Conflict— use a different name or attach the image to a different repository to resolve the conflict - Scans — trigger full scans, cancel running scans, and manage cron-based scan schedules with branch targeting. Scan responses include repository identifiers for all supported VCS providers (GitHub, GitLab, Bitbucket, Azure DevOps, Gerrit, Generic Git, and CVS) via the corresponding
gerritRepositoryId,genericGitRepositoryId, andcvsRepositoryIdfields — these fields are now included in every scan list item and scan detail, making it straightforward to correlate scans back to your Gerrit and CVS repositories. You can scan all VCS-attached repositories at once by passingallRepositories: true, optionally excluding specific repositories withexcludedRepositoryIds. You can filter the scan list by severity level (Critical, High, Medium, Low) and group PR scans by pull request to see only the latest scan per PR along with a count of related rescans. Scan list results respect per-repository access control — you only see scans for repositories you have view access to, consistent with how access control works across all other platform surfaces. If a full scan is already in progress for the same repository and branch, the API returns an error rather than starting a duplicate scan. When rescanning a PR, theforceflag now runs a full scan instead of an incremental refresh. When starting a multi-repository scan, repositories that cannot be scanned (for example, due to missing branch configuration or billing issues) are automatically skipped rather than blocking the entire batch — the remaining eligible repositories proceed normally. For credit-billed scans, if the repository’s usage estimate is still being computed at quote time, the scan proceeds immediately and is billed at the pricing policy’s minimum charge — theestimatedBillableTokensfield in the quote response will benullin this case rather than a token count - Runtime Validation — dynamically test confirmed findings inside isolated containers. You can auto-provision a source-build validation profile for a single application (
runtimeValidation.autoProvisionAndValidate) or for every detected application in a repository at once (runtimeValidation.autoProvisionAndValidateRepository) — no manual profile configuration or uploaded artifact required, just supply a completed scan id. Applications already queued are skipped automatically. Runtime validation profiles now support aSOURCE_BUILDtarget mode in addition toREMOTE_CONNECTIVITYandLOCAL_ARTIFACT; source-build profiles are built and run directly from the repository source inside the validation environment. Each finding carries asetupRequirementfield (DEFAULT_SETUP,REQUIRES_MODIFICATION, orUNKNOWN) indicating whether it is reachable under the default provisioned environment. After a run completes you can callruntimeValidation.listExploitChainsto retrieve multi-step exploit chains — sequences of confirmed findings that, when chained together, reach higher combined impact than any individual finding — ordered by combined severity and including per-step roles, configuration requirements, proof-of-concept instructions, and a setup requirement for the chain as a whole - Teams — create teams, manage memberships, configure granular organization/repository/team permissions, and manage default permission templates that can be applied to all teams or specific teams in your organization. Repository access can be granted globally (all repos), per-repository, or by tag — tag-based grants automatically cover every repository that belongs to the tag, so access stays in sync as repositories are added or removed. When GitHub direct collaborator sync is enabled for your organization, each user’s effective repository access is the union of their team-based grants and their individual GitHub collaborator permissions — so a user who is a direct collaborator on a GitHub repository can access it in ZeroPath even if none of their teams grant access to that repository. Contributors discovered through direct collaborator sync are surfaced in the unmatched contributors list with a
DIRECT_REPOSITORYprovenance indicator, distinct from team-sourced contributors, so you can see how each contributor’s access was derived. Updating or deleting a tag that has team permission grants requires the TEAM_MANAGE permission, and repository IDs supplied when creating or updating a tag are validated to belong to your organization. When reading a team’s permissions, the response includes a structuredrepoAccessfield that explicitly indicates the access mode (universalorselected) along with the effective permissions, repository IDs, and tag IDs. The Agent Run permission implicitly includes Agent View — granting a team the ability to run the agent automatically grants view access as well, so you do not need to assign both permissions separately. Two new repository-level permissions are available:ISSUE_CREATE_JIRA_TICKETcontrols the ability to create a Jira ticket from a finding, andISSUE_CREATE_LINEAR_TICKETcontrols the ability to create a Linear ticket from a finding — grant these alongside existing issue permissions to allow your team to file tracker tickets directly from ZeroPath. You can customize how GitHub repository roles (Pull, Triage, Push, Maintain, Admin) map to ZeroPath repository permissions during GitHub team sync. Useteams.getGithubSyncRolePermissionsto view the current mapping and ZeroPath’s built-in defaults, andteams.setGithubSyncRolePermissionsto replace it with a custom mapping or reset to defaults. Custom mappings must specify all five GitHub roles at once so the stored mapping is always complete. Changes take effect on the next sync — existing synced permissions are reconciled at that time. Viewing the mapping requires the Team View permission; updating it requires Team Manage. You can also customize how Bitbucket repository roles (Read, Write, Admin) map to ZeroPath repository permissions during Bitbucket team sync. Useteams.getBitbucketSyncRolePermissionsto view the current mapping and ZeroPath’s built-in defaults, andteams.setBitbucketSyncRolePermissionsto replace it with a custom mapping or reset to defaults. Custom Bitbucket mappings must specify all three roles at once, follow the same sync-managed permission restriction as GitHub mappings, and take effect on the next sync. Viewing the mapping requires Team View; updating it requires Team Manage. TheORG_EDIT_REMOTE_MCPorganization-level permission controls the ability to manage remote MCP server configuration for your organization. When setting team or default-template organization-level permissions, certain admin-only permissions are now rejected at input validation rather than silently accepted — if you receive a validation error about a permission that cannot be granted to a team, remove it from theorganizationPermsarray - Custom Sources — create, list, update, toggle, and delete custom security source declarations that tell the scanner about additional untrusted data entry points in your code
- Custom Sinks — create, list, update, toggle, and delete custom security sink declarations that tell the scanner about additional security-sensitive operations in your code
- Custom Source Packs — browse curated bundles of source declaration templates, enable or disable individual templates or entire packs
- Custom Sink Packs — browse curated bundles of sink declaration templates, enable or disable individual templates or entire packs
- Integrations — read data from third-party integrations such as Wiz CSPM, including retrieving Wiz settings, listing Wiz projects, and searching Wiz cloud assets and network exposures. Notification rules now support Microsoft Teams as a delivery channel — set
channelsto includeTEAMSand supply ateamsChannelIdsarray when creating or updating a rule; selecting Teams without at least one valid channel ID is rejected. Removing Teams from thechannelsarray automatically clears the stored channel IDs - Security Compass — manage the SD Elements integration end-to-end via the public REST API (
/api/v2/securityCompass/*): read the integration and project mappings, test the connection, add and remove project-to-repository mappings, trigger countermeasure-to-rule syncs, retrieve the per-countermeasure coverage audit, fetch linked findings for a countermeasure, and view the Security Compass audit log. Credentials (the SD Elements API token and base URL) are managed only in the ZeroPath dashboard — the API never accepts or returns them. Testing the connection requires the same admin-level permission as managing the integration — the test connection endpoint validates both authentication and the target URL before dialing. Managing the integration requires the admin role; read operations are available to all members. See the Security Compass integration guide for the full workflow - Scanner Settings — configure scan modules, confidence thresholds, auto-patching, and file ignore patterns at org, repo, or app scope. When deleting scanner settings overrides for a scope, organization and repository scopes retain their assigned rules, contexts, custom sources/sinks, and pattern sets while reverting configuration overrides; tag scopes are removed entirely, unassigning any records attached to them. Enabled scan modules now include
CONTAINERalongside SAST, IAC, SECRETS, EOL, SCA, and AI. The release track for full scans and PR scans acceptsSTABLEin addition toEDGE. TheallowPrCheckBypasssetting controls whether contributors can bypass the ZeroPath PR check status without disabling PR scanning entirely. ThefullScanAutoProvisionRuntimeValidationsetting enables automatic source-build runtime validation provisioning after each full scan, so detected applications are validated without any manual profile configuration. ThescanOnFirstMeaningfulCommitsetting (boolean or null to inherit) controls whether ZeroPath automatically triggers a scan when a repository receives its first meaningful commit, useful for repositories that are initially empty at import time. ThescanOnEveryMeaningfulCommitsetting (boolean or null to inherit) controls whether ZeroPath triggers a scan on every meaningful commit push, enabling continuous scanning beyond the first commit - Stats — retrieve aggregate issue counts and scan activity by scope, including a breakdown of issues by application with open and resolved counts per repository. Dashboard statistics endpoints accept optional application filters to narrow results to specific applications within repositories. The security posture summary includes a
reachableExploitableIssuescount alongside the existing severity-level counts. The summary endpoint now correctly honors therepositoryIdandscanIdscope filters — previously these parameters were accepted but had no effect on the returned counts; they now narrow the issue population and scan activity to the specified repository or scan. When you pass ascanId, scan activity metrics are scoped to that scan and issue counts reflect only the findings from that scan rather than the whole organization. The summary issue counts now include SCA (dependency) and container findings alongside SAST, secrets, IaC, and other detection types, matching the counts shown on the Issues page. Exposure and remediation-time fields (meanRemediationTime,meanCriticalExposure,meanHighExposure,meanMediumExposure,meanLowExposure,meanInfoExposure,oldestCriticalAge,oldestHighAge,oldestMediumAge,oldestLowAge,oldestInfoAge) can now benullwhen there is insufficient data to compute a meaningful value — treatnullas “no data” rather than zero. Each trend point now carriesmeanRemediationTimeInPeriod(mean days to resolve over the issues resolved in that period only,nullwhen none) andresolvedIssuesgives its sample size; the summary carriesresolvedIssuesInWindow, the count behindsummary.meanRemediationTime. The trend fieldmeanRemediationTimeis a running average from the start of the requested range and is deprecated: it will be removed in a later release, so readmeanRemediationTimeInPeriodinstead. The trend history endpoint now acceptsquarteras atimeGranularityvalue in addition today,week, andmonth. If the requested posture scope is too large to compute within the query time budget, the endpoint returns a408response — retry with fewer repositories, as repeating the same scope will not succeed
Token Scopes
There are two kinds of token. A personal token is the default, and any member can create one for themselves. No special permission is required, because the token carries your own permissions and nothing more. It acts as you: every permission check and every repository access-control grant applies to it exactly as it does when you use the dashboard. If your team grants you access to three repositories, your token reaches those three repositories. A personal token is pinned to the organization it was created in and cannot act in any other, even if you belong to several. A request naming a different organization is rejected. To work in another organization, create a token there. A service token is an organization-wide machine credential that belongs to no one. It is not held to any individual’s permissions, so it keeps working after the person who created it leaves. Only organization admins can create one. Use it for automation that should outlive an individual, and a personal token for everything else. There is no fine-grained scope selection at token creation time.Tokens created before September 2026 became personal tokens owned by whoever created them, pinned to the organization they were created in. If an integration previously relied on a token acting with admin authority regardless of its owner, replace it with a service token.This is the only change a live integration can observe. If one of your tokens was being used against more than one organization, the requests naming the organization it is not pinned to now fail with
API_TOKEN_ORGANIZATION_MISMATCH. Create a token in each organization you need to reach.Managing Tokens
From the API keys settings page, you can:- View your own tokens, with their names, kinds, creation dates, expiration dates, and when each was last used.
- Delete any of your own tokens at any time. That includes the token making the current request, which is how you rotate a key.
Token Lifecycle
- Tokens have a fixed expiration date set at creation (1–365 days).
- Expired tokens are automatically rejected — there is no automatic renewal.
- When a token expires, create a new one and update your integrations.
- Token secrets are cryptographically hashed before storage — ZeroPath never stores the plaintext secret.
Troubleshooting
INVALID_API_TOKEN error
If the API responds with an INVALID_API_TOKEN error, it means the token ID/secret pair is unknown, expired, or does not match the deployment being called. All three cases return the same error so the response cannot be used to probe whether a token ID exists.
The most common non-obvious cause is a deployment mismatch: API tokens are valid only on the ZeroPath deployment that issued them. If your organization uses a dedicated deployment (https://<name>.zeropath.com), tokens created there will not work against https://zeropath.com, and vice versa. Check that the host in your API calls matches the host where the token was created.
API_TOKEN_ORGANIZATION_MISMATCH error
Personal API tokens are pinned to the organization they were created in. If you send a request that names a different organization, the API returns an API_TOKEN_ORGANIZATION_MISMATCH error. This is not a credential problem — the token itself is valid, but it cannot act outside its organization.
To work in another organization, create a token in that organization instead. You do not need to supply an organizationId header when using a personal token — the platform automatically scopes the request to the token’s pinned organization.
Best Practices
- Use descriptive names — name tokens after their purpose (e.g., “CI/CD Pipeline”, “VS Code Extension”, “MCP Server”).
- Set short expirations — use the shortest practical expiration for your use case.
- Rotate regularly — create new tokens and retire old ones on a schedule.
- Never commit tokens to source control — use environment variables or a secrets manager.
- One token per integration — avoid sharing a single token across multiple systems so you can revoke individually.
- Delete compromised tokens immediately — if a token may have been exposed, delete it and create a replacement.