Scan
Scan text
Scan runtime text inputs for hardcoded secrets.
Scan runtime text inputs 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/text" \ -H "Content-Type: application/json" \ -d '{ "texts": [ "string" ] }'{
"findings": [
{
"text_index": 0,
"category": "openai_api_key",
"severity": "high",
"preview": "sk-***",
"value_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"locations": [
{
"start_line": 1,
"end_line": 1
}
]
}
]
}{
"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
}
}
}