---
title: "GET /{tenantID}/servicePrincipals/{objectId}/keyCredentials"
method: GET
path: "/{tenantID}/servicePrincipals/{objectId}/keyCredentials"
tags: ["ServicePrincipalKeyCredentials"]
---

# GET /{tenantID}/servicePrincipals/{objectId}/keyCredentials

`GET /{tenantID}/servicePrincipals/{objectId}/keyCredentials`

Get the keyCredentials associated with the specified service principal.

## Path parameters

- `objectId` string, required
- `tenantID` string, required

## Query parameters

- `api-version` string, required

## Response `200`

OK. The operation was successful.

- KeyCredentialListResult — KeyCredential list operation result.
  - `value` KeyCredential[] — A collection of KeyCredentials.
    - `startDate` string, date-time — Start date.
    - `endDate` string, date-time — End date.
    - `value` string — Key value.
    - `keyId` string — Key ID.
    - `usage` string — Usage. Acceptable values are 'Verify' and 'Sign'.
    - `type` string — Type. Acceptable values are 'AsymmetricX509Cert' and 'Symmetric'.
    - `customKeyIdentifier` string — Custom Key Identifier

## Other responses

- `default` — Error response describing why the operation failed.

---

[API](https://skmtc.net/azure/apis/graphrbacmanagementclient.md) · [All operations](https://skmtc.net/azure/apis/graphrbacmanagementclient/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/graphrbacmanagementclient/versions/71d95005600e/schema)
