---
title: "POST /usc-list"
method: POST
path: "/usc-list"
tags: ["Universal Secrets Connector"]
---

# POST /usc-list

`POST /usc-list`

## Request

- Base URL: `https://api.akeyless.io`
- URL: `https://api.akeyless.io/usc-list`
- Auth: none declared

## Request body

- UscList: uscList is a command that lists the secrets of a Universal Secrets Connector
  - `aws-account-id` string: The AWS account ID to list secrets from. Required when the connector spans multiple account IDs.
  - `gcp-project-id` string: The GCP project to list secrets from (GCP only). Required when the connector spans multiple projects or uses folder/organization scope.
  - `json` boolean: Set output format to JSON
  - `object-type` string
  - `page-size` integer: Optional: number of items requested per response. When set, response may include next_token
  - `page-token` string: Optional: continuation token returned by a previous usc list --page-size call
  - `region` string: The AWS region to list secrets from (AWS only). If empty, the target's region is used.
  - `search` string: Search query used to match secret names and paths.
  - `token` string: Authentication token (see `/auth` and `/configure`)
  - `uid-token` string: The universal identity token, Required only for universal_identity authentication
  - `usc-name` string, required: Name of the Universal Secrets Connector item

## Response `200`

uscListResponse wraps response body.

- UscListSecretsOutput
  - `next_token` string
  - `secrets_list` SecretInfo[]
    - `activation_date` string, date-time
    - `created` string, date-time
    - `description` string
    - `expiration` string, date-time
    - `github` GithubMetadata
      - `environment_name` string
      - `organization_name` string
      - `repository` string
      - `repository_access` string
      - `scope` string
      - `selected_repositories` string
    - `key_id` string
    - `last_retrieved` string, date-time
    - `location` unknown
    - `name` string
    - `namespace` string
    - `project` string
    - `region` string
    - `secret_id` string
    - `status` boolean
    - `tags` object
    - `thumbprint` string
    - `type` string
    - `version` integer
    - `version_id` string
    - `version_ids` string[]
  - `warnings` string[]

## Other responses

- `default`: errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.dev/akeyless/apis/infrastructure-connectivity.md) - [All operations](https://skmtc.dev/akeyless/apis/infrastructure-connectivity/llms.txt) - [OpenAPI document](https://skmtc.dev/akeyless/apis/infrastructure-connectivity/revisions/62dc62fea89d?raw)
