## List Credentials

`credentials.list(CredentialListParams**kwargs)  -> SyncCursorPage[Credential]`

**get** `/v5/credentials`

Retrieve a paginated list of all credentials for the current account with optional name filtering.

### Parameters

- `ending_before: Optional[str]`

- `limit: Optional[int]`

- `name: Optional[str]`

  Filter credentials by name

- `sort_by: Optional[str]`

- `sort_order: Optional[SortOrder]`

  - `"asc"`

  - `"desc"`

- `starting_after: Optional[str]`

### Returns

- `class Credential: …`

  - `id: str`

  - `created_at: datetime`

  - `created_by_identity_type: Optional[str]`

  - `created_by_user_id: Optional[str]`

  - `credential_metadata: Optional[Dict[str, object]]`

  - `description: Optional[str]`

  - `name: str`

  - `type: str`

  - `updated_at: datetime`

  - `object: Optional[str]`

### Example

```python
import os
from scale_gp_beta import SGPClient

client = SGPClient(
    api_key=os.environ.get("SGP_API_KEY"),  # This is the default and can be omitted
)
page = client.credentials.list()
page = page.items[0]
print(page.id)
```

#### Response

```json
{
  "has_more": true,
  "items": [
    {
      "id": "id",
      "created_at": "2019-12-27T18:11:19.117Z",
      "created_by_identity_type": "created_by_identity_type",
      "created_by_user_id": "created_by_user_id",
      "credential_metadata": {
        "foo": "bar"
      },
      "description": "description",
      "name": "name",
      "type": "type",
      "updated_at": "2019-12-27T18:11:19.117Z",
      "object": "object"
    }
  ],
  "total": 0,
  "limit": 0,
  "object": "list"
}
```
