Endpoint and Authentication

Please refer to the API overview section to get the API endpoint, query format and authentication process.

Get all occurrences of a crash

GET /api/crashes/:crash_identifier/occurrences

Query parameters

Property Type Discussion Default
crash_identifier string A unique identifier of a crash required

Response

Status: 200 OK

{
    "loading": [
        true
    ],
    "job_id": "2eab310c430bf292171281ae",
    "success": true,
    "result": [
        {
            id: "2544355787-1536831773-logs-00003-crash-1",
            date: "2018-09-13",
            log_id: "2544355787-1536831773-logs-00003"
        },
        {
            id: "2544355763-1536780931-logs-00003-crash-1",
            date: "2018-09-12",
            log_id: "2544355763-1536780931-logs-00003"
        }
    ]
}

When a crash does not exist

Status: 404 not found

{
    "success": false,
    "status": "not_found",
    "error_message": "App Crash with identifier occurrences."
}

When the crash is associated with an app not allowed for the user

Status: 404 not found

{
    "success": false,
    "status": "not_found",
    "error_message": "You have no access to this app crash"
}

Export the report of a crash occurrence

GET /api/crashes/:crash_identifier/export_occurrences?id=id&log_id=log_id&date=date

Export endpoint (see how to use it here):

Query parameters

Property Type Discussion Default
crash_identifier string A unique identifier of a crash required
log_id string A unique identifier of the log associated with this crash. required
id string A unique identifier of the crash occurrence. required
date date The date of the crash occurrence required

Response

When the crash with identifier 'some identifier' does not exist

Status: 404 not found

{
    "success": false,
    "status": "not_found",
    "error_message": "App Crash with identifier occurrences."
}

When the crash is associated with an app not allowed for the user

Status: 404 not found

{
    "success": false,
    "status": "not_found",
    "error_message": "You have no access to this app crash"
}

When the occurrence id, log id or date are not provided in the parameters

Status: 400 bad request

{
    "success": false,
    "status": "bad_request",
    "error_message": "id, log id or start_day not provided"
}