---
title: "List a company's repository connections"
url: https://docs.corefinity.com/api/reference/organisation/list-company-deployment-connections
type: endpoint
last_updated: 2026-11-13
feature: deployment-connections
related:
  - https://docs.corefinity.com/guides/organisation/developers/repository-connections.md
---
# List a company's repository connections

Answers the git provider accounts of a company you may act for: your own, or a client your agency manages.
Oldest first, 50 a page. A company you cannot see answers `404`, as one that does not exist. Paged by cursor:
send `next_cursor` back as `cursor`; null means the last page.

```http
GET /api/companies/{company}/deployment-connections
```

- Scope: `read`
- Rate limit: 60 a minute
- Try it in the console: on

## Path parameters

- `company` (integer, required): The id of a company you belong to or manage. Digits only.

## Query parameters

- `cursor` (string): The `next_cursor` of the previous answer. Digits only, at most 20; anything else is refused `422`.

## Request

### curl

```bash
curl https://manage.corefinity.com/api/companies/1204/deployment-connections \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
```

### PHP

```php
use Illuminate\Support\Facades\Http;

$response = Http::withToken(env('COREFINITY_TOKEN'))
    ->acceptJson()
    ->get('https://manage.corefinity.com/api/companies/1204/deployment-connections');

$data = $response->json();
```

### Node

```javascript
const res = await fetch('https://manage.corefinity.com/api/companies/1204/deployment-connections', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.COREFINITY_TOKEN}`,
    Accept: 'application/json',
  },
});

// An answer with no body (204) has nothing to parse.
const text = await res.text();
const data = text && JSON.parse(text);
```

### Python

```python
import os
import requests

res = requests.get(
    "https://manage.corefinity.com/api/companies/1204/deployment-connections",
    headers={
        "Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
        "Accept": "application/json",
    },
)

data = res.json() if res.content else None
```

## Responses

### 200 One page of connections.

```json
{
  "connections": [
    {
      "base_url": null,
      "can_remove": false,
      "connected_at": "2026-11-02T09:30:00+00:00",
      "environments": [
        {
          "environment_id": 1311,
          "name": "production",
          "site_id": null,
          "website": "Harbour & Finch trade",
          "website_id": 1310
        }
      ],
      "id": 4217,
      "needs_reauth_since": "2026-11-09T03:12:45+00:00",
      "organisation_access_url": null,
      "other_environments": 0,
      "provider": "gitlab",
      "provider_label": "GitLab",
      "reconnect_note": "Open reconnect_url in a browser signed in to the control panel, then sign in to GitLab as daniel-reyes. Signing in as a different account adds a new connection instead of repairing this one.",
      "reconnect_url": "https://manage.corefinity.com/company/auth/version-control/gitlab?company=1180",
      "status": "needs_reauthorisation",
      "username": "daniel-reyes"
    },
    {
      "base_url": "https://gitlab.example.com",
      "can_remove": true,
      "connected_at": "2026-11-05T14:05:11+00:00",
      "environments": [],
      "id": 4230,
      "needs_reauth_since": null,
      "organisation_access_url": null,
      "other_environments": 0,
      "provider": "gitlab_self_hosted",
      "provider_label": "GitLab (self-hosted)",
      "reconnect_note": "Self-hosted GitLab has no sign-in link: create a new personal access token (api scope) while signed in as northwind-deploy, then use Replace access token on this connection in the control panel (Company, Deployment Connections).",
      "reconnect_url": null,
      "status": "connected",
      "username": "northwind-deploy"
    }
  ],
  "next_cursor": null
}
```

### 401 No token, or a token that is not valid.

```json
{
  "message": "Unauthenticated."
}
```

### 403 The token lacks the scope this endpoint needs. `scope` names it.

```json
{
  "code": "scope_required",
  "message": "This access token does not have the destructive scope this needs. Use a token with the destructive scope.",
  "reason": "scope_required",
  "scope": "destructive"
}
```

### 404 The id does not exist, or it is something you cannot see. Both answer the same body.

```json
{
  "message": "Not found."
}
```

### 422 The `cursor` is longer than 20 characters (`invalid`), or it is not a cursor the list gave you (`invalid_cursor`).

```json
{
  "code": "invalid_cursor",
  "message": "That cursor is not one of ours: start again from the first page.",
  "reason": "invalid_cursor"
}
```

### 429 Too many requests (`rate_limited`). Wait for the number of seconds in `Retry-After`, which `retry_after_seconds` repeats.

```json
{
  "code": "rate_limited",
  "message": "Too many requests. Try again in 60 seconds.",
  "reason": "rate_limited",
  "retry_after_seconds": 60
}
```

## If it is refused

| Status | Reason | What to do |
|---|---|---|
| 401 |  | Send a valid token as `Authorization: Bearer <token>`. |
| 403 | `scope_required` | Use a token with the scope named in `scope`. |
| 404 |  | Check the id. You see only what your account can reach. |
| 422 | `invalid_cursor` | That cursor is not one of ours: start again from the first page. |
| 422 | `invalid` | Fix the field named in `field`; `errors` says why. |
| 429 | `rate_limited` | Wait for the seconds in `Retry-After`. |

## The same task elsewhere

- Guide: [Repository connections](https://docs.corefinity.com/guides/organisation/developers/repository-connections.md)
