> ## Documentation Index
> Fetch the complete documentation index at: https://docs.capcells.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List a source's credentials

> Which credentials the Tenancy holds for a Source: live, withdrawn or about to expire.

The records only. The credential itself is never answered.

## Who may call

An administrator of the organization, as a person. The agent is refused on live and sandbox Tenancies alike.

## Path parameters

**tenant\_id** `string` *required*

The Tenancy acting. It comes from [Read the tenancy](https://docs.capcells.com/api-reference/console/tenancy/read.md); your organization must be bound to it.

**source** `string` *required*

The catalogue's name for the Source, as [List the sources](https://docs.capcells.com/api-reference/sources/list.md) answers it.

## Response

**credentials** `array` *required*

Every credential held for the Source.

**credential**

**id** `string` *required*

The credential's identifier.

**source** `string` *required*

The Source it is for.

**state** `string` *required*

Where the credential stands.

**expires\_at** `string`

When the Source's own credential stops working, as you stated it. Absent where you stated nothing.

**supplied\_by** `string` *required*

Who supplied it.

**supplied\_at** `string` *required*

When.

**revoked\_at** `string`

Present exactly on a withdrawn credential.

**revoked\_by** `string`

Who withdrew it.

**revoked\_reason** `string`

The reason given.

## Refusals

| Status | Code | When |
| - | - | - |
| `401` | `unauthenticated` | The token is missing or cannot be used |
| `403` | `not_permitted_tenant` | Your organization does not act for the Tenancy in the path |
| `403` | `not_permitted_role` | The caller is not an administrator |
| `403` | `not_permitted_actor` | The caller is the agent |
| `404` | | The catalogue declares no such Source |

Every refusal carries the [error shape](https://docs.capcells.com/api-reference/overview.md#the-error-shape). `429` and `503` answer as at the signing door.

```bash Request theme={null}
curl https://api.capcells.com/console/v1/tenants/capyplazo/sources/$SOURCE/credentials \
  -H "Authorization: Bearer $CONSOLE_TOKEN"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.