Ploi API
Ploi API

List source control providers

List all the source control providers for you account

GET api/user/source-control

Example request:

curl -X GET "https://ploi.io/api/user/source-control" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Example response:

HTTP/1.1 200 OK
Content-Type: application/json

{
    "data": [
        {
            "id": 1,
            "label": null,
            "name": "ploi",
            "provider": "github",
            "created_at": "2024-01-01 00:00:00"
        },
    ],
    "links": {
        "first": "https://ploi.io/api/user/source-control?page=1",
        "last": "https://ploi.io/api/user/source-control?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "«",
                "active": false
            },
            {
                "url": "https://ploi.io/api/user/source-control?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "»",
                "active": false
            }
        ],
        "path": "https://ploi.io/api/user/source-control",
        "per_page": 15,
        "to": 4,
        "total": 4
    }
}