List source control providers

List all source control providers linked to your account.


GET/api/user/source-control

Get all source control providers

This endpoint returns all source control providers (GitHub, GitLab, Bitbucket, etc.) connected to your account.

Request

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

Response

{
  "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,
    "path": "https://ploi.io/api/user/source-control",
    "per_page": 15,
    "to": 4,
    "total": 4
  }
}