Get a period
Code Mode: praxis.workforce.periods.retrieve
HTTP: GET /workforce/v1/periods/{id}
Reads one period with its derived status, so you can tell whether it is still planning, active, in grading or closed. Read-only. Errors: 404 PERIOD_NOT_FOUND when the id is not a period of your organization; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent.
Signature
praxis.workforce.periods.retrieve(args:{path:{id:string}}):Promise<{/** Period id (prd_...); use it as period_id and parent_id. */ id:string;/** Id of the organization that owns the period. */ organization_id:string;/** Period name, 1 to 100 characters, such as 2026 Q4. */ name:string;/** Level of the calendar this period sits on; periods of one cadence never overlap. e.g. "quarter" */ cadence:"year"|"half"|"quarter";/** Id of the coarser period (prd_...) that contains this one; null for a period with no parent. */ parent_id:string|null;/** First day of the period as a calendar date (YYYY-MM-DD). e.g. "2026-10-01" */ start_on:string;/** Last day of the period as a calendar date (YYYY-MM-DD), inclusive. e.g. "2026-12-31" */ end_on:string;/** Derived from the dates and today's UTC date, except closed, which only close sets. */ status:"planning"|"active"|"grading"|"closed";/** UTC instant (RFC 3339) when the period was opened. */ create_time:string;/** UTC instant (RFC 3339) of the latest change to the period. */ update_time:string}>;Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | yes | Period id (prd_…), from the periods list or the response of open. |
Responses
| Status | Content types | Description |
|---|---|---|
| 200 | application/json | The period. |
| 401 | Missing or invalid credential; provide a valid organization API key or sign in to the Console. | |
| 403 | application/problem+json | PERMISSION_DENIED; an agent’s session token reads its own organization, but a run or computer token, or a session token that names no agent, is refused; call with an organization API key, a Console session, or the agent’s own session token. |
| 404 | application/problem+json | PERIOD_NOT_FOUND; list periods and copy an id of your organization. |