API
SigCleaner REST API documentation.
Each successful \/api\/clean request deducts 1 processing credit from your account balance.
Method: Background removal
Authorization
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
file |
multipart file | One of two | PNG, JPG, or PDF image. If the PDF is multi-page — only the first page is processed. |
url |
string | One of two | Direct image URL |
type |
string | No | json (default) — return a JSON response with a file linkwebp — return a binary WebP file with a transparent backgroundpng — return a binary PNG file with a transparent background |
extract |
string | No |
Extraction of a specific element. Empty by default — standard background removal.signature — keep only the handwritten signature, removing everything else.stamp — keep only the stamp, removing everything else.
|
aggressive |
boolean | No |
Aggressive text removal. When set to 1 (true), aggressively removes all printed letters, numbers, and straight black form lines, leaving only the specified element.
|
mode |
string | No |
Processing mode. Default — standard.standard — Standard mode. Works well with high-quality images. The result is as close to the original as possible.advanced — Smart mode. More thorough processing; suitable for low-quality images or those with many unwanted elements.
|
name |
string | No | Displayed file name in the "My Files" list. Saved upon successful processing. |
Response: type=json
Response: type=webp
Returns a WebP binary file with a transparent background.
Content-Type: image/webp.
Response: type=png
Returns a PNG binary file with a transparent background.
Content-Type: image/png.
cURL Examples
Signature extraction with aggressive text removal:
Smart processing mode:
Download result
Method: File list
Returns a list of all successfully processed files belonging to the current user. Files are accessible via the link /api/file/{uuid}.
Authorization
Response
| Field | Type | Description |
|---|---|---|
uuid |
string | Unique file ID |
name |
string | null | Displayed file name (from the name parameter in \/api\/clean or after renaming) |
url |
string | Direct download link for the file (WebP) |
created_at |
string (ISO 8601) | File creation date and time (UTC) |
expires_at |
string | null | Storage expiration date (UTC). |
cURL Example
Method: Delete file
Permanently deletes a file from the server. The file must belong to the current user.
Authorization
Request body application\/json
| Parameter | Type | Required | Description |
|---|---|---|---|
uuid |
string | Yes | File UUID from the \/api\/clean or \/api\/files response. |
Response
Error codes
| Code | Description |
|---|---|
401 | Unauthorized |
404 | File not found or does not belong to the user |
422 | Missing or invalid uuid |
cURL Example
Method: Rename file
Changes the displayed file name. The file must belong to the current user.
Authorization
Request body application\/json
| Parameter | Type | Required | Description |
|---|---|---|---|
uuid |
string | Yes | File UUID from the \/api\/clean or \/api\/files response. |
name |
string | Yes | New displayed file name (up to 255 characters). |
Response
Error codes
| Code | Description |
|---|---|
401 | Unauthorized |
404 | File not found or does not belong to the user |
422 | Missing or invalid uuid \/ name |
cURL Example
API Key Management
You must log in to manage keys.