---
title: "POST /#X-Amz-Target=PaymentCryptographyControlPlane.GetAlias"
method: POST
path: "/#X-Amz-Target=PaymentCryptographyControlPlane.GetAlias"
---

# POST /#X-Amz-Target=PaymentCryptographyControlPlane.GetAlias

`POST /#X-Amz-Target=PaymentCryptographyControlPlane.GetAlias`

Gets the Amazon Web Services Payment Cryptography key associated with the alias.

**Cross-account use:** This operation can't be used across different Amazon Web Services accounts.

**Related operations:**

*   [CreateAlias](https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateAlias.html)
    
*   [DeleteAlias](https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteAlias.html)
    
*   [ListAliases](https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ListAliases.html)
    
*   [UpdateAlias](https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_UpdateAlias.html)

## Headers

- `X-Amz-Target` 'PaymentCryptographyControlPlane.GetAlias', required

## Request body

- GetAliasInput
  - `AliasName` string, required — The alias of the Amazon Web Services Payment Cryptography key.

## Response `200`

Success

- GetAliasOutput
  - `Alias` object, required — The alias of the Amazon Web Services Payment Cryptography key.
    - `AliasName` string, required — <p>A friendly name that you can use to refer to a key. The value must begin with <code>alias/</code>.</p> <important> <p>Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.</p> </important>
    - `KeyArn` string — The <code>KeyARN</code> of the key associated with the alias.

## Other responses

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

---

[API](https://skmtc.net/aws/apis/payment-cryptography.md) · [All operations](https://skmtc.net/aws/apis/payment-cryptography/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/payment-cryptography/versions/1b0b83160e8d/schema)
