Scan
Scan file changes
Scan file changes for hardcoded secrets.
Scan file changes for hardcoded secrets.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/scan/file-changes" \ -H "Content-Type: application/json" \ -d '{ "files": [ { "file_path": "string", "hunks": [ { "full_content": "string", "start_line": 0, "end_line": 0 } ] } ] }'{
"findings": [
{
"file_path": "path/to/file.js",
"locations": [
{
"start_line": 245,
"end_line": 245
}
],
"severity": "medium",
"preview": "sk-***",
"value_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"category": "openai_api_key",
"matched_secrets": {
"project": [
{
"secret_name": "OPENAI_API_KEY",
"environments": [
{
"name": "api-prod",
"id": "evn_2vKmcBluEENNfFKtXzrHBS"
}
]
}
]
}
}
]
}{
"error": {
"code": "string",
"message": "string",
"details": {
"property1": null,
"property2": null
}
}
}{
"error": {
"code": "string",
"message": "string",
"details": {
"property1": null,
"property2": null
}
}
}{
"error": {
"code": "string",
"message": "string",
"details": {
"property1": null,
"property2": null
}
}
}{
"error": {
"code": "string",
"message": "string",
"details": {
"property1": null,
"property2": null
}
}
}