View all your reports
GET https://childporn.report/api/v1/reports
Header Value
Authorization
Bearer yourApiToken
Valid response 200 OK
{
    "data": [
        {
            "id": 1,
            "ip": "172.16.0.1",
            "urls": "https:\/\/childporn.report\nhttps:\/\/childporn.report",
            "created_at": "2024-03-29T13:10:07.000000Z"
        },
        {
            "id": 2,
            "ip": "192.168.1.1",
            "urls": "http:\/\/localhost",
            "created_at": "2024-03-29T13:10:07.000000Z"
        }
    ]
}

View a single report
GET https://childporn.report/api/v1/reports/1
Header Value
Authorization
Bearer yourApiToken
Valid response 200 OK
{
    "data": {
        "id": 1,
        "ip": "172.16.0.1",
        "urls": "https:\/\/childporn.report\nhttps:\/\/childporn.report",
        "created_at": "2024-03-29T13:10:07.000000Z"
    }
}

Create a new report
POST https://childporn.report/api/v1/reports
Header Value
Authorization
Bearer yourApiToken

Post form data
Key Value
ip
172.16.0.1
urls
https://childporn.report
https://childporn.report
Multiple URL's can be entered, separate each URL by a new line
\n
Valid response 200 OK
{
    "data": {
        "id": 1,
        "ip": "172.16.0.1",
        "urls": "https:\/\/childporn.report\nhttps:\/\/childporn.report",
        "created_at": "2024-03-29T13:10:07.000000Z"
    }
}
A correct request will show a 200 OK code and the new report including its new ID.

Example bad response 422 Unprocessable Entity
{
    "message": "The given data was invalid.",
    "errors": {
        "ip": [
            "The ip must be a valid IPv4 address."
        ],
        "urls": [
            "The urls field is required."
        ]
    }
}
This error will be given when one of the required fields is not entered, or entered incorrectly.

Example bad response 404 Not Found
{
    "message": "The given data was invalid.",
    "errors": {
        "ip": [
            "The entered IP address is not known in our system."
        ]
    }
}
This error will be given when entering a IP address of a provider not connected to Childporn Report.