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
urls | List<string> | a list of URLs containing suspected abusive content |
metadata | string | arbitrary user-defined data about this abuse report. Optional, max 4096 bytes. |
Response
Returns a 201 response on success
Example Response
{
"id": "abrp_2NTVHGf7ipImmo7bVt4hs2mriwd",
"uri": "https://api.ngrok.com/abuse_reports/abrp_2NTVHGf7ipImmo7bVt4hs2mriwd",
"created_at": "2023-03-24T19:59:30Z",
"urls": [
"http://legit-facebook-login.ngrok.io/login"
],
"metadata": "{\"incident_id\":1233122}",
"status": "PROCESSED",
"hostnames": [
{
"hostname": "legit-facebook-login.ngrok.io",
"status": "BANNED"
}
]
}
Fields
id | string | ID of the abuse report |
uri | string | URI of the abuse report API resource |
created_at | string | timestamp that the abuse report record was created in RFC 3339 format |
urls | List<string> | a list of URLs containing suspected abusive content |
metadata | string | arbitrary user-defined data about this abuse report. Optional, max 4096 bytes. |
status | string | Indicates whether ngrok has processed the abuse report. one of PENDING , PROCESSED , or PARTIALLY_PROCESSED |
hostnames | AbuseReportHostname | an array of hostname statuses related to the report |
AbuseReportHostname fields
hostname | string | the hostname ngrok has parsed out of one of the reported URLs in this abuse report |
status | string | indicates 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_2NTVHGf7ipImmo7bVt4hs2mriwd
Response
Returns a 200 response on success
Example Response
{
"id": "abrp_2NTVHGf7ipImmo7bVt4hs2mriwd",
"uri": "https://api.ngrok.com/abuse_reports/abrp_2NTVHGf7ipImmo7bVt4hs2mriwd",
"created_at": "2023-03-24T19:59:30Z",
"urls": [
"http://legit-facebook-login.ngrok.io/login"
],
"metadata": "{\"incident_id\":1233122}",
"status": "PROCESSED",
"hostnames": [
{
"hostname": "legit-facebook-login.ngrok.io",
"status": "BANNED"
}
]
}
Fields
id | string | ID of the abuse report |
uri | string | URI of the abuse report API resource |
created_at | string | timestamp that the abuse report record was created in RFC 3339 format |
urls | List<string> | a list of URLs containing suspected abusive content |
metadata | string | arbitrary user-defined data about this abuse report. Optional, max 4096 bytes. |
status | string | Indicates whether ngrok has processed the abuse report. one of PENDING , PROCESSED , or PARTIALLY_PROCESSED |
hostnames | AbuseReportHostname | an array of hostname statuses related to the report |
AbuseReportHostname fields
hostname | string | the hostname ngrok has parsed out of one of the reported URLs in this abuse report |
status | string | indicates what action ngrok has taken against the hostname. one of PENDING , BANNED , UNBANNED , or IGNORE |