---
title: "List API credentials"
method: GET
path: "/v2/credentials"
tags: ["Credentials"]
---

# List API credentials

`GET /v2/credentials`

## Request

- Base URL: `https://api.sigmacomputing.com`
- URL: `https://api.sigmacomputing.com/v2/credentials`
- Auth: HTTP bearer

List the API client credentials created for users in your Sigma organization.
### Usage notes
- To perform this operation, you must use API credentials owned by a user assigned the Admin account type.
- To read or update credentials for a tenant organization, use [impersonation](/docs/impersonate-users) to obtain a token for that tenant, then call this endpoint with that token.
- `clientSecret` is never included in the response. It is returned only once, at creation time, in the response to [POST /v2/credentials](https://help.sigmacomputing.com/reference/create-credentials).
- `ownerId` identifies the user the credentials were created for and `createdBy` identifies the admin who created them.

### Usage scenarios
- **Credential auditing:** Review which API credentials exist in your organization and who owns each one.
- **Credential cleanup:** Look up a credential's `clientId` before revoking it with [DELETE /v2/credentials/{clientId}](https://help.sigmacomputing.com/reference/delete-credentials).

## Query parameters

- `pageToken` string
- `pageSize` integer

## Response `200`

The response body.

- CredentialsListCredentialsResponse200
  - `entries` V2CredentialsGetResponsesContentApplicationJsonSchemaEntriesItems[], required: Array of results returned by the endpoint
    - `clientId` string, required: Client ID of the credentials.
    - `ownerId` string, required: Unique identifier of the user assigned the credentials.
    - `name` string, required: Name of the credentials.
    - `description` string, required: Description of the credentials
    - `createdAt` string, date-time, required: When the credentials were created.
    - `createdBy` string, required: Unique identifier of the user who created the credentials.
    - `scopes` V2CredentialsGetResponsesContentApplicationJsonSchemaEntriesItemsScopesItems[], required: Scopes assigned to the credentials.
  - `nextPageToken` string: A string that can be passed to the `pageToken` parameter in the next request to fetch the next page of results. Not present in the last page of results. **Must be treated as an opaque string.**

---

[API](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api.md) - [All operations](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/revisions/fb6036208c49?raw)
