---
title: "Manage card PIN"
---
You can retrieve and update the PIN for cards you issue.

## Get card PIN

The card PIN is encrypted using the same RSA encryption pattern as sensitive card details. To retrieve a card PIN, follow the steps in [Retrieve sensitive card details](/api-reference/cards/get-v1-cards-card-id-sensitive-details) and use the [Get card PIN](/api-reference/cards/get-v1-cards-card-id-pin) endpoint instead.

## Update card PIN

Use the [Update card PIN](/api-reference/cards/put-v1-cards-card-id-pin) endpoint to change a card's PIN:

```bash title="update card PIN request"
curl --request PATCH \
     --url https://api.gravv.xyz/v1/cards/<card id>/pin \
     --header 'Api-Key: <API_KEY>' \
     --header 'content-type: application/json' \
     --data '
{
  "card_pin": "934829"
}
'
```

You will receive a response similar to this:

```json title="update card PIN response"
{
  "data": {
    "message": "Card PIN updated successfully"
  },
  "error": null
}
```

