v52

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-015891,4406.1 MB

Create an ephemeral key

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

post/v1/ephemeral_keys

Response

Successful response.

createdinteger required

Time at which the object was created. Measured in seconds since the Unix epoch.

expiresinteger required

Time at which the key will expire. Measured in seconds since the Unix epoch.

idstring required

Unique identifier for the object.

livemodeboolean 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.

secretstring

The key's secret. You can use this value to make authorized requests to the Stripe API.