Developer API
Code Plagiarism
Detection API
Build plagiarism detection into your apps. Check code against 20+ billion sources.
const response = await fetch('https://codequiry.com/api/v1/check', {
method: 'POST',
headers: { 'apikey': 'YOUR_API_KEY' },
body: formData
});
// Check created!
DELETE CHECK API
Delete a Plagiarism Check
Permanently delete a plagiarism check and all associated submissions and results. This action cannot be undone.
API Endpoint
POST https://codequiry.com/api/v1/check/delete
Destructive Action: Deleting a check permanently removes all submissions, results, and analysis data. This cannot be reversed.
Authentication
Include your API key in the request header:
apikey: YOUR_API_KEY_HERE
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
check_id |
Integer | Required | The unique identifier of the check to delete. Must belong to your account. |
Success Response
HTTP Status: 200 OK
{
"success": true,
"message": "Check deleted successfully",
"check_id": 2810,
"check_name": "Python Assignment - Week 5"
}
Response Fields
- success — Boolean indicating the deletion was successful
- message — Confirmation message
- check_id — The ID of the deleted check
- check_name — The name of the deleted check for confirmation
Error Responses
401 Unauthorized
Invalid or missing API key.
403 Forbidden
Cannot delete checks on free trial or demo accounts. Upgrade your account to use this endpoint.
404 Not Found
The specified check does not exist or does not belong to your account.
409 Conflict
The check is currently being processed. Wait for analysis to complete before deleting.
Code Examples
cURL
curl -X POST "https://codequiry.com/api/v1/check/delete" \
-H "apikey: YOUR_API_KEY_HERE" \
-d "check_id=2810"
JavaScript
async function deleteCheck(checkId) {
const response = await fetch('https://codequiry.com/api/v1/check/delete', {
method: 'POST',
headers: {
'apikey': 'YOUR_API_KEY_HERE',
'Content-Type': 'application/json'
},
body: JSON.stringify({ check_id: checkId })
});
const data = await response.json();
if (data.success) {
console.log(`Deleted check: ${data.check_name} (ID: ${data.check_id})`);
} else {
console.error(`Failed to delete: ${data.error}`);
}
}
await deleteCheck(2810);
Best Practices
Confirm Before Deleting: Always confirm with the user before deleting a check. Consider implementing a "soft delete" in your application by archiving results before calling this endpoint.
Wait for Completion: Do not attempt to delete a check while it is being processed (status 6 or 7). Wait for analysis to complete or fail before deleting.