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

# List credentials

> List all credentials for a corporation

Retrieve all credentials belonging to a corporation. Optionally filter by portal IDs and include inactive credentials.

## Query parameters

<ParamField query="corporation_id" type="string" required>
  The unique identifier (UUID) for the corporation.
</ParamField>

<ParamField query="portal_ids" type="string">
  Comma-separated list of portal IDs to filter by.

  Example: `PORTAL_CA_CDTFA,PORTAL_TX_CPTD`
</ParamField>

<ParamField query="include_inactive" type="string">
  Set to `true` to include expired credentials. Defaults to `false`.
</ParamField>

<ParamField query="extend" type="string">
  Set to `PORTAL_DETAILS` to include portal name, URL, and jurisdiction information in the response.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://transaction-tax.api.in.commenda.io/api/v1/credentials?corporation_id=550e8400-e29b-41d4-a716-446655440000&extend=PORTAL_DETAILS' \
    --header 'Authorization: Bearer <your_token>'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "message": "Successfully listed credentials.",
    "data": {
      "credentials": [
        {
          "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
          "corporation_id": "550e8400-e29b-41d4-a716-446655440000",
          "portal_id": "PORTAL_CA_CDTFA",
          "credential_type": "INDIRECT_TAX_REGISTRATION",
          "is_custom": false,
          "name": "California CDTFA Portal",
          "status": "ACTIVE",
          "blocks": [
            {
              "id": "block-uuid-1",
              "block_key": "username",
              "block_label": "Username",
              "block_type": "String"
            },
            {
              "id": "block-uuid-2",
              "block_key": "password",
              "block_label": "Password",
              "block_type": "SecureString"
            }
          ],
          "portal_details": {
            "portal_id": "PORTAL_CA_CDTFA",
            "portal_name": "California Department of Tax and Fee Administration",
            "portal_url": "https://onlineservices.cdtfa.ca.gov",
            "country": "US",
            "state_or_province": "CA"
          },
          "created_at": "2024-01-15T10:30:00Z",
          "updated_at": "2024-01-15T10:30:00Z"
        }
      ],
      "count": 1
    }
  }
  ```

  ```json 200 - Empty theme={null}
  {
    "message": "Successfully listed credentials.",
    "data": {
      "credentials": [],
      "count": 0
    }
  }
  ```
</ResponseExample>

<Note>
  Block values for `SecureString` types are not returned in list responses. Use the [Get Credential](/engine/indirect-tax/credentials/credentials-id-GET) endpoint to retrieve a specific credential with its values.
</Note>
