Skip to main content
POST

Authorizations

x-portkey-api-key
string
header
required

Path Parameters

id
string<uuid>
required

Body

application/json
key_transition_period_ms
integer

Optional transition period in milliseconds during which the previous key remains valid.

Required range: x >= 1800000
Example:

3600000

Response

200 - application/json

OK

id
string<uuid>
Example:

"550e8400-e29b-41d4-a716-446655440000"

key
string

Newly rotated API key value.

Example:

"pk_live_new_rotated_key_value"

key_transition_expires_at
string<date-time>

Timestamp when the previous key version stops being accepted.

Example:

"2026-01-15T10:30:00.000Z"

Last modified on April 7, 2026