

curl --url https://api.nightfall.ai/v2/scan \
--request POST \
--header 'content-type: application/json' \
--header 'x-api-key: $NIGHTFALL_API_KEY' \
--data '{
"payload": [
"4916-6734-7572-5015 is my credit card number"
],
"config": {
"conditionSet": {
"conditions": [{
"minNumFindings": 1,
"minConfidence": "LIKELY",
"detector": {
"displayName": "Credit Card Number",
"detectorType": "NIGHTFALL_DETECTOR",
"nightfallDetector": "CREDIT_CARD_NUMBER"
}
}]
}}}'
[
[
{
"fragment": "4916-6734-7572-5015",
"detectorName": "Credit Card Number",
"confidence": "VERY_LIKELY",
"location": {
"byteRange": {
"start": 0,
"end": 19
},
"unicodeRange": {
"start": 0,
"end": 19
}
}
}
]
]