API endpoint that allows detections to be viewed or edited.

GET /api/v2/detections/28521/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 28521,
    "details": "https://api.beluga.insectai.org/api/v2/detections/28521/?format=api",
    "bbox": [
        3583.0,
        1520.0,
        3727.0,
        1606.0
    ],
    "width": null,
    "height": null,
    "occurrence": "https://api.beluga.insectai.org/api/v2/occurrences/544739/?format=api",
    "timestamp": "2023-11-13T05:11:50",
    "source_image": "https://api.beluga.insectai.org/api/v2/captures/4716693/?format=api",
    "detection_algorithm": {
        "id": 7,
        "details": "https://api.beluga.insectai.org/api/v2/ml/algorithms/7/?format=api",
        "name": "FasterRCNN for AMI Moth Traps 2023",
        "key": "fasterrcnn_for_ami_moth_traps_2023",
        "description": "",
        "uri": "https://object-arbutus.cloud.computecanada.ca/ami-models/moths/localization/fasterrcnn_resnet50_fpn_tz53qv9v.pt",
        "version": 1,
        "version_name": "1",
        "task_type": "localization",
        "category_map": {
            "id": 594,
            "details": "https://api.beluga.insectai.org/api/v2/ml/labels/594/?format=api",
            "user_permissions": []
        },
        "category_count": null,
        "created_at": "2023-12-03T04:17:28.047511",
        "updated_at": "2025-09-01T23:59:06.146225",
        "user_permissions": []
    },
    "url": "https://object-arbutus.cloud.computecanada.ca/ami-trapdata/crops-dev/20231113051150snapshot/3583-1520-3727-1606-1701596295.jpg",
    "classifications": [
        {
            "id": 1186593,
            "details": "https://api.beluga.insectai.org/api/v2/classifications/1186593/?format=api",
            "taxon": {
                "id": 11613,
                "name": "Not Lepidoptera",
                "rank": "ORDER",
                "details": "https://api.beluga.insectai.org/api/v2/taxa/11613/?format=api",
                "gbif_taxon_key": null,
                "fieldguide_id": null,
                "inat_taxon_id": null,
                "cover_image_url": null,
                "cover_image_credit": null,
                "parent": null,
                "parents": [],
                "user_permissions": []
            },
            "score": 0.9506434202194214,
            "terminal": false,
            "algorithm": {
                "id": 3,
                "details": "https://api.beluga.insectai.org/api/v2/ml/algorithms/3/?format=api",
                "name": "Moth / Non-Moth Classifier",
                "key": "moth_nonmoth_classifier",
                "description": "Trained on May 6, 2022",
                "uri": "https://object-arbutus.cloud.computecanada.ca/ami-models/moths/classification/moth-nonmoth_resnet50_20240417_b4fe3efe.pth",
                "version": 1,
                "version_name": "",
                "task_type": "classification",
                "category_map": {
                    "id": 53,
                    "details": "https://api.beluga.insectai.org/api/v2/ml/labels/53/?format=api",
                    "user_permissions": []
                },
                "category_count": null,
                "created_at": "2023-11-10T02:39:00.973947",
                "updated_at": "2023-11-10T02:40:42.402377",
                "user_permissions": []
            },
            "created_at": "2026-04-01T18:11:29.497698",
            "user_permissions": []
        }
    ],
    "user_permissions": []
}