---
title: "POST /identities/api-key"
method: POST
path: "/identities/api-key"
---

# POST /identities/api-key

`POST /identities/api-key`

Retrieves the API key associated with an API key credential provider.

## Request body

- object
  - `workloadIdentityToken` string, password, required — The identity token of the workload from which you want to retrieve the API key.
  - `resourceCredentialProviderName` string, required — The credential provider name for the resource from which you are retrieving the API key.

## Response `200`

Success

- GetResourceApiKeyResponse
  - `apiKey` string, password, required — The API key associated with the resource requested.

## Other responses

- `480` — UnauthorizedException
- `481` — ValidationException
- `482` — AccessDeniedException
- `483` — ResourceNotFoundException
- `484` — ThrottlingException
- `485` — InternalServerException

---

[API](https://skmtc.net/aws/apis/bedrock-agentcore.md) · [All operations](https://skmtc.net/aws/apis/bedrock-agentcore/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/bedrock-agentcore/revisions/79623b33d495/schema)
