For AI agents and LLMs: a structured documentation index is available at /llms.txt. Every page has a Markdown sibling — append .md to any URL. To search these docs, send a GET request to https://paddle-docs-retrieval.kapa-paddle.workers.dev/?q=<question> with a URL-encoded question. No authentication needed.

Skip to content
Paddle Docs home

api_key_rotation.updated

Occurs when an API key rotation's status changes.

Occurs when the status of an API key rotation changes:

  • completed when the new secret authenticates a request for the first time. expires_at shows when the old secret stops working.
  • canceled when a newer rotation replaces it before its new secret is used.

api_key_rotation.created occurs when the rotation starts. If the rotation sets a new expiry date for the key, api_key.updated also occurs when the rotation is completed.

event_idstringrequired
Example: evt_01gks14ge726w50ch2tmaw2a1x
Unique Paddle ID for this event, prefixed with evt_.
Pattern: ^evt_[a-z\d]{26}$
event_typestringrequired
Type of event sent by Paddle, in the format entity.event_type.
Values
+ Show all values
occurred_atstring (date-time)required
Example: 2024-10-12T07:20:50.52Z
RFC 3339 datetime string of when this event occurred.
notification_idstringrequired
Example: ntf_01ghbkd0frb9k95cnhwd1bxpvk
Unique Paddle ID for this notification, prefixed with ntf_.
Pattern: ^ntf_[a-z\d]{26}$
dataobjectrequired
New or changed entity.
idstringrequired
Example: apkrot_01gm106t81w94gyjgsaqypkjkl
Unique Paddle ID for this API key rotation entity, prefixed with apkrot_.
Pattern: ^apkrot_[a-z\d]{26}$
api_key_idstringrequired
Example: apikey_01gm106t81w94gyjgsaqypkjkl
Unique Paddle ID for this API key entity, prefixed with apikey_.
Pattern: ^apikey_[a-z\d]{26}$
statusstringrequired
Status of this API key rotation.
Values
  • pending
    Rotation was created and the new secret was issued, but it hasn't been used yet. The current secret still works.
  • completed
    The new secret was used and is now active. The old secret works until expires_at.
  • canceled
    Rotation was canceled or replaced by a newer rotation before the new secret was used.
grace_period_secondsintegerrequired
How long, in seconds, the old secret keeps working after the new secret is activated. The new secret is activated the first time it's used to authenticate a request. Set to 0 to stop the old secret working as soon as the new one is activated.
Range: 0–86400
new_key_expires_atstring (date-time) | nullrequired
Example: 2024-10-12T07:20:50.52Z
RFC 3339 datetime string of when the API key should expire after this rotation. Applied when the new secret is activated. If omitted, the API key keeps its current expiry.
expires_atstring (date-time) | nullrequired
Example: 2024-10-12T07:20:50.52Z
RFC 3339 datetime string of when the old secret stops working. null until the new secret is activated.
created_atstring (date-time)required
Example: 2024-10-12T07:20:50.52Z
RFC 3339 datetime string of when this entity was created. Set automatically by Paddle.
updated_atstring (date-time)required
Example: 2024-10-13T07:20:50.52Z
RFC 3339 datetime string of when this entity was updated. Set automatically by Paddle.
api_key_rotation.updated
{
"event_id": "evt_01jkdrb9yq2v6k4e1m3x8p7c5d",
"event_type": "api_key_rotation.updated",
"occurred_at": "2025-08-19T13:10:02.114209Z",
"notification_id": "ntf_01jkdrba4hm0x2q8v6r9t3w1ye",
"data": {
"id": "apkrot_01jkas9tppn3bhadwpcyag45zd",
"api_key_id": "apikey_01jkdpbhazdpn3wpcya45as9tg",
"status": "completed",
"grace_period_seconds": 3600,
"new_key_expires_at": null,
"expires_at": "2025-08-19T14:10:02.114209Z",
"created_at": "2025-08-19T12:58:38.746382Z",
"updated_at": "2025-08-19T13:10:02.114209Z"
}
}

Was this page helpful?