Skip to main content

Abuse Reports


Create Abuse Report

Creates a new abuse report which will be reviewed by our system and abuse response team. This API is only available to authorized accounts. Contact abuse@ngrok.com to request access

Request

POST /abuse_reports

Example Request

curl \
-X POST \
-H "Authorization: Bearer {API_KEY}" \
-H "Content-Type: application/json" \
-H "Ngrok-Version: 2" \
-d '{"urls":["http://legit-facebook-login.ngrok.io/login"],"metadata":"{\"incident_id\":1233122}"}' \
https://api.ngrok.com/abuse_reports

Parameters

   
urlsList<string>a list of URLs containing suspected abusive content
metadatastringarbitrary user-defined data about this abuse report. Optional, max 4096 bytes.

Response

Returns a 201 response on success

Example Response

{
"id": "abrp_2TMGIxQANPca1jjcIMiNvRtsO63",
"uri": "https://api.ngrok.com/abuse_reports/abrp_2TMGIxQANPca1jjcIMiNvRtsO63",
"created_at": "2023-07-31T23:17:39Z",
"urls": ["http://legit-facebook-login.ngrok.io/login"],
"metadata": "{\"incident_id\":1233122}",
"status": "PROCESSED",
"hostnames": [
{
"hostname": "legit-facebook-login.ngrok.io",
"status": "BANNED"
}
]
}

Fields

   
idstringID of the abuse report
uristringURI of the abuse report API resource
created_atstringtimestamp that the abuse report record was created in RFC 3339 format
urlsList<string>a list of URLs containing suspected abusive content
metadatastringarbitrary user-defined data about this abuse report. Optional, max 4096 bytes.
statusstringIndicates whether ngrok has processed the abuse report. one of PENDING, PROCESSED, or PARTIALLY_PROCESSED
hostnamesAbuseReportHostnamean array of hostname statuses related to the report

AbuseReportHostname fields

   
hostnamestringthe hostname ngrok has parsed out of one of the reported URLs in this abuse report
statusstringindicates what action ngrok has taken against the hostname. one of PENDING, BANNED, UNBANNED, or IGNORE

Get Abuse Report

Get the detailed status of abuse report by ID.

Request

GET /abuse_reports/{id}

Example Request

curl \
-X GET \
-H "Authorization: Bearer {API_KEY}" \
-H "Ngrok-Version: 2" \
https://api.ngrok.com/abuse_reports/abrp_2TMGIxQANPca1jjcIMiNvRtsO63

Response

Returns a 200 response on success

Example Response

{
"id": "abrp_2TMGIxQANPca1jjcIMiNvRtsO63",
"uri": "https://api.ngrok.com/abuse_reports/abrp_2TMGIxQANPca1jjcIMiNvRtsO63",
"created_at": "2023-07-31T23:17:39Z",
"urls": ["http://legit-facebook-login.ngrok.io/login"],
"metadata": "{\"incident_id\":1233122}",
"status": "PROCESSED",
"hostnames": [
{
"hostname": "legit-facebook-login.ngrok.io",
"status": "BANNED"
}
]
}

Fields

   
idstringID of the abuse report
uristringURI of the abuse report API resource
created_atstringtimestamp that the abuse report record was created in RFC 3339 format
urlsList<string>a list of URLs containing suspected abusive content
metadatastringarbitrary user-defined data about this abuse report. Optional, max 4096 bytes.
statusstringIndicates whether ngrok has processed the abuse report. one of PENDING, PROCESSED, or PARTIALLY_PROCESSED
hostnamesAbuseReportHostnamean array of hostname statuses related to the report

AbuseReportHostname fields

   
hostnamestringthe hostname ngrok has parsed out of one of the reported URLs in this abuse report
statusstringindicates what action ngrok has taken against the hostname. one of PENDING, BANNED, UNBANNED, or IGNORE