PasteCloud

PasteCloud

Recent pastes

If you like to retrieve the recent* pastes you make a GET request to the /api/pastes/recent endpoint.

*The password protected Paste are excluded from the API.

API call preview

CURLCopy to clipboard
$ curl https://pastecloud.net/api/pastes/recent
    -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjU2NDdiNjhsdfqqsdfsdqfsgggf'
    -H 'Accept: application/json'
    -H 'Content-Type: application/json'

Response preview

JSONCopy to clipboard
[
    {
        "url": "https://pastecloud.net/rJOfoRlJEF",
        "slug": "rJOfoRlJeF",
        "title": "Test Paste",
        "content": "Test",
        "syntax": {
            "id": 3,
            "description": "Plain text"
        },
        "expiry": {
            "id": 1,
            "description": "Never"
        },
        "views": 3,
        "created_at": {
            "date": "2018-05-03 16:17:26.000000",
            "timezone_type": 3,
            "timezone": "UTC"
        },
        "expires_at": null
    },
    
    ...
    
    {
        "url": "http://pastecloud.test/pYuJCdmZsO",
        "slug": "pYuJCdmZsO",
        "title": "PasteCloud API",
        "content": "https://pastecloud.unmarkdocs.co/#api",
        "syntax": {
            "id": 3,
            "description": "Plain text"
        },
        "expiry": {
            "id": 1,
            "description": "Never"
        },
        "views": 7,
        "created_at": {
            "date": "2018-03-26 15:22:13.000000",
            "timezone_type": 3,
            "timezone": "UTC"
        },
        "expires_at": null
    }
]