<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKErrorRetryAfterKey",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:@CKErrorRetryAfterKey"
  },
  "title" : "CKErrorRetryAfterKey"
}
-->

# CKErrorRetryAfterKey

The key to retrieve the number of seconds to wait before you retry a request.

```
let CKErrorRetryAfterKey: String
```

## Discussion

An <doc://com.apple.documentation/documentation/Foundation/NSNumber> that contains the number of seconds until you can retry a request. CloudKit adds this key to the error’s <doc://com.apple.documentation/documentation/Foundation/NSError/userInfo> dictionary when the error code is [`CKError.Code.serviceUnavailable`](/documentation/CloudKit/CKError/Code/serviceUnavailable) or [`CKError.Code.requestRateLimited`](/documentation/CloudKit/CKError/Code/requestRateLimited).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)