# Roll a customer API key

`POST /v1/platforms/{orgId}/customers/{customerId}/api-keys/{keyId}/roll`

Mint a replacement for a key this platform created (platform:customer_keys). The current secret keeps working for the overlap, at most 72 hours. A key the customer created themselves is not_found.

Requires: organization platform (active); permission platform:customer_keys

## Request body

- `overlap_hours` (integer): 

```json
{
  "overlap_hours": 24
}
```

Errors: invalid_overlap

```bash
curl -X POST "https://sandbox-api.payezy.io/v1/platforms/$ORG_ID/customers/$CUSTOMER_ID/api-keys/$KEY_ID/roll" \
  -H "Authorization: Bearer $PAYEZY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "overlap_hours": 24
}'
```
