## MedplumClientOptions.maxRetries property [​](/content/docs/sdk/core.medplumclientoptions.maxretries#medplumclientoptionsmaxretries-property/index.html)

The maximum number of retries for failed requests.

When the client encounters a retryable response (HTTP 429 or 5xx), it will automatically retry the request. This setting defines the maximum number of retry attempts.

This can be overridden per-request using the `maxRetries` option in `MedplumRequestOptions`.

Default value is `2`.

**Signature:**

```typescript
maxRetries?: number;
```

- [MedplumClientOptions.maxRetries property](/content/docs/sdk/core.medplumclientoptions.maxretries#medplumclientoptionsmaxretries-property/index.html)
