مرجع API
گزارش سوءاستفاده
گزارش سوءاستفاده از یک برنامه یا فانکشن.
توضیح هر مسیر به انگلیسی است، همان متنی که مرجع از کد ساخته میشود. مسیرها، نام فیلدها و کدها هماناند که در درخواست مینویسید.
POST
/v1/abuse/reportsReport a site for abuse#
For anyone, with no account: the address of a page served by the platform that is phishing, malware, mining, spam or illegal. Staff review it with a screenshot of the page. Limited per address; 404 not_hosted when the address is not served by the platform.
- دسترسی
- بدون اعتبارنامه
بدنهٔ درخواستapplication/json
urlstringالزامیthe page's address, or just its hostname
categorystringالزامیone of
phishing,malware,mining,spam,illegal,otherdetailsstringup to 4000 characters
contactstringhow staff can reach the reporter, if the reporter wants an answer
up to 200 characters
پاسخ
200object
referenceintegerالزامیthe report's number
خطاها
| وضعیت | توضیح |
|---|---|
| 400 | bad_url, bad_category, bad_details, bad_contact |
| 404 | not_hosted |
| 429 | rate_limited |
| 500 | internal: an unexpected failure |
نمونه
curl -X POST "https://api.ibel.ai/v1/abuse/reports" \
-d '{"url":"…","category":"phishing"}'