Skip to main content
POST
Decompose an ISO 8601 duration

Authorizations

X-API-KEY
string
header
required

Your deployment's API key (MMK_API_KEY). Routes that accept OAuth2 also allow Authorization: Bearer <token>.

Body

application/json
duration
string
required

ISO 8601 duration, e.g. P1DT2H30M.

Response

Duration components

original
string
days
integer
hours
integer
minutes
integer
seconds
integer
is_valid
boolean
error
string