The Signature Detection API finds visual signature marks in an image. You send one image. You get a bounding box and a confidence score for each mark the detector returns.
The request
POST https://signature-detector.com/api/detect
Authenticate with the x-api-key header. The JSON body must contain exactly one of:
imageUrl, anhttporhttpsURL. The API downloads it with a plain GET, so the URL has to be reachable without cookies or anAuthorizationheader.imageBase64, the image file as base64. Adata:image/...;base64,prefix is accepted and stripped.
Sending neither field, or sending both, is HTTP 400.
An image request may include threshold, a number from 0 to 1. The default is 0.1. The response only includes detections at or above that value and reports it as result.confidenceThreshold. A number outside that range is HTTP 400. PDF detection always uses 0.1 and does not apply threshold.
PDF files use pdfUrl or pdfBase64 on the same endpoint. The response puts pages, count, and creditsUsed at the top level, not under result. That body is documented on PDF signature detection.
The response
Each item in result.detections has:
bbox.x1,bbox.y1,bbox.x2,bbox.y2, pixel positions on the image you sent, origin at the top-leftconfidenceclassandclass_name(the published example is0and"signature")
result.count is how many detections came back. The envelope also includes creditsRemaining and detectionId. If those image bytes were already detected, the response includes cached: true and no credit is spent.
The route records a SHA-256 of the image and the detection JSON. It does not store the image file in the application database. The detector still receives the image.
Price
One new image spends 1 credit. A PDF spends 1 credit per page (creditsUsed on the response, or 0 when the same file is cached). Credits are $10 per 100,000, which is $0.0001 each. A new account is created with 10 credits. The minimum purchase is $1 (10,000 credits). There is no subscription. A PDF that needs more credits than the balance returns HTTP 402 and is not charged.
Credits do not expire. Nothing in the account balance clears them on a schedule. A failed detection puts the credit back.
What it does not do
- It does not identify the signer or compare a mark to a signature on file.
- It does not validate a cryptographic signature inside a PDF.
- It does not return a cropped image. Use the box locally. See Extract signature crops from bounding boxes.
- It does not accept a batch array or a second image in the same body. Image calls accept an optional
thresholdfrom 0 to 1. PDF calls always use 0.1.

