A time period is the billing or pay window that timesheets are filed against. Use this API to list and create periods, find the active one, and open or close a period.
GET /api/v1/time-periods lists every period; GET /api/v1/time-periods/current returns the one in effect now, which is what a timesheet usually attaches to. Pass an optional ?date=YYYY-MM-DD query parameter to retrieve the period that was active on a specific date instead of today. Create new windows with POST /api/v1/time-periods.
When creating or updating a period, keep the following behaviors in mind:
is_current is read-only. The period whose window contains today is automatically flagged is_current: true in responses. Sending is_current in a write body is silently ignored.YYYY-MM-DD. Datetime strings are accepted and truncated to the calendar date as written (not converted to UTC); invalid date strings and start_date == end_date return 400.409 Conflict. Periods that share only a boundary day (touching but not overlapping) are allowed.PUT and DELETE on a closed period return 409 with the message “Time period is closed; reopen it first”. Reopen the period before making changes.404. The close and reopen endpoints validate the ID first and return 400 for a malformed (non-UUID) value.Lock a window once its time is final with POST /api/v1/time-periods/{id}/close, and undo that with POST /api/v1/time-periods/{id}/reopen if a correction is needed. The close action is idempotent. Timesheets reference a period by its ID — see the Timesheets API.
Every endpoint links through to its full parameters, request and response schemas, and code samples.
GET/api/v1/time-period-settingsAlgaPSAList time period settingsPOST/api/v1/time-period-settingsAlgaPSACreate time period settingsGET/api/v1/time-period-settings/{id}AlgaPSAGet time period settingsPUT/api/v1/time-period-settings/{id}AlgaPSAUpdate time period settingsDELETE/api/v1/time-period-settings/{id}AlgaPSADelete time period settingsGET/api/v1/time-periodsAlgaPSAList time periodsPOST/api/v1/time-periodsAlgaPSACreate time periodGET/api/v1/time-periods/{id}AlgaPSAGet time periodPUT/api/v1/time-periods/{id}AlgaPSAUpdate time periodDELETE/api/v1/time-periods/{id}AlgaPSADelete time periodPOST/api/v1/time-periods/{id}/closeAlgaPSAClose time periodPOST/api/v1/time-periods/{id}/reopenAlgaPSAReopen time periodGET/api/v1/time-periods/currentAlgaPSAGet current time period