# ListRepositoryCredentials gets a list of all configured repository credential sets

`GET /api/v1/repocreds`

Authentication (security requirement alternatives):

```json
[
  {
    "bearer": []
  }
]
```

- bearer: apiKey, header Authorization. A token sent as `Authorization: Bearer <token>`. [API Docs](https://sourcey-argocd.pages.dev/developer-guide/api-docs/index.md#authorization) shows how to get one.

Parameters:

- `url` (query, string, optional) - Repo URL for query.
  Type: string

Responses:

- 200: A successful response.

Content type: application/json

Type: object

RepositoryList is a collection of Repositories.

Schema: [v1alpha1RepoCredsList](https://sourcey-argocd.pages.dev/api/models/v1alpha1repocredslist/index.md)

- `items` (optional)
  Type: array
  
  Items:
    Reference: [v1alpha1RepoCreds](https://sourcey-argocd.pages.dev/api/models/v1alpha1repocreds/index.md); Type: object

- `metadata` (optional)
  Reference: [v1ListMeta](https://sourcey-argocd.pages.dev/api/models/v1listmeta/index.md); Type: object
  
  ListMeta describes metadata that synthetic resources must have, including lists and
  various status objects. A resource may have only one of {ObjectMeta, ListMeta}.

- default: An unexpected error response.

Content type: application/json

Type: object

Schema: [runtimeError](https://sourcey-argocd.pages.dev/api/models/runtimeerror/index.md)

- `code` (optional)
  Type: integer, int32

- `details` (optional)
  Type: array
  
  Items:
    Reference: [protobufAny](https://sourcey-argocd.pages.dev/api/models/protobufany/index.md); Type: object

- `error` (optional)
  Type: string

- `message` (optional)
  Type: string

## Examples

### cURL

```bash
curl -X GET 'https://argocd.example.com/api/v1/repocreds' \
  -H 'Authorization: YOUR_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('https://argocd.example.com/api/v1/repocreds', {
  method: 'GET',
  headers: {
    'Authorization': 'YOUR_TOKEN',
  },
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.get(
    'https://argocd.example.com/api/v1/repocreds',
    headers={
        'Authorization': 'YOUR_TOKEN',
    },
)
print(response.text)
```
