---
page_type: error
code: 20157
message: "20157: Expiration Time Exceeds Maximum Time Allowed"
level: ERROR
product: Platform
---

## Error - 20157

### Expiration Time Exceeds Maximum Time Allowed

The expiration time provided when creating the JWT exceeds 24 hours, which is the maximum duration allowed.

#### Possible Solution:

- Provide a shorter expiration time, which does not exceed the maximum.

See [the capability token docs](/docs/voice/client/capability-tokens) to learn more.