---
title: "Immediately invalidate an ephemeral key"
method: DELETE
path: "/v1/ephemeral_keys/{key}"
---

# Immediately invalidate an ephemeral key

`DELETE /v1/ephemeral_keys/{key}`

## Request

- Base URL: `https://api.stripe.com`
- URL: `https://api.stripe.com/v1/ephemeral_keys/{key}`
- Auth: one of:
  - HTTP basic
  - HTTP bearer

Invalidates a short-lived API key for a given resource.

## Path parameters

- `key` string, required

## Response `200`

Successful response.

- EphemeralKey: Ephemeral keys give the SDKs (like Stripe's mobile SDKs and Issuing Elements) temporary, scoped access to a specific resource, such as a Customer, Issuing Card, or Identity VerificationSession, without exposing your secret API key. Related guides: [Using Issuing Elements](https://docs.stripe.com/issuing/elements).
  - `created` integer, required: Time at which the object was created. Measured in seconds since the Unix epoch.
  - `expires` integer, required: Time at which the key will expire. Measured in seconds since the Unix epoch.
  - `id` string, required: Unique identifier for the object.
  - `livemode` boolean, required: If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
  - `object` 'ephemeral_key', required: String representing the object's type. Objects of the same type share the same value.
  - `secret` string: The key's secret. You can use this value to make authorized requests to the Stripe API.

## Other responses

- `default`: Error response.

## Changes

> 19 revisions in range; 7 not diffed, 2 could not be searched.

- **2026-07-01** `e24a26de4188`: 3 breaking
  - removed the required property `error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/application_fee/anyOf[subschema #2: PlatformFee]/balance_transaction/anyOf[subschema #2: BalanceTransaction]/source/anyOf[subschema #6: Dispute]/payment_method_details/card/network` from the response with the `default` status
  - removed the required property `error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/balance_transaction/anyOf[subschema #2: BalanceTransaction]/source/anyOf[subschema #6: Dispute]/payment_method_details/card/network` from the response with the `default` status
  - removed the required property `error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/failure_balance_transaction/anyOf[subschema #2: BalanceTransaction]/source/anyOf[subschema #6: Dispute]/payment_method_details/card/network` from the response with the `default` status
  - …this revision’s changelog is incomplete

[Operation history](https://skmtc.dev/stainless-api/apis/stripe-api/changes/v1/ephemeral_keys/:key/delete.md)

---

[API](https://skmtc.dev/stainless-api/apis/stripe-api.md) · [All operations](https://skmtc.dev/stainless-api/apis/stripe-api/llms.txt) · [OpenAPI document](https://skmtc.dev/stainless-api/apis/stripe-api/revisions/7cff4cc46d06?raw)
