Endpoint
Request
Headers
| Header | Value |
|---|---|
X-API-Key | Your ZenVeil API key |
Content-Type | application/json |
Body
| Field | Type | Required | Description |
|---|---|---|---|
repository | string | Yes | owner/repo, https://github.com/owner/repo, or SSH URL |
token | string | No | GitHub personal access token for private repositories |
ref | string | No | Branch, tag, or commit SHA to scan. Defaults to default branch. |
check_cves | boolean | No | Query OSV.dev for known CVEs (default: false) |
Response
Examples
Error responses
| Status | Error | Cause |
|---|---|---|
400 | Bad request | Invalid repository format or missing required fields |
400 | Archive download failed | Repository doesn’t exist or isn’t accessible |
403 | Access denied | Private repo requires --token with repo scope |
404 | Repository not found | Repository name is wrong |
429 | Rate limit | GitHub API rate limit — add a token to increase limit |
500 | Scan failed | Unexpected error — retry |