Operating system set to macOS
Documentation jurisdiction set to United States
Sign inConnect Claude

Invoke Skill Derive Period

post/api/v1/skills/derive.period/invoke

(Utility) Derive canonical period bounds + matching prior-period bounds from a kind discriminator + anchor date. Pure compute β€” same input always produces identical output. Supports BAS-AU monthly/quarterly/annual today; additional jurisdictions are new ``kind`` values.

Request bodyapplication/json

FieldTypeDescription
kindrequiredanyβ€”
anchor_daterequiredstring (date)β€”

Responses

200Skill executed successfully
FieldTypeDescription
skillrequiredstringβ€”
outputrequiredobjectSkill output β€” period bounds + matching prior-period bounds. All date fields are ISO strings so they substitute cleanly into Jinja2 templates in WDL (``{{ outputs.derive_period.period_start }}``) without ``date`` repr surprises. Prior period: the unique period of the same kind immediately preceding the current one β€” useful for comparatives. For BAS this is the prior month / prior FY quarter / prior FY.
show nested
FieldTypeDescription
kindrequiredanyβ€”
anchor_daterequiredstringβ€”
period_startrequiredstringβ€”
period_endrequiredstringβ€”
period_labelrequiredstringβ€”
prior_period_startrequiredstringβ€”
prior_period_endrequiredstringβ€”
prior_period_labelrequiredstringβ€”
stub_fieldsstring[]β€”
warningsstring[]β€”
correlation_idrequiredstringβ€”
401Authentication required
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
403Insufficient permissions
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
404Skill not found
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
429Rate limit exceeded
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
5XXInternal server error
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
curl https://api.dev.arch.ie/api/v1/skills/derive.period/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "kind": null,
       "anchor_date": "string"
     }'