Events

List events from all your sites (previously logs) via the API

List all events

GET /logs

curl -X GET https://app.1pilot.io/api/v1/logs \
    -H "Accept: application/json" \
    -H "Authorization: Bearer $TOKEN"
Headers
Authorization Bearer $TOKEN
Accept application/json

Responses

HTTP 200 Your sites events.
{
    "data": [ 
        { 
            "id": 346, 
            "site_id": 1, 
            "category": "client", 
            "message": "Extension 1Pilot Client updated to 0.1.1", 
            "type": "updated_extension", 
            "created_at": "2018-03-06T11:10:27+00:00" 
        }, 
        { 
            "id": 324, 
            "site_id": 3, 
            "category": "client", 
            "message": "Extension Blog installed", 
            "type": "new_extension", 
            "created_at": "2018-03-02T08:44:39+00:00" 
        }, 
        {
            "id": 277, 
            "site_id": 3, 
            "category": "client", 
            "message": "Extension User installed", 
            "type": "new_extension", 
            "created_at": "2018-02-28T08:15:38+00:00" 
        }, 
        { 
            "id": 274, 
            "site_id": 1, 
            "category": "client", 
            "message": "Extension Download Manager updated to 1.0.1", 
            "type": "updated_extension", 
            "created_at": "2018-02-28T07:59:58+00:00" 
        }, 
        { 
            "id": 272, 
            "site_id": 1, 
            "category": "client", 
            "message": "Update available for Download Manager actual 1.0.1 to 1.0.2", 
            "type": "update_extension_available", 
            "created_at": "2018-02-27T15:22:02+00:00" 
        } 
    ], 
    "links": { 
        "first": "https://app.1pilot.io/api/v1/sites/1/logs?page=1", 
        "last": "https://app.1pilot.io/api/v1/sites/1/logs?page=4", 
        "prev": "https://app.1pilot.io/api/v1/sites/1/logs?page=1", 
        "next": "https://app.1pilot.io/api/v1/sites/1/logs?page=3" 
    },
    "meta": { 
        "current_page": 2, 
        "from": 16, 
        "last_page": 4, 
        "path": "https://app.1pilot.io/api/v1/sites/1/logs", 
        "per_page": 15, 
        "to": 30, 
        "total": 53 
    } 
}

List events of one site

GET /sites/:id/logs

curl -X GET https://app.1pilot.io/api/v1/sites/$ID/logs \
    -H "Accept: application/json" \
    -H "Authorization: Bearer $TOKEN"
Headers
Authorization Bearer $TOKEN
Accept application/json

Responses

HTTP 200 Your site events.
{
    "data": [ 
        { 
            "id": 346, 
            "site_id": 1, 
            "category": "client", 
            "message": "Extension 1Pilot Client updated to 0.1.1", 
            "type": "updated_extension", 
            "created_at": "2018-03-06T11:10:27+00:00" 
        }, 
        { 
            "id": 324, 
            "site_id": 1, 
            "category": "client", 
            "message": "Extension Blog installed", 
            "type": "new_extension", 
            "created_at": "2018-03-02T08:44:39+00:00" 
        }, 
        {
            "id": 277, 
            "site_id": 1, 
            "category": "client", 
            "message": "Extension User installed", 
            "type": "new_extension", 
            "created_at": "2018-02-28T08:15:38+00:00" 
        }, 
        { 
            "id": 274, 
            "site_id": 1, 
            "category": "client", 
            "message": "Extension Download Manager updated to 1.0.1", 
            "type": "updated_extension", 
            "created_at": "2018-02-28T07:59:58+00:00" 
        }, 
        { 
            "id": 272, 
            "site_id": 1, 
            "category": "client", 
            "message": "Update available for Download Manager actual 1.0.1 to 1.0.2", 
            "type": "update_extension_available", 
            "created_at": "2018-02-27T15:22:02+00:00" 
        } 
    ], 
    "links": { 
        "first": "https://app.1pilot.io/api/v1/sites/1/logs?page=1", 
        "last": "https://app.1pilot.io/api/v1/sites/1/logs?page=4", 
        "prev": "https://app.1pilot.io/api/v1/sites/1/logs?page=1", 
        "next": "https://app.1pilot.io/api/v1/sites/1/logs?page=3" 
    },
    "meta": { 
        "current_page": 2, 
        "from": 16, 
        "last_page": 4, 
        "path": "https://app.1pilot.io/api/v1/sites/1/logs", 
        "per_page": 15, 
        "to": 30, 
        "total": 53 
    } 
}